CN110417917A - Method, system, computer equipment and medium for bill circulation - Google Patents

Method, system, computer equipment and medium for bill circulation Download PDF

Info

Publication number
CN110417917A
CN110417917A CN201910795110.4A CN201910795110A CN110417917A CN 110417917 A CN110417917 A CN 110417917A CN 201910795110 A CN201910795110 A CN 201910795110A CN 110417917 A CN110417917 A CN 110417917A
Authority
CN
China
Prior art keywords
network
sub
bill
block
client
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.)
Granted
Application number
CN201910795110.4A
Other languages
Chinese (zh)
Other versions
CN110417917B (en
Inventor
聂二保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
JD Digital Technology Holdings Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN201910795110.4A priority Critical patent/CN110417917B/en
Publication of CN110417917A publication Critical patent/CN110417917A/en
Application granted granted Critical
Publication of CN110417917B publication Critical patent/CN110417917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1051Group master selection mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Present disclose provides a kind of methods for bill circulation, this method is applied to the host node of the first sub-network, multiple first nodes of first sub-network including the host node, multiple first nodes are corresponding with multiple bills transfer platform, second sub-network includes multiple second nodes corresponding with multiple discounted note banks, this method comprises: receiving the billing information from the side of taking ticket, the side of taking ticket is one in multiple client;The billing information is broadcasted to first sub-network;Another client is changed to by one client in response to the side of taking ticket, obtain transaction record and carries out the first verifying, the block comprising the transaction record is generated after being verified first;The block is sent to second sub-network and carries out the second verifying, the block is added to block chain after being verified second.The disclosure additionally provides a kind of system, a kind of computer equipment and a kind of computer readable storage medium for bill circulation.

Description

Method, system, computer equipment and medium for bill circulation
Technical field
This disclosure relates to field of computer technology, more particularly, to it is a kind of by the method for bill circulation, system, based on Calculate machine equipment and medium.
Background technique
Bill (such as commercial acceptance) obtains the important sources of mobility fund as medium and small micro- enterprise, more in China Key player is played in level capital market, and is played an increasingly important role.Bill circulation process mainly includes bill It signs and issues, accepter's endorsement, bill transfer and discounted note or expire are honoured.
Currently, the efficiency of bill flow system is lower, process of endorsing be performed a plurality of times and confirmation occupies a large amount of time And system resource, difficulty is caused to the whole sexual development of bill operation.
Above-mentioned technical problem is able to solve without superior technique in the prior art.
Summary of the invention
In view of this, present disclose provides a kind of improved method and systems for bill circulation.
An aspect of this disclosure provides a kind of method for bill circulation, and this method is applied to the first sub-network Host node, the first sub-network and the second sub-network constitute block chain network, and the first sub-network is more including above-mentioned host node A first node, multiple first nodes are corresponding with multiple bills transfer platform, and the second sub-network includes and multiple discounted notes are silver-colored The corresponding multiple second nodes of row.This method comprises: receiving the billing information from the side of taking ticket, the side of taking ticket is multiple visitors One in the end of family;The billing information is broadcasted to first sub-network, by one or more in first sub-network A first node is to billing information described in the multiple client push;And in response to the side of taking ticket by one visitor Family end is changed to another client in the multiple client, obtains characterization bill and circulates from one client to described The transaction record of another client simultaneously carries out the first verifying, and the area comprising the transaction record is generated after being verified first Block;The block is sent to second sub-network and carries out the second verifying, the block is added after being verified second To block chain.
In accordance with an embodiment of the present disclosure, billing information includes: summary info, content information and one client Digital signature.Summary info includes at least one of following: the amount of the instrument, the side's of drawing a bill identification information and the side's of taking ticket mark letter Breath, wherein in the case where the bill is endorsed through the side of honouring, the summary info further includes the side's of honouring endorsement information, is being deposited In the case where the previous side of taking ticket, the summary info further includes the endorsement information of the previous side of taking ticket.And/or Person, the content information include at least one of following: bill encryption information, the account information for the side of drawing a bill, the side of taking ticket account letter Breath and coupon identification information, wherein the bill encryption information includes the allowance interest rate information of bill.
In accordance with an embodiment of the present disclosure, above-mentioned broadcast the billing information to first sub-network includes: verifying institute State the true and false of billing information;And if the billing information is that very, the billing information is broadcasted to first subnet Each first node of network is to be stored.
It in accordance with an embodiment of the present disclosure, include a host node in multiple second nodes of the second sub-network, then it is above-mentioned to incite somebody to action The block is sent to second sub-network and carries out the second verifying, and the block is added to block after being verified second Chain includes: the host node that the block is sent to second sub-network, by the host node of second sub-network to described Block carries out the second verifying, and the second verification result is added in the block;And by the area comprising the second verification result Block is added to the block chain.
In accordance with an embodiment of the present disclosure, the host node in the first sub-network a period of time in office is by any time What the side of taking ticket in the period specified.And/or the host node in the second sub-network a period of time in office is total based on RAFT Know what algorithm determined.
In accordance with an embodiment of the present disclosure, when the host node of second sub-network in the two neighboring time cycle is same When node, host node is determined from second sub-network based on RAFT common recognition algorithm again.
In accordance with an embodiment of the present disclosure, the first sub-network further includes the first hot standby node, as the master of first sub-network When nodes break down, the host node of first sub-network is replaced using the described first hot standby node.And/or second Sub-network further includes the second hot standby node, hot standby using described second when the host node of second sub-network breaks down Node replaces the host node of second sub-network.
Another aspect of the disclosure provides a kind of system for bill circulation, including the first sub-network and the second son Network, first sub-network include multiple first nodes corresponding with multiple bills transfer platform, the multiple first node Host node including the first sub-network, second sub-network include multiple second sections corresponding with multiple discounted note banks Point.The host node of first sub-network receives the billing information from the side of taking ticket, and the side of taking ticket is one in multiple client It is a, and the billing information is broadcasted to the first sub-network;One or more first nodes in first sub-network are to described more Billing information described in a client push;The host node of first sub-network is become in response to the side of taking ticket by one client Another client in more the multiple client obtains characterization bill and circulates from one client to another visitor The transaction record at family end simultaneously carries out the first verifying, the block comprising the transaction record is generated after being verified first, and will The block is sent to second sub-network;One or more second nodes in second sub-network to the transaction record into Row second is verified;And first sub-network and the second sub-network be verified second after the block is added to block chain.
Another aspect of the present disclosure provides a kind of computer equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, the processor realize method as described above when executing described program.
Another aspect of the present disclosure provides a kind of computer readable storage medium, is stored with computer executable instructions, Described instruction is when executed for realizing method as described above.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to It enables, described instruction is when executed for realizing method as described above.
In accordance with an embodiment of the present disclosure, the block chain network comprising the first sub-network and the second sub-network is devised, wherein Each node in first sub-network corresponds to bill and transfers the possession of platform, and each node in the second sub-network corresponds to bank.Pass through One sub-network notifies the transfer demand of bill to each client, and when bill circulation process occurs, corresponding transaction record Block chain can be just stored in after the double verification of the first sub-network and the second sub-network, guarantee transaction data it is true, safe, And nothing is distorted, and each side of block chain network and each client that can be communicated with block chain network being capable of timely learning tickets According to the latest tendency and relevant information of circulation, the efficiency of bill circulation process is improved.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present disclosure, the above-mentioned and other purposes of the disclosure, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is diagrammatically illustrated according to the embodiment of the present disclosure using the exemplary of the method and system for bill circulation System architecture;
Fig. 2 diagrammatically illustrates the flow chart of the method for bill circulation according to the embodiment of the present disclosure;
Fig. 3 A diagrammatically illustrates the architecture diagram for bill circulation process according to the embodiment of the present disclosure;
Fig. 3 B diagrammatically illustrates the schematic diagram according to the bill of embodiment of the present disclosure circulation process;
Fig. 4 diagrammatically illustrates the block diagram of the device for bill circulation according to the embodiment of the present disclosure;
Fig. 5 diagrammatically illustrates the block diagram of the device for bill circulation according to another embodiment of the disclosure;And
Fig. 6 diagrammatically illustrates the block diagram of the computer equipment according to the embodiment of the present disclosure.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C " Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have B and C, and/or the system with A, B, C etc.).
Embodiment of the disclosure provides a kind of method and system for bill circulation.This method includes billing information Reception stage, billing information disclose stage, the first Qualify Phase, block generation phase, the second Qualify Phase and cochain rank Section.The stage is received in billing information, the billing information from a current client as the side of taking ticket is received, into bill Information discloses the stage, which is broadcasted the billing information within the scope of the first sub-network, makes it possible to and the first subnet Each client of network communication can know the billing information so as to carry out the bills circulation activities such as the purchase of the bill under line.When When bill circulation occurs, that is, the side of taking ticket is changed to another client from a client, into the first Qualify Phase, obtains characterization The transaction record of bill circulation process carries out the first verifying to the transaction record.First be verified after enter block generate Stage generates the block comprising the transaction record.Subsequently into the second Qualify Phase, by the block be sent to the second sub-network into Row second is verified.Second be verified after enter the final cochain stage, by comprising transaction record block be added block chain.
Fig. 1, which is diagrammatically illustrated, can apply showing for the method and system to circulate for bill according to the embodiment of the present disclosure Example property system architecture 100.It should be noted that be only the example that can apply the system architecture of the embodiment of the present disclosure shown in Fig. 1, To help skilled in the art to understand the technology contents of the disclosure, but it is not meant to that the embodiment of the present disclosure may not be usable for it His equipment, system, environment or scene.
As shown in Figure 1, the system architecture 100 is specially block chain network (Blockchain Network) 100, the block Chain network 100 may include node (Node) 101~106, maintenance block chain (Blockchain) jointly of node 101~106 110。
Node 101~106 can be the various calculate nodes with identical or different computing capability, such as can be individual Computer, network server, database server, smart phone etc., it is not limited here.Any two in node 101~106 Point-to-point communication can be all carried out between a node.
Block chain 110 is the distributed data base of the block (Block) linked in chronological order by hash pointer.Block The block of chain is added sequentially in time, and when a predetermined condition is satisfied, each node in block chain network allows to work as prosthomere The block is simultaneously added in block chain by point creation block, and the block of addition is as newest block current on the block chain.At certain One particular moment, the current newest block for safeguarding that the node of same block chain is obtained from block chain is identical.
It should be understood that the scale and type of the block chain network in Fig. 1, the quantity of node, the length of block chain, block Quantity etc. is only schematical.According to actual needs, block chain network, any amount of random scale and type be can have Node, the block chain of random length, any number of block etc., herein with no restrictions.
Fig. 2 diagrammatically illustrates the flow chart of the method for bill circulation according to the embodiment of the present disclosure.This method is answered For block chain network, block chain network includes the first sub-network and the second sub-network, and the first sub-network includes and multiple bills The corresponding multiple first nodes of platform are transferred the possession of, include master (Leader) node of the first sub-network in multiple first nodes, second Sub-network includes multiple second nodes corresponding with multiple discounted note banks, and more specifically, this method is applied to the first son The host node of network.
As shown in Fig. 2, this method is included in operation S201, the billing information from the side of taking ticket is received.
Wherein, the above-mentioned side of taking ticket refers to the current client as the side of taking ticket, and currently the side of taking ticket is in multiple client One, the user of the current client as the side of taking ticket is the user for currently holding bill.For example, multiple client includes client A, customer end B and client C are held, when bill is held by the user of customer end A, customer end A is used as the side of taking ticket, when bill is by visitor When the user of family end A transfers the user of customer end B, the side of taking ticket is changed to customer end B from customer end A, it can be seen that the side of taking ticket This role likely corresponds to different clients in different times.This operation S201, which is received, is used as the side of taking ticket from current Client billing information, when a client as the side of taking ticket to the host node of the first sub-network issue billing information When, illustrate that the user of the client as the side of taking ticket wishes to transfer the possession of corresponding bill, the billing information for describe the bill from Generate the relevant information until current time.
In operation S202, the billing information is broadcasted to first sub-network, by one in first sub-network A or multiple first nodes are to billing information described in the multiple client push.
Wherein, the host node of the first sub-network broadcasts the billing information from the currently side of taking ticket into the first sub-network One or more first nodes, any first node can be stored after receiving the billing information locally, and should Billing information pushes to client corresponding with the first node, and then the user of relative client can be known and bill letter It ceases corresponding bill and is in the relevant informations such as state to be transferred the possession of, the side of taking ticket, historic state.To other visitors other than the side of taking ticket The user at family end when needed can be to request bill transfer at the user for currently holding bill.
In operation S203, it is changed in response to the side of taking ticket by one client another in the multiple client One client obtains characterization bill and circulates from one client to the transaction record of another client and carry out first Verifying generates the block comprising the transaction record after being verified first;The block is sent to second subnet Network carries out the second verifying, and the block is added to block chain after being verified second.
Wherein, when bill transfers the user of customer end B by the user of customer end A, the side of taking ticket is changed to from customer end A Customer end B, that is, the side of taking ticket are changed to the event of another client by a client.At this point, according to this operation S203, the The host node acquisition of one sub-network characterizes the bill and circulates from customer end A to the transaction record of customer end B, and to the transaction record Progress first is verified, if indicating to primarily determine that bill circulation process is very, to generate and remember comprising the transaction by the first verifying The block of record.The block is sent to the second sub-network being made of bank node and carries out the second verifying, if tested by second Card indicates finally to determine that bill circulation process is very, in the block chain that block addition block chain network is safeguarded.Into one Step ground, after operating S203, customer end B is as the current side of taking ticket, if the user of customer end B wishes to continue to transfer the possession of the ticket According to, repeat aforesaid operations S201~S203, until bill circulation process terminate.
As it can be seen that method shown in Fig. 2 devises the block chain network comprising the first sub-network and the second sub-network, wherein the Each node in one sub-network corresponds to bill and transfers the possession of platform, and each node in the second sub-network corresponds to bank.Pass through first Sub-network notifies the transfer demand of bill to each client, and when bill circulation process occurs, corresponding transaction record is passed through Block chain can be just stored in by crossing after the double verification of the first sub-network and the second sub-network, guarantee transaction data it is true, safe, with And nothing is distorted, and each side of block chain network and each client that can be communicated with block chain network being capable of timely learning bills The latest tendency and relevant information of circulation improve the efficiency of bill circulation process.
In one embodiment of the present disclosure, above-mentioned billing information may include: summary info, content information, Yi Jizuo For the digital signature of the said one client of the currently side of taking ticket.Wherein, the summary info of billing information includes following at least one : the amount of the instrument, the side's of drawing a bill identification information and the side's of taking ticket identification information.Specifically, it endorses in current bill through the side of honouring In the case of, corresponding summary info further includes the side's of honouring endorsement information.There are the previous side of taking ticket, summary info It further include the endorsement information of the previous side of taking ticket.And/or the content information of billing information includes at least one of following: Bill encryption information, the account information for the side of drawing a bill, the side of taking ticket account information and coupon identification information, wherein bill encrypt Information includes allowance interest rate information of bill etc..
For example, customer end B generates bill 1, draw a bill side of the customer end B as bill 1, currently by the user of customer end A Hold the bill 1, then customer end A is as the current side of taking ticket.Customer end A generates the process of the current bill information of bill 1 are as follows: visitor Family end A generates the triple (bill encryption information, the account information for the side of drawing a bill, the account information for the side of taking ticket) about bill 1.Its In, bill 1 is electronic bill, and bill linking sources are circulation object, and bill encryption information refers to the interest rate information of bill allowance, It needs to encrypt;Summary info of the side of taking ticket to triple editor's plaintext, comprising: the amount of the instrument, the side's of drawing a bill title and take ticket Square title, while the billing information is signed by the side of taking ticket using the private key of itself, and the digital signature comprising the side of taking ticket is obtained Billing information, the message comprising the billing information is broadcast to the first sub-network.
In one embodiment of the present disclosure, above-mentioned broadcast the billing information to the first sub-network may include: to test Demonstrate,prove the true and false of the billing information;And if the billing information be it is true, which is broadcasted each to the first sub-network First node is to be stored.
For example, currently as the first sub-network host node bill transfer platform can under chain by with it is existing general E-business draft system (ECDS) interaction, complete verifying to the taken ticket evidence in the currently side of taking ticket, i.e., completion is to corresponding bill The verifying of information, if verification result shows that the billing information is true, and verification result write-in is issued by the currently side of taking ticket Billing information generates four-tuple (bill encryption information, verification result, the account information for the side of drawing a bill, the account information for the side of taking ticket), The bill transfers the possession of platform using the private key of itself to information signature ((bill encryption information, verification result, the account for the side of drawing a bill Information, the account information for the side of taking ticket), bill transfers the possession of the digital signature of platform), and by the message to the first sub-network other are each First node broadcast, so as to each client push message.
It in one embodiment of the present disclosure, include a host node in multiple first nodes of the first sub-network, referred to as For platform Leader node.It also include a host node, referred to as bank Leader in multiple second nodes of second sub-network Node.Wherein optionally, the platform Leader node in a period of time in office is by the side of taking ticket in any time period Specified.And/or bank's Leader node in any time period is determined based on RAFT common recognition algorithm.
As it can be seen that the first sub-network determines that the mode of host node is different from tradition RAFT common recognition algorithm, platform Leader node It is specified by the side of taking ticket, rather than elected from candidate (Candidate) node.I.e. bill business occurs at which Bill transfers the possession of platform, just transfers the possession of the corresponding first node of platform as current platform Leader node by the bill and is remembered Account, other first nodes in the first sub-network are used as from (Follower) node, corresponding to the bill for being in nontransaction state Transfer the possession of platform.
And the second sub-network determines that the mode of host node is largely consistent with tradition RAFT common recognition algorithm, such as bank Selection, conversion of state of Leader node etc. are by electing.But this is in order to improve according to the embodiment of the present disclosure The safety of scheme for bill circulation, needing to avoid the occurrence of the corresponding second node of some bank is bank Leader always The case where node, so avoid book keeping operation power too concentrate, as an optional embodiment, this programme devise as follows with biography The different part of system RAFT common recognition algorithm: when the host node of second sub-network in the two neighboring time cycle is same section When point, host node is determined from second sub-network based on RAFT common recognition algorithm again.The process can be referred to as are as follows: Leader life cycle management.For example, each T time section, carries out the starting of bank's Leader node selection mechanism, so that In the book keeping operation of each platform Leader node, the bank's Leader node for synchronizing book keeping operation is different, if the bank selected Leader node delay machine, re-elects, until generating qualified bank's Leader node.In order to avoid practising fraud, if In two adjacent T, the corresponding node of same bank is selected as bank's Leader node twice in succession, then is considered as electoral adoidance, RAFT common recognition algorithm is restarted, until selecting legal bank's Leader node.
On this basis, in one embodiment of the present disclosure, then the host node of above-mentioned first sub-network by the packet of generation Block containing transaction record is sent to the second sub-network and carries out the second verifying, and the block is added to area after being verified second Block chain may include: the host node that the block is sent to current second sub-network, by the host node of the second sub-network to the area Block carries out the second verifying, and the second verification result is added in the block;And the block comprising the second verification result is added Enter to the block chain.
The above process is related to the communication between platform Leader node and bank's Leader node, for example, the communication can be with It is issued from platform Leader node to bank's Leader node, Content of Communication is " synchronous account book ", and bank's Leader node receives After the request, start block chain distribution account book synchronization mechanism, the synchronizing content that platform Leader node is sent is added to Have in account book.Since the circulation process of multiple bills may be handled simultaneously in the first sub-network, with having in a period of time Multiple clients as the side of taking ticket, multiple bills transfer the possession of the platform Leader section that platform is designated as different bill circulation processes Point keeps the platform Leader node of heartbeat all being traded and kept accounts.Therefore, can exist multiple platform Leader nodes with Bank's Leader node synchronizes the case where account book simultaneously, and bank's Leader node is both needed to locate for any request received Reason starts hot standby server at once and completes link work if delay machine.
Specifically, in one embodiment of the present disclosure, the first sub-network further includes the first hot standby node, when the first subnet When the host node of network breaks down, the host node of first sub-network is replaced using the described first hot standby node.And/or Person, the second sub-network further includes the second hot standby node, when the host node of the second sub-network breaks down, utilizes second heat Slave node replaces the host node of second sub-network.
For example, bill to be transferred the possession of to backup server (hot standby server, the guarantee platform friendship of platform in the first sub-network Can be easily normally carried out with book keeping operation) as candidate (Candidate) node in first sub-network, which is different from passing Both candidate nodes in system RAFT common recognition algorithm, purposes are that it is flat to substitute this in current platform Leader nodes break down Platform Leader operation, other first nodes are remained from node state, the normal operation of backed bill circulation process.For platform Leader node needs to remain account status, for example, is otherwise considered as delay machine.It similarly also can be used in the second sub-network hot standby Server prevents host node from breaking down, and details are not described herein.
Combined with specific embodiments below, it is further spread out to according to the method for bill circulation of the embodiment of the present disclosure It is bright:
Construct block chain network first, this example block chain network is specially alliance's catenary system, including the first sub-network and Second sub-network, the first sub-network are constituted by transferring the possession of the corresponding first node of platform with multiple bills, the second sub-network by with it is more The corresponding second node of a bank is constituted.In addition, further including the multiple client as light node, according to the user's of client Bill related service, client can be used as the side of drawing a bill, the side of honouring, the side of taking ticket, bill intermediary etc., and block chain network is relied on to provide Block chain service, build quotient's ticket from the whole flow process signed and issued to circulation.In the block chain network, bill is transferred the possession of platform and is responsible for The user of the smooth realization of interactive process, each client carries out bill operation, and corresponding bill is read in each link Full dose information, bank are responsible for final discounted note.
Fig. 3 A diagrammatically illustrates the architecture diagram for bill circulation process according to the embodiment of the present disclosure.
As shown in Figure 3A, P1~Pn1Represent the first node for corresponding to bill and transferring the possession of platform of the first sub-network of composition, n1 Indicate that bill transfers the possession of the quantity of platform.E1~En2Representative can be used as the side of drawing a bill and/or the client of holder, and n2 is indicated can be with As the side of drawing a bill and/or the quantity of the client of holder.I1~In3The client that can be used as bill intermediary is represented, n3 is indicated It can be used as the quantity of the client of bill intermediary.B1~Bn4The client that can be used as the side of honouring is represented, n4 expression can be made For the quantity of the client for the side of honouring.A1~An5The second node corresponding to bank of the second sub-network of composition is represented, n5 is indicated The quantity of bank.As can be seen that first node can be communicated with the client of various roles, first node can also be with Two nodes are communicated.In the system architecture, second node P1~Pn1As the accounting nodes in alliance's catenary system, can be more A, this is consistent with actual conditions, in practical business, can have multiple support bills to transfer the possession of the website of business, correspondence is multiple and different Mechanism body.The side of drawing a bill, the side of taking ticket, bill intermediary, the side of honouring can be according to preference and business rules (such as according to bill industry The limitation of the bank of deposit of business etc.) select different bill transfer platforms to commence business.
After the generation of true trade background, (side of drawing a bill may be purchase enterprise in practical business, it is also possible to sell for the side of drawing a bill Goods enterprise, this programme are defined in purchase enterprise to simplify the description, by the side of drawing a bill) gathering is paid using bill as means of payment Side, thus which can start the circulation process of bill as the earliest side of taking ticket, until being discounted in bank Or hold expire after cash.Now the method for bill circulation process is described, refers to Fig. 3 B.
Fig. 3 B diagrammatically illustrates the schematic diagram according to the bill of embodiment of the present disclosure circulation process.
As shown in Figure 3B, bill circulation process includes that chain is outer with two different parts in chain, and chain outer portion may include: The side of drawing a bill to bill sign and issue process, the side of honouring honour endorsement to the bill and (agrees to by a period expression side of honouring Cash the fund responded to the side of taking ticket afterwards, can also be without honouring endorsement process if the side of honouring and the side of taking ticket are same side), hold Ticket side receives the bill signed and issued, and the side of taking ticket passes through the true and false etc. with ECDS validation-cross bill, it can including in practical business Various processes, herein with no restrictions.
Chain inner part can carry out bill stream by the first sub-network and the second sub-network since the side of taking ticket receives bill Turn and the business such as final discount, comprising: when there is bill transfer demand in the side of taking ticket, the side of taking ticket can be by current billing information To the first sub-network, billing information can be generated according to foregoing embodiments for broadcast.Current main section as the first sub-network The bill of point, which transfers the possession of platform, can star note validating mechanism, such as by interacting with ECDS, complete evidence taken ticket to the side of taking ticket Verifying, and by the billing information issued of the verification result write-in side of taking ticket, and the message comprising the billing information is wide to the whole network It broadcasts, realizes to bill intermediary and push the message.
Then, each bill intermediary browsing push record, starts intelligent contract and completes endorsement and transference.Specifically, ticket PUSH message is received according to intermediary, browses the message, and by trading (detailed process does not repeat) with the currently side of taking ticket, generates transaction Record.Specifically, bill intermediary and the side of taking ticket complete to trade, and with the progress of intelligent contract, all clauses are required to pass through in endorsement The setting of intelligent contract, can only endorse to an object, can only be whole rights, and no strings attached, avoid carrying on the back in vain with this The appearance of book situation promotes endorsement success rate, and then promotes the promotion of the efficiency of entire bill circulation process.For block link network For network, due to the uniqueness of the public and private key of each node, the node of each participation can be considered stamped signature, therefore ticket using private key signature It is equivalent that its stamped signature can be considered as according to the private key signature of intermediary, with this lifting system efficiency.
High frequency, a large amount of transaction, each bill transfer the possession of the book keeping operation of platform, a book keeping operation can be set when due to bill business Period, such as T such as complete 500 transactions during this period of time, then after T, this 500 transaction is packaged into a block body, The Mei Keer root (Merkle Root) that the transaction packet is obtained by Hash operation is completed by current platform Leader node Block assembling.Current platform Leader node completes book keeping operation, account book synchronous with other first nodes.
Platform Leader node and the communication of bank's Leader node, communication are saved from platform Leader node to bank Leader Point issues, and Content of Communication is " synchronous account book ", and after bank's Leader node receives the request, starting block chain distribution account book is same The synchronizing content that platform is sent is added in existing account book by step mechanism.
Bill transfers the possession of the negotiability of platform or same billing platform in different bills, completes according to the above process.Ticket According to complete last time transfer the possession of, from the last one side of taking ticket by this bill to bank discount, among bill circulation process Endorsement process can be used as historical record and stay in block chain, and all records can not be distorted, appointing in the second sub-network The relevant all information of the bill can be known from block chain in one bank, such as the account of the current holder of bill, complete Discount link.Preferably, bank need to only approve the last one endorser, for bank, by the ticket by repeatedly endorsing It is treated according to can be used as endorsement twice (the endorsement information for the side of honouring and the endorsement information of the last one side of taking ticket) bill.
Fig. 4 diagrammatically illustrates the block diagram of the device for bill circulation according to the embodiment of the present disclosure, device configuration In block chain network, block chain network includes the first sub-network and the second sub-network, and the first sub-network includes turning with multiple bills It allows the corresponding multiple first nodes of platform, includes the host node of the first sub-network in multiple first nodes, the second sub-network includes Multiple second nodes corresponding with multiple discounted note banks, more specifically, which is configured at the main section of the first sub-network Point.
As shown in figure 4, the device 400 for bill circulation includes receiving module 410, broadcast module 420 and authentication module 430。
Receiving module 410, for receiving the billing information from the side of taking ticket, the side of taking ticket is in multiple client One.
Broadcast module 420, for broadcasting the billing information to first sub-network, by first sub-network One or more first nodes to billing information described in the multiple client push.
Authentication module 430, for being changed to the multiple client by one client in response to the side of taking ticket In another client, obtain the transaction record that circulates from one client to another client of characterization bill and go forward side by side Row first is verified, and the block comprising the transaction record is generated after being verified first;The block is sent to described Two sub-networks carry out the second verifying, and the block is added to block chain after being verified second.
Fig. 5 diagrammatically illustrates the block diagram of the device for bill circulation according to another embodiment of the disclosure.
As shown in figure 5, the device 500 for bill circulation includes receiving module 510, broadcast module 520 and authentication module 530.Wherein, receiving module 510, broadcast module 520 and authentication module 530 are respectively provided with and receiving module 410, broadcast module 420 and the corresponding identical function of authentication module 430, duplicate part repeats no more.
In one embodiment of the present disclosure, above-mentioned billing information includes: summary info, content information and described one The digital signature of a client.The summary info includes at least one of following: the amount of the instrument, the side's of drawing a bill identification information and The side's of taking ticket identification information, wherein in the case where the bill is endorsed through the side of honouring, the summary info further includes the side's of honouring back Letter breath, there are the previous side of taking ticket, the summary info further includes the letter of endorsement of the previous side of taking ticket Breath;And/or the content information includes at least one of following: bill encryption information, the side of drawing a bill account information, take ticket The account information and coupon identification information of side, wherein the bill encryption information includes the allowance interest rate information of bill.
In one embodiment of the present disclosure, broadcast module 520 includes: verifying submodule 521 and broadcast submodule 522. Verifying submodule 521 is used to verify the true and false of the billing information;And if broadcast submodule 522 is believed for the bill Breath is very, then to broadcast the billing information to each first node of first sub-network to store.
In one embodiment of the present disclosure, include a host node in multiple second nodes of the second sub-network, then test Demonstrate,proving module 530 includes: sending submodule 531 and cochain submodule 532.
Sending submodule 531 is used to for the block being sent to the host node of second sub-network, by second son The host node of network carries out the second verifying to the block, and the second verification result is added in the block;And cochain submodule Block 532 is used to for the block comprising the second verification result being added to the block chain.
Wherein, as an optional embodiment, the host node in the first sub-network a period of time in office be by What the side of taking ticket in any time period specified.And/or the master in the second sub-network a period of time in office Node is determined based on RAFT common recognition algorithm.
Preferably, when the host node of second sub-network in the two neighboring time cycle is same node, again Host node is determined from second sub-network based on RAFT common recognition algorithm.
Further, in one embodiment of the present disclosure, the first sub-network further includes the first hot standby node, when described When the host node of one sub-network breaks down, the host node of first sub-network is replaced using the described first hot standby node;And And/or person, the second sub-network further include the second hot standby node, when the host node of second sub-network breaks down, are utilized The second hot standby node replaces the host node of second sub-network.
In accordance with an embodiment of the present disclosure, a kind of system for bill circulation, including the first sub-network and the are additionally provided Two sub-networks, first sub-network include transferring the possession of the corresponding multiple first nodes of platform with multiple bills, and the multiple first Node includes the host node of the first sub-network, and second sub-network includes corresponding with multiple discounted note banks multiple second Node.The host node of first sub-network receives the billing information from the side of taking ticket, and the side of taking ticket is in multiple client One, and the billing information is broadcasted to the first sub-network.One or more first nodes in first sub-network are to described Multiple client pushes the billing information.The host node of first sub-network is in response to the side of taking ticket by one client Another client being changed in the multiple client obtains characterization bill and circulates from one client to described another The transaction record of client simultaneously carries out the first verifying, and the block comprising the transaction record is generated after being verified first, and The block is sent to second sub-network.One or more second nodes in second sub-network are to the transaction record Carry out the second verifying.And first sub-network and the second sub-network be verified second after the block is added to block Chain.
It should be noted that in device section Example each module/unit/subelement etc. embodiment, the skill of solution Art problem, the function of realization and the technical effect reached respectively with the implementation of corresponding step each in method section Example Mode, the technical issues of solving, the function of realization and the technical effect that reaches are same or like, and details are not described herein.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule, Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, any number of in receiving module 510, broadcast module 520 and authentication module 530 may be incorporated in a mould It is realized in block or any one module therein can be split into multiple modules.Alternatively, one or more in these modules At least partly function of a module can be combined at least partly function of other modules, and be realized in a module.Root According to embodiment of the disclosure, at least one of receiving module 510, broadcast module 520 and authentication module 530 can be at least by portions Ground is divided to be embodied as hardware circuit, such as field programmable gate array (FPGA), programmable logic array (PLA), system on chip, base The system in system, encapsulation, specific integrated circuit (ASIC) on plate, or can be by carrying out times that be integrated or encapsulating to circuit The hardware such as what other rational method or firmware realize, or with any one in three kinds of software, hardware and firmware implementations Kind or several appropriately combined realized with wherein any.Alternatively, receiving module 510, broadcast module 520 and authentication module 530 At least one of can at least be implemented partly as computer program module, when the computer program module is run, Corresponding function can be executed.
Fig. 6 is diagrammatically illustrated according to the computer equipment for being adapted for carrying out method as described above of the embodiment of the present disclosure Block diagram.Computer equipment shown in Fig. 6 is only an example, should not function to the embodiment of the present disclosure and use scope bring Any restrictions.
As shown in fig. 6, include processor 601 according to the computer equipment 600 of the embodiment of the present disclosure, it can be according to storage It is loaded into random access storage device (RAM) 603 in the program in read-only memory (ROM) 602 or from storage section 608 Program and execute various movements appropriate and processing.Processor 601 for example may include general purpose microprocessor (such as CPU), refer to Enable set processor and/or related chip group and/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processing Device 601 can also include the onboard storage device for caching purposes.Processor 601 may include for executing according to disclosure reality Apply single treatment unit either multiple processing units of the different movements of the method flow of example.
In RAM 603, it is stored with equipment 600 and operates required various programs and data.Processor 601, ROM 602 with And RAM 603 is connected with each other by bus 604.Processor 601 is held by executing the program in ROM 602 and/or RAM 603 The various operations gone according to the method flow of the embodiment of the present disclosure.It is noted that described program also can store except ROM 602 In one or more memories other than RAM 603.Processor 601 can also be stored in one or more of by execution Program in memory executes the various operations of the method flow according to the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, equipment 600 can also include input/output (I/O) interface 605, input/output (I/O) interface 605 is also connected to bus 604.Equipment 600 can also include be connected to I/O interface 605 with one in lower component Item is multinomial: the importation 606 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD) Deng and loudspeaker etc. output par, c 607;Storage section 608 including hard disk etc.;And including such as LAN card, modulatedemodulate Adjust the communications portion 609 of the network interface card of device etc..Communications portion 609 executes communication process via the network of such as internet. Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor Memory etc. is mounted on as needed on driver 610, in order to be pacified as needed from the computer program read thereon It is packed into storage section 608.
In accordance with an embodiment of the present disclosure, computer software journey may be implemented as according to the method flow of the embodiment of the present disclosure Sequence.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer readable storage medium Computer program, which includes the program code for method shown in execution flow chart.In such implementation In example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 It is mounted.When the computer program is executed by processor 601, the above-mentioned function limited in the system of the embodiment of the present disclosure is executed Energy.In accordance with an embodiment of the present disclosure, system as described above, unit, module, unit etc. can pass through computer program Module is realized.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned reality It applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/ In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quilts When execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage medium Matter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.For example, in accordance with an embodiment of the present disclosure, computer readable storage medium may include above-described One or more memories other than ROM 602 and/or RAM 603 and/or ROM 602 and RAM 603.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, In In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, and It is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each reality Use cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take off From the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all fall in this Within scope of disclosure.

