CN108898440A - Flow exchanging method and device - Google Patents
Flow exchanging method and device Download PDFInfo
- Publication number
- CN108898440A CN108898440A CN201810709217.8A CN201810709217A CN108898440A CN 108898440 A CN108898440 A CN 108898440A CN 201810709217 A CN201810709217 A CN 201810709217A CN 108898440 A CN108898440 A CN 108898440A
- Authority
- CN
- China
- Prior art keywords
- block
- flow
- server
- redemption request
- integral
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0208—Trade or exchange of goods or services in exchange for incentives or rewards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of flow exchanging method and device.Wherein, method includes:Receive redemption request information;If passing through to the redemption request signal auditing, flow accumulated point exchanging record is generated according to the redemption request information, and broadcasts the flow accumulated point exchanging record in server cluster;It obtains block and generates the block that server generates;If being verified to the block, the block is linked to the end for the block chain being locally stored;Execute the operation of flow accumulated point exchanging.Flow exchanging method provided by the invention realizes timely, efficient, accurate flow recycling exchange system, improves the versatility and flexibility of flow exchange using block chain technology.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of flow exchanging methods and device.
Background technique
With the development of wireless communication technique and mobile Internet, intelligent movable product is played the part of in the work and life of people
Drill more and more important role.Currently, network operator can provide several flows fixed set meal scheme for user.Such as
Fruit this month user has not used the flow in set meal, that is, has residual flow.
Currently, the processing for residual flow, user can choose accumulation and continue to use to next month.User can also lead to
Inflow-rate of water turbine exchanges APP (Application, application program) progress flow and represents or be exchanged into integral.
But residual flow use and processing can be only applied to a network operator, lead to the processing of residual flow
Mode is not flexible.
Summary of the invention
The present invention provides a kind of flow exchanging method and device, improves the versatility and flexibility of flow exchange.
In a first aspect, flow exchanging method provided by the invention, including:
Receive redemption request information;The redemption request information between flow and General integral for will exchange, institute
Stating General integral can be applied to different network operators;
If passing through to the redemption request signal auditing, flow accumulated point exchanging note is generated according to the redemption request information
Record, and the flow accumulated point exchanging record is broadcasted in server cluster;The server cluster includes the different network
The corresponding server of operator;
It obtains block and generates the block that server generates, it is one in the server cluster that the block, which generates server,
A server, the block include that the flow accumulated point exchanging that the block generates that server obtains in preset duration records;
If being verified to the block, the block is linked to the end for the block chain being locally stored;
Execute the operation of flow accumulated point exchanging.
Second aspect, flow exchanging method provided by the invention, including:
Obtain the redemption information of user's input;
Send redemption request information;The redemption request information between flow and General integral for will exchange, institute
Stating General integral can be applied to different network operators.
The third aspect, server provided by the invention, including:
Transceiver module, for receiving redemption request information;The redemption request information be used for by flow and General integral it
Between exchanged, the General integral can be applied to different network operators;
Processing module, if being generated for passing through to the redemption request signal auditing according to the redemption request information
Flow accumulated point exchanging record, and control the transceiver module and broadcast the flow accumulated point exchanging record in server cluster;Institute
Stating server cluster includes the corresponding server of the different network operator;
It obtains block and generates the block that server generates, it is one in the server cluster that the block, which generates server,
A server, the block include that the flow accumulated point exchanging that the block generates that server obtains in preset duration records;
If being verified to the block, the block is linked to the end for the block chain being locally stored;
Execute the operation of flow accumulated point exchanging.
Fourth aspect, terminal device provided by the invention, including:
Processing module, for obtaining the redemption information of user's input;
Transceiver module, for sending redemption request information;The redemption request information be used for by flow and General integral it
Between exchanged, the General integral can be applied to different network operators.
5th aspect, the present invention provide a kind of server, including processor, memory and transceiver, and memory is for depositing
Storage instruction, transceiver is used for and other equipment communication, and processor is for executing the instruction stored in memory, so that server is held
The method of the above-mentioned first aspect of row.
6th aspect, the present invention provides a kind of terminal device, including processor, memory and transceiver, memory are used for
Store instruction, transceiver is used for and other equipment communication, and processor is for executing the instruction stored in memory, so that terminal is set
The standby method for executing above-mentioned second aspect.
7th aspect, the present invention provide a kind of storage medium, including:Readable storage medium storing program for executing and computer program, the meter
Calculation machine program is for realizing first aspect or the described in any item methods of second aspect.
Eighth aspect, the present invention provide a kind of program product, which includes computer program (executing instruction),
The computer program is stored in readable storage medium storing program for executing.Processor can read the computer program from readable storage medium storing program for executing, until
A few processor executes the computer program and the various embodiments of equipment implementation first aspect or second aspect is mentioned
The method of confession.
The present invention provides a kind of flow exchanging method and device, using block chain technology, by different network operator's groups
At the form of alliance's chain.The remaining flow of user can be recycled, convert to and can be applied to heterogeneous networks operator
General integral.Alternatively, the remaining General integral of user can be carried out across a network operator or non-inter-network when user needs
The flow of network operator is exchanged.By recording flow accumulated point exchanging record on block chain, realize timely, efficient, accurate
Flow recycles exchange system, improves the versatility and flexibility of flow exchange.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the system architecture diagram of flow exchange system of the present invention;
Fig. 2 is the data structure schematic diagram of block chain of the present invention;
Fig. 3 is the interacting message figure of flow exchanging method provided by the invention;
Fig. 4 is the structural schematic diagram of server provided by the invention;
Fig. 5 is the structural schematic diagram of terminal device provided by the invention.
Specific embodiment
Fig. 1 is the system architecture diagram of flow exchange system of the present invention.As shown in Figure 1, flow of the present invention
Exchange system, using server/customer end (C/S) architecture mode.Wherein, server end is properly termed as server cluster, including
The corresponding server 11 of different network operators.Quantity and each network operator of the present invention for network operator
The quantity of corresponding server 11 is without limitation.Wherein, the corresponding server of each network operator can be with network consisting operation
Quotient's server zone.Each server 11 is also referred to as server node.When different network operators accesses the service of equivalent amount
When device, P2P peer-to-peer network can be formed.Illustratively, in Fig. 1, the quantity of network operator is 3, be may be respectively referred to as:
Network operator A, B, C.Each network operator server group includes 3 server nodes.Wherein, client may include
At least one terminal device 12.Flow can be installed in advance on terminal device 12 and exchange APP.Terminal device 12 can be with server
Node is communicated, to realize the exchange between flow and General integral.
In the present invention, it may be implemented by the server cluster that Servers-all collectively constitutes:1) life of block chain block
At and maintenance.2) flow is provided for terminal device exchange the corresponding service of APP.For example, exchange between flow and General integral,
The inquiry etc. of residual flow and remaining General integral in user account.
In the present invention, user can exchange APP by the flow in username and password registration terminal equipment, realize surplus
The operation such as residual current amount and inquiry, exchange and the digital signature of remaining General integral.Optionally, it can also realize and remember on block chain
The flow accumulated point exchanging record of record is inquired and is supervised.
It should be noted that the present invention for server and terminal device specific implementation without limitation.For example, clothes
Business device can be Cloud Server, network server, computer etc..Terminal device can be smart phone, tablet computer, computer
Deng.
Concept of the present invention is illustrated below.
1, General integral
General integral can be applied to different network operators.
2, redemption request information
Redemption request information between flow and General integral for will exchange.That is, redemption request information can
To be used to residual flow converting to General integral, alternatively, remaining General integral is converted to flow.Furthermore, it is possible to same
A network operator exchanges flow, can also exchange flow with across a network operator.It illustrates.For the use of network operator A
Remaining General integral can be converted to the flow of network operator A by family, and remaining General integral can also be converted to network fortune
Seek the flow of quotient B.
The particular content that the present invention includes for redemption request information without limitation, according to the effect of redemption request information
Difference can be different.
Optionally, redemption request information may include:User account, network operator identification and the digital signature of user,
It can also include that this exchanges at least one of flow and this exchange integral.That is, including following implementation:
The digital signature of user account, network operator identification, this exchange flow and user.Alternatively,
The digital signature of user account, network operator identification, this exchange integral and user.Alternatively,
User account, network operator identification, this is exchanged, and flow, this exchange integrates and the digital signature of user.
Wherein, user account is for uniquely distinguishing different user accounts.Optionally, user account can be the hand of user
Machine number.
Network operator identification is for uniquely distinguishing different network operators.Network operator and this exchange flow it
Between have corresponding relationship.Illustratively, it is illustrated by taking network operator A as an example.Assuming that it is 1G that this, which exchanges flow, then it can be with
The remaining 1G flow of network operator A is converted into General integral, alternatively, remaining General integral is converted to network operator
The 1G flow of A.
The digital signature of user generates after being digitally signed to redemption request information.The present embodiment signs number
Name algorithm is without limitation.
This exchanges flow and this is exchanged and can have corresponding relationship between integral.For example, corresponding 100 product of 1G flow
Point, corresponding 50 integral of 500M flow.
3, block chain and block
Block chain is a kind of a kind of chain type number for being sequentially in time combined into data block in such a way that sequence is connected
According to structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Each node in block chain
It is properly termed as block or data block.
Illustratively, Fig. 2 is the data structure schematic diagram of block chain of the present invention.As shown in Fig. 2, block chain includes
The connected multiple blocks (referred to as Block) of sequence.Each block may include multiple flow accumulated point exchanging records.Optionally, area
Block can also include the cryptographic Hash of this block and the cryptographic Hash of previous block.Wherein, previous block is in block chain and originally
The block of block connection.Optionally, block can also include timestamp, when the timestamp is used to indicate the generation of this block
Between.
It should be noted that the present embodiment for the cryptographic Hash of block generating mode without limitation, can use existing
Method.For example, generating cryptographic Hash according to the information that block includes.
4, flow accumulated point exchanging records
Flow accumulated point exchanging is recorded as what server was generated according to redemption request information.Flow accumulated point exchanging record can wrap
It includes:Redemption request information, the digital signature of integral total value and network operator after exchange.
It is illustrated below by specific example.
For example, redemption request information includes if redemption request information is used to residual flow converting to General integral:User
Account, network operator identification (A), this exchange flow (1G), this exchange integral (100) and user digital signature.It is false
If the integral in user account is 300.Integral after the residual flow 1G of network operator A is exchanged 100 integrals, after exchange
Total value is 300+100=400.Flow accumulated point exchanging records:User account, network operator identification (A), this converts
Integral total value (400) and network operator after change of current amount (1G), this exchange integral (100), the digital signature of user, exchange
Digital signature.
5, block generates server
It is a server in server cluster that block, which generates server, for generating block.The present invention does not limit tool
Body is which server of which network operator.
Optionally, it can be a fixed server that block, which generates server,.
Optionally, it can be the server in the server cluster determined according to polling mechanism that block, which generates server,.
Determine that block generates server by using polling mechanism, by each server generation area in turn of each network operator
Block avoids data tampering and forgery, further improves security performance.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.Illustratively, in each reality of the present invention
It applies in example, redemption request information includes:User account, network operator identification, this is exchanged, and flow, this exchange integrates and use
The digital signature at family.
The description and claims of this application and the term " first " in above-mentioned attached drawing, " second " are for distinguishing class
As object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate situation
Under can be interchanged, so as to embodiments herein described herein for example can in addition to those of illustrate or describe herein with
Outer sequence is implemented.
Fig. 3 is the interacting message figure of flow exchanging method provided by the invention.Flow exchanging method provided in this embodiment,
Executing subject is a server in terminal device and server cluster.As shown in figure 3, flow provided in this embodiment is exchanged
Method may include:
S301, terminal device obtain the redemption information of user's input.
Specifically, user can initiate the exchange operation of flow and General integral on the terminal device.That is, spending how many surplus
Residual current amount exchanges how many General integral, alternatively, how much flows of how many universal flows exchange particular network operators spent.It is described
The redemption information that terminal device obtains, may include flow information to be exchanged and integration information to be exchanged.
The present embodiment is for obtaining the mode for the redemption information that user inputs without limitation.For example, terminal device passes through object
The modes such as reason keyboard, dummy keyboard, sound recording device, touch screen obtain the redemption information of user's input.
S302, terminal device send redemption request information.
Wherein, redemption request information between flow and General integral for will exchange.General integral can be applied to not
Same network operator.
Correspondingly, server receives redemption request information.
Specifically, by the digital signature of user, can be generated after terminal device obtains the redemption information that user inputs
The redemption request of (user account, network operator identification, this is exchanged, and flow, this exchange integrates and the digital signature of user)
Information.Redemption request information can be sent to the server of corresponding network operator according to network operator identification.In turn
So that the server of corresponding network operator audits redemption request information.
It should be noted that the present embodiment does not limit terminal device to the mode that server sends redemption request information
It is fixed.
For example, when the corresponding network operator of user account network operator corresponding with network operator identification is consistent,
Terminal device can establish communication connection between the server of network operator, to realize communication.
In another example can choose the network operation of terminal device link in the scene that user's cross operator exchanges flow
Quotient's network, by the server providing services of corresponding network operator.
If S303, server pass through redemption request signal auditing, flow integral is generated according to redemption request information and is converted
Record is changed, and broadcast traffic accumulated point exchanging records in server cluster.
Wherein, server cluster includes the corresponding server of different network operators.
Optionally, if redemption request information is used to residual flow converting to General integral, to redemption request signal auditing,
May include:
Judge whether user account and the corresponding flow total value of network operator identification are more than or equal to this and exchange stream
Amount.
If so, determining that audit passes through.If not, it is determined that audit does not pass through.
Illustrate below by specific example.
For example, network operator identification corresponding network operator A, the flow total value of network operator A is in user account
2G.When it is 1G that this, which exchanges flow, audit passes through.When it is 3G that this, which exchanges flow, audit does not pass through.
Optionally, if redemption request information is used to remaining General integral converting to flow, to redemption request signal auditing,
May include:
The block chain being locally stored is carried out from back to front to search the nearest flow accumulated point exchanging for obtaining user account
Record.
Whether the integral total value after judging the exchange in nearest flow accumulated point exchanging record is more than or equal to this
Exchange integral.
If so, determining that audit passes through.If not, it is determined that audit does not pass through.
Illustrate below by specific example.
It is assumed that a nearest flow accumulated point exchanging is recorded as:User account, network operator identification (A), this exchange stream
The number of integral total value (400) and network operator after measuring (1G), this exchange integral (100), the digital signature of user, exchange
Word signature.When it is 200 that this, which exchanges integral, audit passes through.When it is 500 that this, which exchanges integral, audit does not pass through.
It should be noted that for each server in server cluster, the step of all executing S303.Namely
It says, for each server, all the flow accumulated point exchanging record of generation is broadcast in server cluster, and can receive it
The flow accumulated point exchanging of his server broadcast records.
S304, server obtain block and generate the block that server generates.
Wherein, it is a server in server cluster that block, which generates server,.Block includes preset duration intra block
Generate the flow accumulated point exchanging record that server obtains.
Specifically, it may be the server that block, which generates server, it is also possible to not be the server.When block generates
When server is the server, the server can be according to all flow accumulated point exchangings record life obtained in preset duration
At the block.The block of generation can be broadcast to when block generates block generation server when server is not the server
Each server in server cluster.Correspondingly, the server can receive the block that block generates server broadcast.
It should be noted that the present embodiment for preset duration specific value without limitation.
If S305, server are verified block, block is linked to the end for the block chain being locally stored.
S306, server execute the operation of flow accumulated point exchanging.
Optionally, if redemption request information is used to converting to residual flow into General integral, flow accumulated point exchanging behaviour is executed
Make, may include:
This is reduced in user account and the corresponding flow total value of network operator identification exchanges flow.
Optionally, if redemption request information is used to converting to remaining General integral into flow, flow accumulated point exchanging behaviour is executed
Make, may include:
Increase this in user account and the corresponding flow total value of network operator identification and exchanges the corresponding flow of integral.
As it can be seen that flow exchanging method provided in this embodiment is made of using block chain technology different network operators
The form of alliance's chain.The remaining flow of user can be recycled, convert to and can be applied to the logical of heterogeneous networks operator
With integral.Alternatively, the remaining General integral of user can be carried out across a network operator or non-across a network when user needs
The flow of operator is exchanged.By recording flow accumulated point exchanging record on block chain, timely, efficient, accurate stream is realized
Amount recycling exchange system, improves the versatility and flexibility of flow exchange, improves user's impression.
Optionally, in S303, flow accumulated point exchanging record is generated according to redemption request information, may include:
Integral total value after being exchanged according to redemption request information acquisition.
Integral total value to redemption request information and/or after exchanging is digitally signed, and generates flow accumulated point exchanging record.
Flow accumulated point exchanging records:Redemption request information, the digital signature of integral total value and network operator after exchange.
Specifically, after server passes through redemption request signal auditing, by the digital signature of network operator, Ke Yisheng
At (after user account, network operator identification, this exchange flow, this exchange integral, the digital signature of user, exchange
Integrate total value and network operator digital signature) flow accumulated point exchanging record.It is signed by the both sides of user, network operator
Flow accumulated point exchanging record is broadcast to server cluster by name.Subsequent, block generates server can be according to obtaining in preset duration
The flow accumulated point exchanging record obtained generates block, and block is broadcast to server cluster.
It is signed by the both sides of user, network operator, so that flow accumulated point exchanging record cannot fake, can not distort,
Further improve the security performance of flow exchange.
Optionally, in S305, block is verified, may include:
Signature verification is carried out respectively to each flow accumulated point exchanging record that block includes.
If the signature verification carried out respectively to each flow accumulated point exchanging record that block includes passes through, in server
The block that block is proved to be successful instruction, and receives other server broadcasts in server cluster is broadcasted in cluster is proved to be successful finger
Show.
Judge whether N/M is more than or equal to preset threshold.Wherein, N is the quantity that the block obtained is proved to be successful instruction,
M is the quantity of server in server cluster.
If so, determining that block is verified.If not, it is determined that block verifying does not pass through.
Specifically, needing to verify block, working as verifying after server obtains the block that block generates server generation
After errorless, the block can be linked to the end of the block chain of server local storage.When being verified, due to flow
Accumulated point exchanging records the signature that have passed through network operator, therefore signs to each flow accumulated point exchanging record in block
Verifying.For each server, all flow accumulated point exchanging records are proved to be successful in block, it is determined that block signature
It is verified, block is broadcasted in server cluster and is proved to be successful instruction.For each server, when determining block signature verification
By server number accounting be more than preset threshold, then can determine that block is verified.Wherein, N include server from
The quantity (for 1) that oneself block signature verification passes through and the quantity that the block signature verification of other servers received passes through.
It should be noted that the present embodiment for preset threshold specific value without limitation, according to being configured.Example
Such as, preset threshold can be 51%.
Optionally, block further includes:The cryptographic Hash of the cryptographic Hash of block and previous block, previous block are raw for block
At the last one block for the block chain being locally stored in server.Block is broadcasted in server cluster is proved to be successful instruction
Before, can also include:
The flow accumulated point exchanging record for including according to block obtains the first cryptographic Hash.
Judge whether the cryptographic Hash of the first cryptographic Hash and block is identical.
And/or
The flow accumulated point exchanging record that the last one block according to the block chain being locally stored includes obtains the second Hash
Value.
Judge whether the second cryptographic Hash is identical as the cryptographic Hash of previous block.
By comparing the cryptographic Hash of block and/or the cryptographic Hash of previous block, block verification result is further improved
Accuracy, improve flow exchange security performance.
Optionally, flow exchanging method provided in this embodiment can also include:
If server does not pass through redemption request signal auditing, transmitted traffic exchange is unsuccessfully indicated.
It is unsuccessfully indicated correspondingly, terminal device receives flow exchange.
Optionally, it may include failure reason value that flow, which exchanges unsuccessfully instruction,.
The present embodiment provides a kind of flow exchanging methods, including:Terminal device obtains the redemption information of user's input, terminal
Equipment sends redemption request information, if server passes through redemption request signal auditing, is generated and is flowed according to redemption request information
Accumulated point exchanging record is measured, and broadcast traffic accumulated point exchanging records in server cluster, server obtains block and generates server
Block is linked to the end for the block chain being locally stored, server if server is verified block by the block of generation
Execute the operation of flow accumulated point exchanging.Flow exchanging method provided in this embodiment is realized timely, high using block chain technology
Effect, accurate flow recycle exchange system, improve the versatility and flexibility of flow exchange, improve user's impression.
Fig. 4 is the structural schematic diagram of server provided by the invention.Server provided in this embodiment, for executing Fig. 3
The operation that server executes in the flow exchanging method that illustrated embodiment provides.As shown in figure 4, service provided in this embodiment
Device may include:
Transceiver module 21, for receiving redemption request information.Redemption request information is used for will be between flow and General integral
It is exchanged, General integral can be applied to different network operators.
Processing module 22, if generating flow product according to redemption request information for passing through to redemption request signal auditing
Divide record of conversion, and controls the broadcast traffic accumulated point exchanging in server cluster of transceiver module 21 and record.Server cluster includes
The corresponding server of different network operators.
It obtains block and generates the block that server generates, it is a service in server cluster that block, which generates server,
Device, block include that preset duration intra block generates the flow accumulated point exchanging record that server obtains.
If being verified to block, block is linked to the end for the block chain being locally stored.
Execute the operation of flow accumulated point exchanging.
Optionally, processing module 22 is specifically used for:
Integral total value after being exchanged according to redemption request information acquisition.
Integral total value to redemption request information and/or after exchanging is digitally signed, and generates flow accumulated point exchanging record.
Flow accumulated point exchanging records:Redemption request information, the digital signature of integral total value and network operator after exchange.
Optionally, processing module 22 is specifically used for:
Signature verification is carried out respectively to each flow accumulated point exchanging record that block includes.
If the signature verification carried out respectively to each flow accumulated point exchanging record that block includes passes through, transmitting-receiving is controlled
Module 21 broadcasts block in server cluster and is proved to be successful instruction, and control transceiver module 21 receive server cluster in its
The block of his server broadcast is proved to be successful instruction.
Judge whether N/M is more than or equal to preset threshold.Wherein, N is the quantity that the block obtained is proved to be successful instruction,
M is the quantity of server in server cluster.
Optionally, block further includes:The cryptographic Hash of the cryptographic Hash of block and previous block, previous block are raw for block
At the last one block for the block chain being locally stored in server.
Processing module 22 is also used to:
The flow accumulated point exchanging record for including according to block obtains the first cryptographic Hash.
Judge whether the cryptographic Hash of the first cryptographic Hash and block is identical.
And/or
The flow accumulated point exchanging record that the last one block according to the block chain being locally stored includes obtains the second Hash
Value.
Judge whether the second cryptographic Hash is identical as the cryptographic Hash of previous block.
Optionally, if redemption request information is used to residual flow converting to General integral, redemption request information includes:With
The digital signature of family account, network operator identification, this exchange flow and user.
Optionally, processing module 22 is specifically used for:
Judge whether user account and the corresponding flow total value of network operator identification are more than or equal to this and exchange stream
Amount.
Optionally, processing module 22 is specifically used for:
This is reduced in user account and the corresponding flow total value of network operator identification exchanges flow.
Optionally, if redemption request information is used to remaining General integral converting to flow, redemption request information includes:With
The digital signature of family account, network operator identification, this exchange integral and user.
Optionally, processing module 22 is specifically used for:
The block chain being locally stored is carried out from back to front to search the nearest flow accumulated point exchanging for obtaining user account
Record.
Whether the integral total value after judging the exchange in nearest flow accumulated point exchanging record is more than or equal to this
Exchange integral.
Optionally, processing module 22 is specifically used for:
Increase this in user account and the corresponding flow total value of network operator identification and exchanges the corresponding flow of integral.
Server provided in this embodiment, for executing server in the flow exchanging method that embodiment illustrated in fig. 3 provides
The operation of execution, technical principle is similar with technical effect, and details are not described herein again.
Fig. 5 is the structural schematic diagram of terminal device provided by the invention.Terminal device provided in this embodiment, for executing
The operation that terminal device executes in the flow exchanging method that embodiment illustrated in fig. 3 provides.As shown in figure 5, provided in this embodiment
Terminal device may include:
Processing module 32, for obtaining the redemption information of user's input.
Transceiver module 31, for sending redemption request information.Redemption request information is used for will be between flow and General integral
It is exchanged, General integral can be applied to different network operators.
Optionally, redemption request information includes:User account, network operator identification and the digital signature of user, are also wrapped
It includes this and exchanges at least one of flow and this exchange integral.
Terminal device provided in this embodiment, for executing terminal in the flow exchanging method that embodiment illustrated in fig. 3 provides
The operation that equipment executes, technical principle is similar with technical effect, and details are not described herein again.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than to it
Limitation;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, those skilled in the art
It should be understood that:It is still possible to modify the technical solutions described in the foregoing embodiments, either to part of or
All technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution this hair
The range of bright embodiment technical solution.
Claims (24)
1. a kind of flow exchanging method, which is characterized in that including:
Receive redemption request information;The redemption request information is described logical for will exchange between flow and General integral
It can be applied to different network operators with integral;
If passing through to the redemption request signal auditing, flow accumulated point exchanging record is generated according to the redemption request information,
And the flow accumulated point exchanging record is broadcasted in server cluster;The server cluster includes the different network operation
The corresponding server of quotient;
It obtains block and generates the block that server generates, it is a clothes in the server cluster that the block, which generates server,
Business device, the block include that the flow accumulated point exchanging that the block generates that server obtains in preset duration records;
If being verified to the block, the block is linked to the end for the block chain being locally stored;
Execute the operation of flow accumulated point exchanging.
2. the method according to claim 1, wherein described generate flow integral according to the redemption request information
Record of conversion, including:
Integral total value after being exchanged according to the redemption request information acquisition;
Integral total value after the redemption request information and/or the exchange is digitally signed, the flow integral is generated
Record of conversion;The flow accumulated point exchanging records:The redemption request information, integral total value and network after the exchange
The digital signature of operator.
3. according to the method described in claim 2, it is characterized in that, it is described to the block verify, including:
Signature verification is carried out respectively to each flow accumulated point exchanging record that the block includes;
If the signature verification carried out respectively to each flow accumulated point exchanging record that the block includes passes through, in the clothes
Broadcast block is proved to be successful instruction in business device cluster, and the block for receiving other server broadcasts in the server cluster is tested
It demonstrate,proves and successfully indicates;
Judge whether N/M is more than or equal to preset threshold;Wherein, N is the quantity that the block obtained is proved to be successful instruction, and M is
The quantity of server in the server cluster.
4. according to the method described in claim 3, it is characterized in that, the block further includes:The cryptographic Hash of the block is with before
The cryptographic Hash of one block, the previous block are last for the block chain being locally stored in block generation server
A block;
Before broadcast block is proved to be successful instruction in the server cluster, further include:
The flow accumulated point exchanging record for including according to the block obtains the first cryptographic Hash;
Judge whether first cryptographic Hash is identical as the cryptographic Hash of the block;
And/or
The flow accumulated point exchanging record that the last one block according to the block chain being locally stored includes obtains the second cryptographic Hash;
Judge whether second cryptographic Hash is identical as the cryptographic Hash of the previous block.
5. method according to any one of claims 1 to 4, which is characterized in that if the redemption request information will be for that will remain
Residual current amount converts to General integral, and the redemption request information includes:User account, network operator identification, this exchange stream
The digital signature of amount and user.
6. according to the method described in claim 5, it is characterized in that, described to the redemption request signal auditing, including:
Judge whether the user account and the corresponding flow total value of the network operator identification are more than or equal to described
Secondary exchange flow.
7. according to the method described in claim 5, it is characterized in that, the execution flow accumulated point exchanging operate, including:
Described this is reduced in the user account and the corresponding flow total value of the network operator identification exchanges flow.
8. method according to any one of claims 1 to 4, which is characterized in that if the redemption request information will be for that will remain
Remaining General integral converts to flow, and the redemption request information includes:User account, network operator identification, this exchange product
Divide the digital signature with user.
9. according to the method described in claim 8, it is characterized in that, described to the redemption request signal auditing, including:
The block chain being locally stored is carried out from back to front to search the nearest flow accumulated point exchanging for obtaining the user account
Record;
It is described whether the integral total value after judging the exchange in the nearest flow accumulated point exchanging record is more than or equal to
This exchanges integral.
10. according to the method described in claim 8, it is characterized in that, the execution flow accumulated point exchanging operate, including:
Increase described this in the user account and the corresponding flow total value of the network operator identification and exchanges integral pair
The flow answered.
11. a kind of flow exchanging method, which is characterized in that including:
Obtain the redemption information of user's input;
Send redemption request information;The redemption request information is described logical for will exchange between flow and General integral
It can be applied to different network operators with integral.
12. according to the method for claim 11, which is characterized in that the redemption request information includes:User account, network
The digital signature of operator identifier and user further includes that this exchanges at least one of flow and this exchange integral.
13. a kind of server, which is characterized in that including:
Transceiver module, for receiving redemption request information;The redemption request information be used for by between flow and General integral into
Row is exchanged, and the General integral can be applied to different network operators;
Processing module, if generating flow according to the redemption request information for passing through to the redemption request signal auditing
Accumulated point exchanging record, and control the transceiver module and broadcast the flow accumulated point exchanging record in server cluster;The clothes
Business device cluster includes the corresponding server of the different network operator;
It obtains block and generates the block that server generates, it is a clothes in the server cluster that the block, which generates server,
Business device, the block include that the flow accumulated point exchanging that the block generates that server obtains in preset duration records;
If being verified to the block, the block is linked to the end for the block chain being locally stored;
Execute the operation of flow accumulated point exchanging.
14. server according to claim 13, which is characterized in that the processing module is specifically used for:
Integral total value after being exchanged according to the redemption request information acquisition;
Integral total value after the redemption request information and/or the exchange is digitally signed, the flow integral is generated
Record of conversion;The flow accumulated point exchanging records:The redemption request information, integral total value and network after the exchange
The digital signature of operator.
15. server according to claim 14, which is characterized in that the processing module is specifically used for:
Signature verification is carried out respectively to each flow accumulated point exchanging record that the block includes;
If the signature verification carried out respectively to each flow accumulated point exchanging record that the block includes passes through, described in control
Transceiver module broadcasts block in the server cluster and is proved to be successful instruction, and controls the transceiver module and receive the service
The block of other server broadcasts in device cluster is proved to be successful instruction;
Judge whether N/M is more than or equal to preset threshold;Wherein, N is the quantity that the block obtained is proved to be successful instruction, and M is
The quantity of server in the server cluster.
16. server according to claim 15, which is characterized in that the block further includes:The cryptographic Hash of the block
With the cryptographic Hash of previous block, the previous block is that the block generates the block chain being locally stored in server most
The latter block;
The processing module is also used to:
The flow accumulated point exchanging record for including according to the block obtains the first cryptographic Hash;
Judge whether first cryptographic Hash is identical as the cryptographic Hash of the block;
And/or
The flow accumulated point exchanging record that the last one block according to the block chain being locally stored includes obtains the second cryptographic Hash;
Judge whether second cryptographic Hash is identical as the cryptographic Hash of the previous block.
17. 3 to 16 described in any item servers according to claim 1, which is characterized in that if the redemption request information is used for
Residual flow is converted into General integral, the redemption request information includes:User account, network operator identification, this converts
The digital signature of change of current amount and user.
18. server according to claim 17, which is characterized in that the processing module is specifically used for:
Judge whether the user account and the corresponding flow total value of the network operator identification are more than or equal to described
Secondary exchange flow.
19. server according to claim 17, which is characterized in that the processing module is specifically used for:
Described this is reduced in the user account and the corresponding flow total value of the network operator identification exchanges flow.
20. 3 to 16 described in any item servers according to claim 1, which is characterized in that if the redemption request information is used for
Remaining General integral is converted into flow, the redemption request information includes:User account, network operator identification, this converts
Change integral and the digital signature of user.
21. server according to claim 20, which is characterized in that the processing module is specifically used for:
The block chain being locally stored is carried out from back to front to search the nearest flow accumulated point exchanging for obtaining the user account
Record;
It is described whether the integral total value after judging the exchange in the nearest flow accumulated point exchanging record is more than or equal to
This exchanges integral.
22. server according to claim 20, which is characterized in that the processing module is specifically used for:
Increase described this in the user account and the corresponding flow total value of the network operator identification and exchanges integral pair
The flow answered.
23. a kind of terminal device, which is characterized in that including:
Processing module, for obtaining the redemption information of user's input;
Transceiver module, for sending redemption request information;The redemption request information be used for by between flow and General integral into
Row is exchanged, and the General integral can be applied to different network operators.
24. terminal device according to claim 23, which is characterized in that the redemption request information includes:User account,
The digital signature of network operator identification and user further includes that this exchanges at least one of flow and this exchange integral.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709217.8A CN108898440A (en) | 2018-07-02 | 2018-07-02 | Flow exchanging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709217.8A CN108898440A (en) | 2018-07-02 | 2018-07-02 | Flow exchanging method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108898440A true CN108898440A (en) | 2018-11-27 |
Family
ID=64347568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810709217.8A Pending CN108898440A (en) | 2018-07-02 | 2018-07-02 | Flow exchanging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108898440A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688940A (en) * | 2017-05-10 | 2018-02-13 | 平安科技(深圳)有限公司 | Bio-identification transaction processing method and system |
CN111260347A (en) * | 2020-01-13 | 2020-06-09 | 北京三快在线科技有限公司 | Resource processing method, device and equipment based on block chain and storage medium |
CN111476601A (en) * | 2020-03-30 | 2020-07-31 | 嘉兴冰星市场营销策划有限公司 | Point and certificate marketing method and system based on block chain technology |
CN111539771A (en) * | 2020-04-27 | 2020-08-14 | 中国银行股份有限公司 | Resource management method and related equipment |
CN113962746A (en) * | 2021-11-02 | 2022-01-21 | 中国银行股份有限公司 | Point exchange method and device based on mobile banking |
CN114493718A (en) * | 2022-02-14 | 2022-05-13 | 刘�英 | Block chain-based user traffic point generation and transaction method and system |
CN114900536A (en) * | 2022-05-18 | 2022-08-12 | 华侨大学 | Block chain-based point acceptance consensus storage method and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357387A (en) * | 2016-09-26 | 2017-01-25 | 江苏荣泽信息科技股份有限公司 | Anonymous member transaction method based on block chain |
CN106445711A (en) * | 2016-08-28 | 2017-02-22 | 杭州云象网络技术有限公司 | Byzantine-fault-tolerant consensus method applied to block chain |
US20170076280A1 (en) * | 2015-09-11 | 2017-03-16 | Bank Of America Corporation | Controlling Access to Data |
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN106779805A (en) * | 2016-11-24 | 2017-05-31 | 中国银行股份有限公司 | Integration circulation method and device between a kind of different businessmans based on block chain |
CN107005574A (en) * | 2016-12-23 | 2017-08-01 | 深圳前海达闼云端智能科技有限公司 | Block generation method and device and block chain network |
CN107078910A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Generate method, device, node, signature device and the system of block chain block |
US20170243177A1 (en) * | 2016-02-22 | 2017-08-24 | Bank Of America Corporation | System for routing of process authorization and settlement to a user in process data network based on specified parameters |
CN107122993A (en) * | 2017-04-24 | 2017-09-01 | 杭州趣链科技有限公司 | A kind of General integral system based on block chain |
CN108197974A (en) * | 2017-12-12 | 2018-06-22 | 北京瑞卓喜投科技发展有限公司 | Integration processing method and device based on block chain technology |
-
2018
- 2018-07-02 CN CN201810709217.8A patent/CN108898440A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170076280A1 (en) * | 2015-09-11 | 2017-03-16 | Bank Of America Corporation | Controlling Access to Data |
US20170243177A1 (en) * | 2016-02-22 | 2017-08-24 | Bank Of America Corporation | System for routing of process authorization and settlement to a user in process data network based on specified parameters |
CN106445711A (en) * | 2016-08-28 | 2017-02-22 | 杭州云象网络技术有限公司 | Byzantine-fault-tolerant consensus method applied to block chain |
CN106357387A (en) * | 2016-09-26 | 2017-01-25 | 江苏荣泽信息科技股份有限公司 | Anonymous member transaction method based on block chain |
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN106779805A (en) * | 2016-11-24 | 2017-05-31 | 中国银行股份有限公司 | Integration circulation method and device between a kind of different businessmans based on block chain |
CN107005574A (en) * | 2016-12-23 | 2017-08-01 | 深圳前海达闼云端智能科技有限公司 | Block generation method and device and block chain network |
CN107078910A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Generate method, device, node, signature device and the system of block chain block |
CN107122993A (en) * | 2017-04-24 | 2017-09-01 | 杭州趣链科技有限公司 | A kind of General integral system based on block chain |
CN108197974A (en) * | 2017-12-12 | 2018-06-22 | 北京瑞卓喜投科技发展有限公司 | Integration processing method and device based on block chain technology |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688940A (en) * | 2017-05-10 | 2018-02-13 | 平安科技(深圳)有限公司 | Bio-identification transaction processing method and system |
CN111260347A (en) * | 2020-01-13 | 2020-06-09 | 北京三快在线科技有限公司 | Resource processing method, device and equipment based on block chain and storage medium |
CN111476601A (en) * | 2020-03-30 | 2020-07-31 | 嘉兴冰星市场营销策划有限公司 | Point and certificate marketing method and system based on block chain technology |
CN111539771A (en) * | 2020-04-27 | 2020-08-14 | 中国银行股份有限公司 | Resource management method and related equipment |
CN113962746A (en) * | 2021-11-02 | 2022-01-21 | 中国银行股份有限公司 | Point exchange method and device based on mobile banking |
CN114493718A (en) * | 2022-02-14 | 2022-05-13 | 刘�英 | Block chain-based user traffic point generation and transaction method and system |
CN114900536A (en) * | 2022-05-18 | 2022-08-12 | 华侨大学 | Block chain-based point acceptance consensus storage method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108898440A (en) | Flow exchanging method and device | |
CN111427957B (en) | Block chain voting information verification method, device, equipment and storage medium | |
CN111612455A (en) | Power consumption information protection-oriented Byzantine fault-tolerant alliance chain consensus method, system and storage medium | |
CN109146484A (en) | Common recognition verification method, digging mine machine and block catenary system based on block chain | |
CN108681943A (en) | A kind of data processing method, device, equipment and the storage medium of block chain network | |
CN106131057B (en) | Certification based on virtual reality scenario and device | |
CN109711836A (en) | A kind of storage method of transaction, storage network and electronic equipment | |
CN110602217B (en) | Block chain-based alliance management method, device, equipment and storage medium | |
CN112085504B (en) | Data processing method and device, computer equipment and storage medium | |
CN109087111A (en) | Common recognition verification method, digging mine machine and block catenary system based on block chain | |
CN109242299A (en) | Distribution digs mine method, digs mine machine and block catenary system | |
CN110298421A (en) | A kind of online generation, offline generation and the verification method and device of two dimensional code | |
CN108768672B (en) | Data processing method, device and storage medium | |
CN110263579A (en) | A kind of data processing method, system and relevant device | |
CN109087105A (en) | For digging the Hash Search method of mine, digging mine machine and block catenary system | |
CN109639719A (en) | A kind of auth method and device based on temporary identifier | |
CN110660466A (en) | Personal health data chaining method and system of Internet of things by combining block chains | |
CN114329290A (en) | Capability opening platform and authorized access method thereof | |
CN109242491A (en) | It digs mine identity identifying method, dig mine machine and block catenary system | |
CN112486977B (en) | Method and system for forging block by chain type mobile terminal | |
CN112699136B (en) | Cross-link certificate storage method and related device | |
CN111865595A (en) | Block chain consensus method and device | |
CN112417052B (en) | Data synchronization method, device, equipment and storage medium in block chain network | |
Ivanov et al. | Blockumulus: a scalable framework for smart contracts on the cloud | |
CN116843221A (en) | Accounting method, device, equipment and medium for carbon account |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181127 |
|
RJ01 | Rejection of invention patent application after publication |