Claims (10)

1. a kind of method for bill circulation, the method are applied to the host node of the first sub-network, first sub-network Block chain network, multiple first nodes of first sub-network including the host node, institute are constituted with the second sub-network It is corresponding with multiple bills transfer platform to state multiple first nodes, second sub-network includes corresponding with multiple discounted note banks Multiple second nodes, which comprises
The billing information from the side of taking ticket is received, the side of taking ticket is one in multiple client;
The billing information is broadcasted to first sub-network, by one or more first nodes in first sub-network To billing information described in the multiple client push;And
Another client in the multiple client is changed to by one client in response to the side of taking ticket, obtains table Sign bill circulates to the transaction record of another client from one client and carries out the first verifying, in the first verifying The block comprising the transaction record is generated by rear;The block is sent to second sub-network and carries out the second verifying, The block is added to block chain after being verified second.
2. according to the method described in claim 1, wherein, the billing information includes: summary info, content information, Yi Jisuo State the digital signature of a client;
The summary info includes at least one of following: the amount of the instrument, the side's of drawing a bill identification information and the side's of taking ticket identification information, Wherein, in the case where the bill is endorsed through the side of honouring, the summary info further includes the side's of honouring endorsement information, before presence In the case where one side of taking ticket, the summary info further includes the endorsement information of the previous side of taking ticket;And/or
The content information includes at least one of following: bill encryption information, the account information for the side of drawing a bill, the side of taking ticket account letter Breath and coupon identification information, wherein the bill encryption information includes the allowance interest rate information of bill.
3. according to the method described in claim 1, wherein, the billing information is broadcasted to first sub-network includes:
Verify the true and false of the billing information;And
If the billing information be it is true, by the billing information broadcast to each first node of first sub-network so as to It is stored.
4. according to the method described in claim 1, including a main section in multiple second nodes of second sub-network wherein Point, then it is described that the block is sent to second verifying of the second sub-network progress, by the area after being verified second Block is added to block chain
The block is sent to the host node of second sub-network, by the host node of second sub-network to the block The second verifying is carried out, the second verification result is added in the block;And
The block comprising the second verification result is added to the block chain.
5. according to the method described in claim 4, wherein,
Host node in the first sub-network a period of time in office is specified by the side of taking ticket in any time period 's;And/or
Host node in the second sub-network a period of time in office is determined based on RAFT common recognition algorithm.
6. according to the method described in claim 5, wherein, when the main section of second sub-network in the two neighboring time cycle When point is same node, host node is determined from second sub-network based on RAFT common recognition algorithm again.
7. according to the method described in claim 4, wherein,
First sub-network further includes the first hot standby node, when the host node of first sub-network breaks down, is utilized The first hot standby node replaces the host node of first sub-network;And/or
Second sub-network further includes the second hot standby node, when the host node of second sub-network breaks down, is utilized The second hot standby node replaces the host node of second sub-network.
8. a kind of system for bill circulation, including the first sub-network and the second sub-network, first sub-network include with Multiple bills transfer the possession of the corresponding multiple first nodes of platform, and the multiple first node includes the host node of the first sub-network, institute Stating the second sub-network includes multiple second nodes corresponding with multiple discounted note banks;
The host node of first sub-network receives the billing information from the side of taking ticket, and the side of taking ticket is one in multiple client It is a, and the billing information is broadcasted to the first sub-network;
One or more first nodes in first sub-network are to billing information described in the multiple client push;
The host node of first sub-network is changed in the multiple client in response to the side of taking ticket by one client Another client, obtain characterization bill circulate from one client to the transaction record of another client and progress First verifying, generated after being verified first include the transaction record block, and the block is sent to described the Two sub-networks;
One or more second nodes in second sub-network carry out the second verifying to the transaction record;And
The block is added to block chain after being verified second for first sub-network and the second sub-network.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, the processor are realized when executing described program:
Such as method according to any one of claims 1 to 7.
10. a kind of computer readable storage medium, is stored thereon with executable instruction, which makes to handle when being executed by processor Device executes:
Such as method according to any one of claims 1 to 7.
CN201910795110.4A 2019-08-26 2019-08-26 Method, system, computer device and medium for ticket circulation Active CN110417917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910795110.4A CN110417917B (en) 2019-08-26 2019-08-26 Method, system, computer device and medium for ticket circulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910795110.4A CN110417917B (en) 2019-08-26 2019-08-26 Method, system, computer device and medium for ticket circulation

Publications (2)

Publication Number Publication Date
CN110417917A true CN110417917A (en) 2019-11-05
CN110417917B CN110417917B (en) 2020-09-29

Family

ID=68368839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910795110.4A Active CN110417917B (en) 2019-08-26 2019-08-26 Method, system, computer device and medium for ticket circulation

Country Status (1)

Country Link
CN (1) CN110417917B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN112487491A (en) * 2020-10-31 2021-03-12 远光软件股份有限公司 Control method and related device for block chain system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356524A1 (en) * 2014-06-04 2015-12-10 MONI Limited System and method for executing financial transactions
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN106952094A (en) * 2017-03-10 2017-07-14 腾讯科技(深圳)有限公司 Electronic bill management method and device
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security
CN107786339A (en) * 2016-08-31 2018-03-09 陈新 It is layered controllable alliance's block catenary system
CN109191219A (en) * 2018-08-13 2019-01-11 腾讯科技(深圳)有限公司 About the data processing method of electronic bill, device, storage medium and equipment
CN109345194A (en) * 2018-09-12 2019-02-15 北京东港瑞宏科技有限公司 A kind of electronic bill flow system
CN109447811A (en) * 2018-12-07 2019-03-08 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356524A1 (en) * 2014-06-04 2015-12-10 MONI Limited System and method for executing financial transactions
CN107786339A (en) * 2016-08-31 2018-03-09 陈新 It is layered controllable alliance's block catenary system
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN106952094A (en) * 2017-03-10 2017-07-14 腾讯科技(深圳)有限公司 Electronic bill management method and device
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security
CN109191219A (en) * 2018-08-13 2019-01-11 腾讯科技(深圳)有限公司 About the data processing method of electronic bill, device, storage medium and equipment
CN109345194A (en) * 2018-09-12 2019-02-15 北京东港瑞宏科技有限公司 A kind of electronic bill flow system
CN109447811A (en) * 2018-12-07 2019-03-08 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN112487491A (en) * 2020-10-31 2021-03-12 远光软件股份有限公司 Control method and related device for block chain system

Also Published As

Publication number Publication date
CN110417917B (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US20190164150A1 (en) Using Blockchain Ledger for Selectively Allocating Transactions to User Accounts
CN107846278B (en) Intelligent contract processing method and device
KR101835520B1 (en) Method for providing united point service using updated status of balance database with blockchain and server using the same
US10708071B1 (en) Consensus protocols in distributed computing systems
CN110009338B (en) Accounting method and device based on block chain and electronic equipment
CN107392608A (en) Digital asset method of commerce and block catenary system based on block catenary system
CN109829824A (en) A kind of commodity transaction information sharing method based on block chain technology
US20230410111A1 (en) Cryptocurrency Storage Distribution
US11087371B2 (en) Blockchain-based invoice creation method apparatus, and electronic device
CN109102269A (en) Transfer account method and device, block chain node and storage medium based on block chain
CN111369245A (en) Alliance chain system for financial product sales
CN112215663A (en) User point currency method, equipment and medium
KR101835519B1 (en) Method for providing united point service in use of merkle tree structure on the basis of unspent transaction output protocol and server using the same
CN102819809B (en) A kind of acquisition method of tax-control data and system
CN109859043A (en) A kind of exchange settlement method and trade clearing system
KR101835518B1 (en) Method for providing united point service in use of unspent transaction output based protocol and server using the same
CN110288346A (en) Block chain distributed storage method for down loading, equipment and storage medium
CN113570350A (en) Bill digital interaction system and method based on block chain
CN110417917A (en) Method, system, computer equipment and medium for bill circulation
US20200184560A1 (en) Method and gui for settlement of commodity contracts denominated in commodity contract tokens
CN101819695A (en) Method for realizing synchronization of IC card/purse transaction and system accounting
CN109165319B (en) Accounting method, device and system based on block chain
CN117350880A (en) Full-link account checking method, device, equipment and medium based on snowflake algorithm
CN110473086A (en) Treating method and apparatus for business
CN110335133A (en) Processing method, system, electronic equipment and the storage medium of transaction data

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.