CN110009316A - Event-handling method and device, electronic equipment based on block chain - Google Patents

Event-handling method and device, electronic equipment based on block chain Download PDF

Info

Publication number
CN110009316A
CN110009316A CN201811530103.3A CN201811530103A CN110009316A CN 110009316 A CN110009316 A CN 110009316A CN 201811530103 A CN201811530103 A CN 201811530103A CN 110009316 A CN110009316 A CN 110009316A
Authority
CN
China
Prior art keywords
transaction
participant
block chain
event
alternative sub
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
Application number
CN201811530103.3A
Other languages
Chinese (zh)
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811530103.3A priority Critical patent/CN110009316A/en
Publication of CN110009316A publication Critical patent/CN110009316A/en
Priority to TW108135661A priority patent/TWI705691B/en
Priority to PCT/CN2019/113934 priority patent/WO2020119297A1/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This specification one or more embodiment provides a kind of event-handling method based on block chain and device, electronic equipment, when being applied to participant, the described method includes: adding corresponding alternative sub- transaction in the waiting list of Xiang Suoshu participant maintenance according to the event that the participant is participated in;According to several alternative sub- transaction chosen from the waiting list, corresponding set transaction is generated;Set transaction is committed to block chain, handles the alternative sub- transaction in the set transaction respectively.

Description

Event-handling method and device, electronic equipment based on block chain
Technical field
This specification one or more embodiment is related to block chain technical field more particularly to a kind of thing based on block chain Part processing method and processing device, electronic equipment.
Background technique
In the related art, the participant of event can generate the transaction of corresponding block chain for the event, and pass through to The block chain is submitted to trade in block chain, so that block chain transaction can be performed by block chain node, to complete the thing The implementation of part.
Summary of the invention
In view of this, this specification one or more embodiment provides a kind of event-handling method and dress based on block chain It sets, electronic equipment
To achieve the above object, it is as follows to provide technical solution for this specification one or more embodiment:
According to this specification one or more embodiment in a first aspect, proposing a kind of event handling based on block chain Method is applied to participant, which comprises
According to the event that the participant is participated in, added in the waiting list of Xiang Suoshu participant maintenance corresponding alternative Son transaction;
According to several alternative sub- transaction chosen from the waiting list, corresponding set transaction is generated;
Set transaction is committed to block chain, locates the alternative sub- transaction in the set transaction respectively Reason.
According to the second aspect of this specification one or more embodiment, a kind of event handling based on block chain is proposed Method is applied to block chain node, which comprises
The set transaction that participant is committed to block chain is received, includes to be safeguarded from the participant in the set transaction Several alternative sub- transaction chosen in waiting list, the alternative sub- transaction correspond to the event that the participant is participated in;
The set transaction is executed, handled respectively the alternative sub- transaction in the set transaction.
According to the third aspect of this specification one or more embodiment, a kind of event handling based on block chain is proposed Device, is applied to participant, and described device includes:
Adding unit is added in the waiting list of Xiang Suoshu participant maintenance according to the event that the participant is participated in Corresponding alternative sub- transaction;
Generation unit generates corresponding set transaction according to several alternative sub- transaction chosen from the waiting list;
Unit is submitted, set transaction is committed to block chain, divides the alternative sub- transaction in the set transaction It is not handled.
According to the fourth aspect of this specification one or more embodiment, a kind of event handling based on block chain is proposed Device, is applied to block chain node, and described device includes:
Receiving unit receives the set transaction that participant is committed to block chain, includes from the ginseng in the set transaction With several alternative sub- transaction chosen in the waiting list just safeguarded, the alternative sub- transaction corresponds to the participant and is participated in Event;
Execution unit executes the set transaction, handled respectively the alternative sub- transaction in the set transaction.
According to the 5th of this specification one or more embodiment the aspect, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize method described in above-mentioned first aspect.
According to the 6th of this specification one or more embodiment the aspect, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize method described in above-mentioned second aspect.
Detailed description of the invention
Fig. 1 is a kind of flow chart for event-handling method based on block chain that an exemplary embodiment provides.
Fig. 2 is the flow chart for another event-handling method based on block chain that an exemplary embodiment provides.
Fig. 3 is a kind of schematic diagram of a scenario for cross-border remittance that an exemplary embodiment provides.
Fig. 4 is the interaction schematic diagram in a kind of cross-border money transfer process of an exemplary embodiment.
Fig. 5 is a kind of schematic diagram for block chain transaction content based on ciphertext numerical value that an exemplary embodiment provides.
Fig. 6 is a kind of schematic diagram for block chain transaction content based on plaintext numerical value that an exemplary embodiment provides.
Fig. 7 is a kind of schematic diagram for statistics triggering situation that an exemplary embodiment provides.
Fig. 8 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.
Fig. 9 is a kind of block diagram for event processing apparatus based on block chain that an exemplary embodiment provides.
Figure 10 is the structural schematic diagram for another equipment that an exemplary embodiment provides.
Figure 11 is the block diagram for another event processing apparatus based on block chain that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
Fig. 1 is a kind of flow chart for event-handling method based on block chain that an exemplary embodiment provides.Such as Fig. 1 institute To show, this method is applied to participant, it may comprise steps of:
Step 102, the event participated according to the participant, Xiang Suoshu participant maintenance waiting list in addition pair The alternative sub- transaction answered.
In one embodiment, event is there are multiple participants, and each participant, which corresponds to, participates in object, which can Think individual, enterprise, tissue etc., this specification is limited not to this.Participating in object, there are corresponding digital identities, so that The electronic equipment for carrying the digital identity, which is equivalent to, is configured as participant corresponding to the participation object.
In one embodiment, the event of this specification may include any type, any scene of covering, such as ballot, label Conclude an agreement, assignment of traffic, transfer accounts, it is cross-border remittance etc., this specification is limited not to this.By taking ballot as an example, description information It may include the ballot information such as the origin of an incident and polling option, and each triggering information for participating in submitting in direction block chain may include To the selection result of polling option, to trigger completion ballot operation.
It in one embodiment, include the description information of event in alternative son transaction, the description information is for describing related thing The case where part, can implement corresponding event according to the description information when so that the alternative sub- transaction is processed.For example, description Information can characterize the execution logic of dependent event, related participant, shifting gears (such as to the state parameter of participant Increase or reduce the value of state parameter), variable quantity etc., this specification is limited not to this.In fact, the correlation of event Content can be linked up by first passing through any way between each participant in advance, then carry out drafting this by any participant The description information of event, allow other participants of event according to preparatory communication result to the content of the description information into Row is checked and is confirmed;Certainly, any participant can also voluntarily determine its of event in the case where not linking up in advance Other content in his participant and description information, this specification are limited not to this.
In one embodiment, the description information of event can be generated by any participant of the event, and it is any to be added to this Alternative sub- transaction in the waiting list of participant maintenance.And the description information that will additionally generate of any participant share to Other participants, so that other participants confirm description information.
In one embodiment, description information can be sent to other participations of event by any participant by chain outer tunnel Side.Description information is sent to other participants of event by chain outer tunnel, the high efficiency of transmission to description information may be implemented. Wherein, chain outer tunnel can be the encrypted tunnel established or the exit passageway of other forms between each participant of event, with It avoids that information leakage occurs.
In one embodiment, any participant can be by submitting a transaction to block chain, and the description above is believed Breath is contained in the transaction, so that the transaction is in all block chain nodes that can be sent in block chain after common recognition; And each participant of event can be configured as block chain node in block chain or each participant can be in block There are corresponding block chain node in chain, each participant is safeguarded by itself or corresponding block chain node The block chain account book full dose transaction data of block chain (block chain account book include), obtain above-mentioned transaction and it includes description letter Breath, so that the description above information is synchronized to other participants of event.
Step 104, according to several alternative sub- transaction chosen from the waiting list, corresponding set transaction is generated.
In one embodiment, multiple alternative sub- transaction be may include in set transaction, each alternative sub- transaction respectively corresponds In the event that above-mentioned participant is participated in, so that included is multiple alternative after set transaction is submitted to block chain Son transaction can be processed in block chain, so that these alternative sons are traded, corresponding multiple events are carried out.As it can be seen that It, can be with so that these alternative son transaction are committed to block chain in batches by including multiple alternative sub- transaction in set transaction The number of transaction submitted to block chain is reduced, without generating a block chain transaction for each alternative sub- transaction, is facilitated It reduces resource consumption, promote treatment effeciency.
It in one embodiment, can be when the alternative sub- transaction in the waiting list reaches preset quantity, described in selection Already present alternative sub- transaction (i.e. the alternative sub- transaction of preset quantity) in waiting list, to generate corresponding set transaction.? In another embodiment, already present alternative sub- transaction in the waiting list can be periodically chosen according to preset duration, with Generate corresponding set transaction;Certainly, there may be maximum limitations for the capacity of each set transaction, so that choosing in same period Alternative sub- transaction quantity there are corresponding maximum value, the part exceeded can be postponed until next period and be chosen.Certainly, Alternative son transaction can also be chosen by other preset rules, this specification is limited not to this.
In one embodiment, the alternative sub- transaction in waiting list can be arranged successively according to the addition moment, and every It is secondary successively to choose each alternative sub- transaction from front to back, the alternative sub- transaction being previously generated preferentially is chosen. Certainly, participant can also according to actual needs, such as urgency level, priority of event of event etc., in waiting list Alternative sub- transaction implement and sequentially unrelated selection operation;Alternatively, waiting list inherently can be according to above-mentioned urgent journey Degree, priority etc. are arranged, and can still be considered as successively choose in this way.
In one embodiment, participant can be each merging transaction addition number according to genesis sequence, make each merging Transaction is successively handled in block chain by the size according to reference numeral.In other words, block chain transaction is receiving participant After the merging transaction of submission, need to read the number that merging exchange includes;If number with it is previously processed merge trade Number is continuous, for example, newest processing merging transaction number be 99, the number of merging transaction that is currently received is 100, then may be used Be 100 to the number merging transaction handle;If it is between number and discontinuous, such as the merging transaction of newest processing Number be 99, be currently received merging transaction number be 101, then block chain node need wait and priority processing number is Then 100 merging transaction could handle the merging transaction that number is 101.It all may cause after being performed due to every transaction The state parameter of the participant changes, and the state parameter after the execution of rear transaction needs to rely on previously transaction execution Value, thus be necessary to ensure that each merging transaction is successively handled by the size according to reference numeral, so that each conjunction And transaction can be executed correctly.
Step 106, set transaction is committed to block chain, distinguishes the alternative sub- transaction in the set transaction It is handled.
In one embodiment, in the corresponding alternative sub- transaction of the event, all participants pair comprising the event The multi-party triggering information of the event;Wherein, when the multi-party triggering information passes through verifying, the corresponding alternative son of the event Transaction is triggered execution in block chain.Multi-party triggering information represents all participants recognizing for description information of event Can, and it is desirable that trigger event execution.For example, any participant of event generates description information and is sent to other participants Afterwards, other participants can be confirmed the content of description information, generate signature to description information by the identity key of itself and will The signature is back to any participant, and triggers each participant point that may include description information and event in information in many ways The signature not generated;Each signature belongs to the confirmation message that corresponding participant provides, and if using ciphertext numerical value, the confirmation Also by comprising the proof information to ciphertext numerical value, this is detailed below information.In short, by event in the present embodiment After any participant organizes the formation of multi-party triggering information, it is only necessary to will be added in any waiting list for participating in direction self maintained Corresponding alternative son transaction, and submit the set comprising the alternative sub- transaction to trade to block chain, and other participants are then not required to Implement to be processed similarly;Correspondingly, block chain node can be after triggering information in many ways be by verifying, for any participant The alternative sub- transaction submitted is handled.
In one embodiment, in the corresponding alternative sub- transaction of event, comprising the participant to the folk prescription of the event Trigger information;Wherein, when the folk prescription for the event that all participants of the event are submitted to block chain respectively triggers When information passes through verifying, the corresponding alternative sub- transaction of the event is triggered execution in block chain.Folk prescription triggers information table Bright corresponding participant adds their confirmation to the description information of event, it is desirable to the execution of trigger event;And each participant of event It requires to submit folk prescription triggering information to block chain respectively, so that the folk prescription that block chain node is submitted respectively based on all participants Trigger information, it is determined whether the indicated event of corresponding alternative son transaction should be executed.For example, any participant of event is raw At description information and after being provided to other participants, not only any participant needs to add into the waiting list of self maintained Corresponding alternative son transaction, other each participants are after adding their confirmation to description information, also respectively to the waiting of self maintained Corresponding alternative son transaction is added in queue;And each participant is based respectively on the waiting list generation set of self maintained Transaction, so that it is committed to block chain by the way that transaction will be gathered, so that above-mentioned folk prescription triggering information is submitted to block chain, for Block chain link point is verified.It in folk prescription triggering information may include description information and corresponding participant generate description information Signature;Signature belongs to the confirmation message that corresponding participant provides, and if confirmation message also includes permit using ciphertext numerical value Breath, this is detailed below.By submitting folk prescription to trigger information to block chain respectively from each participant, rather than it is a certain Participant submits multi-party triggering information, and the processing pressure mistake of single participant can be not only shared, prevented to processing pressure Greatly, it can also make each participant each to what is participated according to the actual conditions (such as processing pressure, priority management etc.) of itself Event carries out selectively processing even batch processing.
In one embodiment, the description information of event may include variable quantity, and the event may be used to each ginseng Value variation occurs according to the variable quantity with the state parameter of side's corresponding record on block chain, for example increases value, reduce Value etc..Wherein, according to the type of event or scene difference, corresponding state parameter may also be different, for example transfer accounts or cross-border State parameter under scene of remitting money can be the account balance of participant, and the state parameter under assignment of traffic scene can be with for another example For the number for the residual flow that participant is held, this specification is limited not to this.
In one embodiment, the value of the corresponding state parameter of each participant, the variable quantity can be plaintext numerical value. Block chain node in block chain safeguards there is block chain account book respectively, and record has full dose transaction data in the block chain account book, makes The value of the corresponding state parameter of each participant can be known by obtaining block chain node;Further, any participant can To submit a transaction to block chain, which includes above-mentioned triggering information, so that the transaction can be by base after common recognition In the corresponding state parameter of any participant value, above-mentioned variable quantity and execute so that any participant is corresponding State parameter can based on the variable quantity and realize value change.
In one embodiment, the value of the corresponding state parameter of each participant, the variable quantity are respectively to be based on homomorphism The ciphertext numerical value that Encryption Algorithm or Homomorphic Commitment algorithm are calculated.For homomorphic encryption algorithm, any class can be used The homomorphic encryption algorithm of type, as long as ensuring that the homomorphic encryption algorithm can satisfy additive homomorphism, so that even in ciphertext state Under, it still is able to so that the value of state parameter increases or decreases the variable quantity;It is additive homomorphism for the homomorphic encryption algorithm Encryption Algorithm or full homomorphic encryption algorithm, this specification are limited not to this.For Homomorphic Commitment algorithm, work as use When Pedersen promise mechanism in the related technology, can determine a random number for clear data, and based on the random number with Clear data carries out that corresponding commitment data is calculated, which can be by as above-mentioned ciphertext numerical value.
In one embodiment, when the value of state parameter, variable quantity are ciphertext numerical value, participant needs to provide relevant Information is proved, so that block chain node when executing relationship trading, can determine the legal validity of transaction.For example, participating in Side needs to provide proof to variable quantity, to show that the variable quantity is in correct value section, for example [0,264).For another example working as When event is used for so that according to the variable quantity value reduction occurs for a certain participant corresponding state parameter, i.e., transaction purpose is to make The value for obtaining the state parameter of a certain participant reduces the variable quantity, which, which provides, takes state parameter The proof of value and variable quantity, to show the value of state parameter not less than value reduction amount (the value reduction amount and above-mentioned change Change amount is equivalent).
In one embodiment, (Range Proof) technology can be proved using section in the related technology, for example Bulletproofs scheme or Borromean ring signatures scheme etc., generate above-mentioned proof information, this specification not to this into Row limitation.
In one embodiment, for any participant when generating description information, the variable quantity in the description information can be close Literary numerical value.It, can be according to the plaintext numerical value according to Pedersen promise mechanism such as when the plaintext numerical value of variable quantity is t1 T1 ciphertext corresponding with random number r1 generation promises to undertake T1, and may include T1, t1 and the r1 in description information, so that its of event His participant can verify the corresponding relationship between ciphertext promise T1 and plaintext numerical value t1, random number r1.Wherein, in description information Plaintext numerical value t1 and random number r1 can be encrypted, such as when description information needs to be sent to participant X, it can To be encrypted using the corresponding identity public key of digital identity of participant X, respectively obtain encrypted Enc_X (t1), Enc_X (r1) is simultaneously added in description information, consequently only that participant X can by itself identity private key to Enc_X (t1), Enc_X (r1) is decrypted to obtain above-mentioned plaintext numerical value t1 and random number r1, has been obviously improved Information Security.Certainly, it removes Using except public key encryption mode, can also using any other cipher mode, such as digital envelope etc. in the related technology, This specification is limited not to this.
In one embodiment, when there are other multiple participants, description information can separately include corresponding to it is each its The encrypted data of his participant.For example, when other parameters side includes participant X and participant Y, it can be according to participant X Identity public key plaintext numerical value t1, random number r1 encrypted respectively obtain Enc_X (t1), Enc_X (r1), and according to participant The identity public key of Y encrypts plaintext numerical value t1, random number r1 respectively obtains Enc_Y (t1), Enc_Y (r1), and by Enc_X (t1), Enc_X (r1), Enc_Y (t1) and Enc_Y (r1) are added in description information, so that any participant only needs Prepare a description information and is respectively sent to other each participants, it is different without preparing for other each participants Description information.Certainly, any participant can prepare different description informations for other each participants, such as It is sent in the description information of participant X comprising Enc_X (t1) and Enc_X (r1), and in the description information for being sent to participant Y In include Enc_Y (t1) and Enc_Y (r1), this specification is limited not to this.
In one embodiment, for the variable quantity for the ciphertext state for including in description information, may include in set transaction First proves information, and the first proof information is for proving that the variable quantity is in correct value section.When any participant is raw At event description information when, which can also generate the first proof information, so that either generating multi-party triggering Information or folk prescription trigger information, do not need other participants and generate other proof information for the value of the variable quantity. Certainly, each participant can also be respectively that (the corresponding variable quantity of each participant may be different for corresponding variable quantity;Such as In cross-border remittance scene, it is potentially based on different currency types and the value of variable quantity is caused to have differences) generate the first permit Breath, this specification are limited not to this.
In one embodiment, if the event is for making a certain participant of event, (there may be multiple similar ginsengs With side) corresponding state parameter occurs value according to the variable quantity and reduces, then needing to prove comprising second in set transaction Information, the second proof information are used to prove the value of the corresponding state parameter of a certain participant not less than value reduction amount. For triggering information in many ways, each participant of event can be according to the variable quantity in the state parameter for determining itself In the case where value reduction occurs, corresponding second proof information is generated respectively and is provided to above-mentioned any participant, by this Any participant organizes the formation of multi-party triggering information;Alternatively, can unify to generate the second proof information, nothing by any participant Each participant is needed to be individually created.It can be certainly by generating the participant of folk prescription triggering information for folk prescription triggers information Body, which generates second, proves information.
In one embodiment, when a certain participant is itself to generate second to prove information, the participant is first according to certainly Other events that body participates in carry out value update to itself corresponding state parameter, are then joined according to the updated state of value Number, which generates second, proves information.For example, when the value of state parameter, variable quantity are ciphertext numerical value, and the event be used for so that When according to the variable quantity value reduction occurs for the participant corresponding state parameter, which needs according to previously processed Transaction, determines the value of itself corresponding state parameter, so that generating correct second proves information, to ensure dependent event energy It is enough smoothly to be executed.
For example, block chain node after receiving the set transaction that each participant is submitted, extracts in set transaction and includes Alternative son transaction, and the triggering information (multi-party triggering information or folk prescription triggering information) for including for alternative son transaction is confirmed And verifying.When triggering information includes the corresponding confirmation message of all participants of event or owning for the event in many ways Participant has had been filed on corresponding folk prescription triggering information, and (each folk prescription triggering information separately includes the confirmation letter of corresponding participant Breath) when, it, can be by the event flag if the multi-party triggering information or all folk prescriptions triggering information have passed through verifying For success status;Similarly, it can be status of fail by unverified event flag, will not received in effective period of time The event flag of the corresponding confirmation message of all participants is timeout mode etc., and the state of each event is then committed to block In chain.By taking a certain participant of event as an example, which, can be by inquiring block chain account book before submitting set transaction On transaction record, determine the state for each event that itself is participated in, such as the transaction for status of fail or timeout mode needs Will the value to state parameter restored accordingly (such as the participant be transferor when, need to corresponding account balance Carry out rollback), for the transaction of success status need to update state parameter (such as the participant be beneficiary when, need to phase The transfer amounts answered are collected money, are increased in account balance), then according to value after the update of state parameter, generate related Second proof information (ensure that the second proof information is the newest value based on state parameter and generate) of event, then generates simultaneously Above-mentioned set is submitted to trade.
In one embodiment, when the event includes transferring accounts event, the participant of the event includes: transferor and receipts Money side, the variable quantity include: the volume of transferring accounts, and the state parameter includes: account balance;In other words, it is equivalent to from remittance direction Beneficiary implements transfer operation, so that the account balance of transferor reduces volume of transferring accounts accordingly, the account balance of beneficiary increases Corresponding volume of transferring accounts.For example, may include the account address of transferor, the account address of beneficiary, volume of transferring accounts in description information (commitment value), volume of transferring accounts (encrypted state), random number (encrypted state) etc. in plain text, to show from the account address of transferor to receipts Shift the volume of transferring accounts in the account address of money side.
In one embodiment, when the event includes the first remittance event, the participant of the event includes: remittance Side, relaying side, beneficiary, the variable quantity include: between the transferor and the relaying side based on first kind assets First transfers accounts between volume, the relaying side and the beneficiary second transferring accounts volume based on Second Type assets, the state ginseng Number includes: account balance;In other words, be equivalent between transferor and relaying side shift the first kind assets (such as Hongkong dollar), Assets volume is first to transfer accounts volume, and the assets (such as dollar) of transfer Second Type, assets volume between relaying side and beneficiary It transfers accounts volume for second, and according to the exchange rate between the first kind and the assets of Second Type, so that first transfers accounts volume and second turn The corresponding assets value of account volume is almost the same, transfers accounts volume (then the account balance for being finally equivalent to transferor reduces first The assets of one type), the account balance of beneficiary increase second and transfer accounts volume (assets of Second Type), and the account of relaying side Remaining sum increase first transfer accounts volume (assets of the first kind) and reduce second transfer accounts volume (assets of Second Type), in assets It is equivalent in value and does not change.
In one embodiment, when the event includes the second remittance event, the participant of the event includes: remittance Side, n relaying side, beneficiary, the variable quantity include: to be provided between the transferor and the 1st relaying side based on the first kind Volume of transferring accounts, n-th of relaying side between volume of transferring accounts, (i-1)-th relaying side and i-th of the relaying side produced based on the i-th type assets Based on the volume of transferring accounts of the (n+1)th type assets between the beneficiary, the state parameter includes: account balance;Wherein, 1 < i ≤n.As n=1, the second remittance event of the present embodiment is equivalent to the first remittance event of above-described embodiment, no longer superfluous herein It states.As n > 1, since there are multiple relaying sides, thus for the first remittance event of above-described embodiment, also include Assets transfer process between multiple relaying sides;By taking n=2 as an example, the participant of event includes transferor, relaying side 1, relaying side 2, beneficiary, in which: the assets (such as Hongkong dollar) of the first kind are shifted between transferor and relaying side 1, assets volume is first turn Account volume, shifts the assets (as Euro) of Second Type, assets volume is second to transfer accounts volume between relaying side 1 and relaying side 2, in After the assets (such as dollar) of third type are shifted between side 2 and beneficiary, assets volume is that third is transferred accounts volume, and according to the first kind The exchange rate 1, Second Type between the assets of Second Type and the exchange rate 2 between the assets of third type, so that first transfers accounts Volume, the second volume and third corresponding assets value of volume of transferring accounts of transferring accounts are almost the same, then being finally equivalent to more than the account of transferor Volume reduce first transfer accounts volume (assets of the first kind), beneficiary account balance increase third and transfer accounts volume (third type Assets), and the account balance of relaying side 1 increases first and transfers accounts and volume (assets of the first kind) and reduces second and transfer accounts volume It (assets of Second Type), is equivalent in assets value and does not change, the account balance of relaying side 2 increases second and transfers accounts Volume (assets of Second Type) and reduce third transfer accounts volume (assets of third type), be equivalent in assets value and do not occur Variation.
In one embodiment, when the value of state parameter, variable quantity use ciphertext numerical value, include in the set transaction Alternative sub- transaction also set change preceding state value, variation after state value it is described so that after the alternative sub- transaction is processed The state parameter of participant is changed to state value after the variation by state value before the variation via the amount of state variation; Wherein, state value is respectively to be based on homomorphic encryption algorithm after state value and the variation before the amount of state variation, the variation Or the ciphertext numerical value that Homomorphic Commitment algorithm is calculated.Correspondingly, each standby to include in set transaction when block chain node Choosing son transaction is when being verified, therefore, to assure that adjacent alternative sub- transaction meets: shape after the corresponding variation of previous alternative sub- transaction State value is identical before state value variation corresponding with latter alternative sub- transaction, otherwise will be determined as authentication failed.
With embodiment illustrated in fig. 1 correspondingly, Fig. 2 is another thing based on block chain that an exemplary embodiment provides The flow chart of part processing method.As shown in Fig. 2, this method is applied to block chain node, may comprise steps of:
Step 202, the set transaction that participant is committed to block chain is received, includes from the participation in the set transaction Several alternative sub- transaction chosen in the waiting list just safeguarded, the alternative sub- transaction correspond to what the participant was participated in Event.
In one embodiment, event is there are multiple participants, and each participant, which corresponds to, participates in object, which can Think individual, enterprise, tissue etc., this specification is limited not to this.Participating in object, there are corresponding digital identities, so that The electronic equipment for carrying the digital identity, which is equivalent to, is configured as participant corresponding to the participation object.
In one embodiment, the event of this specification may include any type, any scene of covering, such as ballot, label Conclude an agreement, assignment of traffic, transfer accounts, it is cross-border remittance etc., this specification is limited not to this.By taking ballot as an example, description information It may include the ballot information such as the origin of an incident and polling option, and each triggering information for participating in submitting in direction block chain may include To the selection result of polling option, to trigger completion ballot operation.
It in one embodiment, include the description information of event in alternative son transaction, the description information is for describing related thing The case where part, can implement corresponding event according to the description information when so that the alternative sub- transaction is processed.For example, description Information can characterize the execution logic of dependent event, related participant, shifting gears (such as to the state parameter of participant Increase or reduce the value of state parameter), variable quantity etc., this specification is limited not to this.In fact, the correlation of event Content can be linked up by first passing through any way between each participant in advance, then carry out drafting this by any participant The description information of event, allow other participants of event according to preparatory communication result to the content of the description information into Row is checked and is confirmed;Certainly, any participant can also voluntarily determine its of event in the case where not linking up in advance Other content in his participant and description information, this specification are limited not to this.
In one embodiment, the description information of event can be generated by any participant of the event, and it is any to be added to this Alternative sub- transaction in the waiting list of participant maintenance.And the description information that will additionally generate of any participant share to Other participants, so that other participants confirm description information.
In one embodiment, description information can be sent to other participations of event by any participant by chain outer tunnel Side.Description information is sent to other participants of event by chain outer tunnel, the high efficiency of transmission to description information may be implemented. Wherein, chain outer tunnel can be the encrypted tunnel established or the exit passageway of other forms between each participant of event, with It avoids that information leakage occurs.
In one embodiment, any participant can be by submitting a transaction to block chain, and the description above is believed Breath is contained in the transaction, so that the transaction is in all block chain nodes that can be sent in block chain after common recognition; And each participant of event can be configured as block chain node in block chain or each participant can be in block There are corresponding block chain node in chain, each participant is safeguarded by itself or corresponding block chain node The block chain account book full dose transaction data of block chain (block chain account book include), obtain above-mentioned transaction and it includes description letter Breath, so that the description above information is synchronized to other participants of event.
In one embodiment, multiple alternative sub- transaction be may include in set transaction, each alternative sub- transaction respectively corresponds In the event that above-mentioned participant is participated in, so that included is multiple alternative after set transaction is submitted to block chain Son transaction can be processed in block chain, so that these alternative sons are traded, corresponding multiple events are carried out.As it can be seen that It, can be with so that these alternative son transaction are committed to block chain in batches by including multiple alternative sub- transaction in set transaction The number of transaction submitted to block chain is reduced, without generating a block chain transaction for each alternative sub- transaction, is facilitated It reduces resource consumption, promote treatment effeciency.
It in one embodiment, can be when the alternative sub- transaction in the waiting list reaches preset quantity, described in selection Already present alternative sub- transaction (i.e. the alternative sub- transaction of preset quantity) in waiting list, to generate corresponding set transaction.? In another embodiment, already present alternative sub- transaction in the waiting list can be periodically chosen according to preset duration, with Generate corresponding set transaction;Certainly, there may be maximum limitations for the capacity of each set transaction, so that choosing in same period Alternative sub- transaction quantity there are corresponding maximum value, the part exceeded can be postponed until next period and be chosen.Certainly, Alternative son transaction can also be chosen by other preset rules, this specification is limited not to this.
In one embodiment, the alternative sub- transaction in waiting list can be arranged successively according to the addition moment, and every It is secondary successively to choose each alternative sub- transaction from front to back, the alternative sub- transaction being previously generated preferentially is chosen. Certainly, participant can also according to actual needs, such as urgency level, priority of event of event etc., in waiting list Alternative sub- transaction implement and sequentially unrelated selection operation;Alternatively, waiting list inherently can be according to above-mentioned urgent journey Degree, priority etc. are arranged, and can still be considered as successively choose in this way.
In one embodiment, participant can be each merging transaction addition number according to genesis sequence, make each merging Transaction is successively handled in block chain by the size according to reference numeral.In other words, block chain transaction is receiving participant After the merging transaction of submission, need to read the number that merging exchange includes;If number with it is previously processed merge trade Number is continuous, for example, newest processing merging transaction number be 99, the number of merging transaction that is currently received is 100, then may be used Be 100 to the number merging transaction handle;If it is between number and discontinuous, such as the merging transaction of newest processing Number be 99, be currently received merging transaction number be 101, then block chain node need wait and priority processing number is Then 100 merging transaction could handle the merging transaction that number is 101.It all may cause after being performed due to every transaction The state parameter of the participant changes, and the state parameter after the execution of rear transaction needs to rely on previously transaction execution Value, thus be necessary to ensure that each merging transaction is successively handled by the size according to reference numeral, so that each conjunction And transaction can be executed correctly.
Step 204, the set transaction is executed, handled respectively the alternative sub- transaction in the set transaction.
In one embodiment, in the corresponding alternative sub- transaction of the event, all participants pair comprising the event The multi-party triggering information of the event;Wherein, when the multi-party triggering information passes through verifying, the corresponding alternative son of the event Transaction is triggered execution in block chain.Multi-party triggering information represents all participants recognizing for description information of event Can, and it is desirable that trigger event execution.For example, any participant of event generates description information and is sent to other participants Afterwards, other participants can be confirmed the content of description information, generate signature to description information by the identity key of itself and will The signature is back to any participant, and triggers each participant point that may include description information and event in information in many ways The signature not generated;Each signature belongs to the confirmation message that corresponding participant provides, and if using ciphertext numerical value, the confirmation Also by comprising the proof information to ciphertext numerical value, this is detailed below information.In short, by event in the present embodiment After any participant organizes the formation of multi-party triggering information, it is only necessary to will be added in any waiting list for participating in direction self maintained Corresponding alternative son transaction, and submit the set comprising the alternative sub- transaction to trade to block chain, and other participants are then not required to Implement to be processed similarly;Correspondingly, block chain node can be after triggering information in many ways be by verifying, for any participant The alternative sub- transaction submitted is handled.
In one embodiment, in the corresponding alternative sub- transaction of event, comprising the participant to the folk prescription of the event Trigger information;Wherein, when the folk prescription for the event that all participants of the event are submitted to block chain respectively triggers When information passes through verifying, the corresponding alternative sub- transaction of the event is triggered execution in block chain.Folk prescription triggers information table Bright corresponding participant adds their confirmation to the description information of event, it is desirable to the execution of trigger event;And each participant of event It requires to submit folk prescription triggering information to block chain respectively, so that the folk prescription that block chain node is submitted respectively based on all participants Trigger information, it is determined whether the indicated event of corresponding alternative son transaction should be executed.For example, any participant of event is raw At description information and after being provided to other participants, not only any participant needs to add into the waiting list of self maintained Corresponding alternative son transaction, other each participants are after adding their confirmation to description information, also respectively to the waiting of self maintained Corresponding alternative son transaction is added in queue;And each participant is based respectively on the waiting list generation set of self maintained Transaction, so that it is committed to block chain by the way that transaction will be gathered, so that above-mentioned folk prescription triggering information is submitted to block chain, for Block chain link point is verified.It in folk prescription triggering information may include description information and corresponding participant generate description information Signature;Signature belongs to the confirmation message that corresponding participant provides, and if confirmation message also includes permit using ciphertext numerical value Breath, this is detailed below.By submitting folk prescription to trigger information to block chain respectively from each participant, rather than it is a certain Participant submits multi-party triggering information, and the processing pressure mistake of single participant can be not only shared, prevented to processing pressure Greatly, it can also make each participant each to what is participated according to the actual conditions (such as processing pressure, priority management etc.) of itself Event carries out selectively processing even batch processing.
In one embodiment, the description information of event may include variable quantity, and the event may be used to each ginseng Value variation occurs according to the variable quantity with the state parameter of side's corresponding record on block chain, for example increases value, reduce Value etc..Wherein, according to the type of event or scene difference, corresponding state parameter may also be different, for example transfer accounts or cross-border State parameter under scene of remitting money can be the account balance of participant, and the state parameter under assignment of traffic scene can be with for another example For the number for the residual flow that participant is held, this specification is limited not to this.
In one embodiment, the value of the corresponding state parameter of each participant, the variable quantity can be plaintext numerical value. Block chain node in block chain safeguards there is block chain account book respectively, and record has full dose transaction data in the block chain account book, makes The value of the corresponding state parameter of each participant can be known by obtaining block chain node;Further, any participant can To submit a transaction to block chain, which includes above-mentioned triggering information, so that the transaction can be by base after common recognition In the corresponding state parameter of any participant value, above-mentioned variable quantity and execute so that any participant is corresponding State parameter can based on the variable quantity and realize value change.
In one embodiment, the value of the corresponding state parameter of each participant, the variable quantity are respectively to be based on homomorphism The ciphertext numerical value that Encryption Algorithm or Homomorphic Commitment algorithm are calculated.For homomorphic encryption algorithm, any class can be used The homomorphic encryption algorithm of type, as long as ensuring that the homomorphic encryption algorithm can satisfy additive homomorphism, so that even in ciphertext state Under, it still is able to so that the value of state parameter increases or decreases the variable quantity;It is additive homomorphism for the homomorphic encryption algorithm Encryption Algorithm or full homomorphic encryption algorithm, this specification are limited not to this.For Homomorphic Commitment algorithm, work as use When Pedersen promise mechanism in the related technology, can determine a random number for clear data, and based on the random number with Clear data carries out that corresponding commitment data is calculated, which can be by as above-mentioned ciphertext numerical value.
In one embodiment, when the value of state parameter, variable quantity are ciphertext numerical value, participant needs to provide relevant Information is proved, so that block chain node when executing relationship trading, can determine the legal validity of transaction.For example, participating in Side needs to provide proof to variable quantity, to show that the variable quantity is in correct value section, for example [0,264).For another example working as When event is used for so that according to the variable quantity value reduction occurs for a certain participant corresponding state parameter, i.e., transaction purpose is to make The value for obtaining the state parameter of a certain participant reduces the variable quantity, which, which provides, takes state parameter The proof of value and variable quantity, to show the value of state parameter not less than value reduction amount (the value reduction amount and above-mentioned change Change amount is equivalent).
In one embodiment, (Range Proof) technology can be proved using section in the related technology, for example Bulletproofs scheme or Borromean ring signatures scheme etc., generate above-mentioned proof information, this specification not to this into Row limitation.
In one embodiment, for any participant when generating description information, the variable quantity in the description information can be close Literary numerical value.It, can be according to the plaintext numerical value according to Pedersen promise mechanism such as when the plaintext numerical value of variable quantity is t1 T1 ciphertext corresponding with random number r1 generation promises to undertake T1, and may include T1, t1 and the r1 in description information, so that its of event His participant can verify the corresponding relationship between ciphertext promise T1 and plaintext numerical value t1, random number r1.Wherein, in description information Plaintext numerical value t1 and random number r1 can be encrypted, such as when description information needs to be sent to participant X, it can To be encrypted using the corresponding identity public key of digital identity of participant X, respectively obtain encrypted Enc_X (t1), Enc_X (r1) is simultaneously added in description information, consequently only that participant X can by itself identity private key to Enc_X (t1), Enc_X (r1) is decrypted to obtain above-mentioned plaintext numerical value t1 and random number r1, has been obviously improved Information Security.Certainly, it removes Using except public key encryption mode, can also using any other cipher mode, such as digital envelope etc. in the related technology, This specification is limited not to this.
In one embodiment, when there are other multiple participants, description information can separately include corresponding to it is each its The encrypted data of his participant.For example, when other parameters side includes participant X and participant Y, it can be according to participant X Identity public key plaintext numerical value t1, random number r1 encrypted respectively obtain Enc_X (t1), Enc_X (r1), and according to participant The identity public key of Y encrypts plaintext numerical value t1, random number r1 respectively obtains Enc_Y (t1), Enc_Y (r1), and by Enc_X (t1), Enc_X (r1), Enc_Y (t1) and Enc_Y (r1) are added in description information, so that any participant only needs Prepare a description information and is respectively sent to other each participants, it is different without preparing for other each participants Description information.Certainly, any participant can prepare different description informations for other each participants, such as It is sent in the description information of participant X comprising Enc_X (t1) and Enc_X (r1), and in the description information for being sent to participant Y In include Enc_Y (t1) and Enc_Y (r1), this specification is limited not to this.
In one embodiment, for the variable quantity for the ciphertext state for including in description information, may include in set transaction First proves information, and the first proof information is for proving that the variable quantity is in correct value section.When any participant is raw At event description information when, which can also generate the first proof information, so that either generating multi-party triggering Information or folk prescription trigger information, do not need other participants and generate other proof information for the value of the variable quantity. Certainly, each participant can also be respectively that (the corresponding variable quantity of each participant may be different for corresponding variable quantity;Such as In cross-border remittance scene, it is potentially based on different currency types and the value of variable quantity is caused to have differences) generate the first permit Breath, this specification are limited not to this.
In one embodiment, if the event is for making a certain participant of event, (there may be multiple similar ginsengs With side) corresponding state parameter occurs value according to the variable quantity and reduces, then needing to prove comprising second in set transaction Information, the second proof information are used to prove the value of the corresponding state parameter of a certain participant not less than value reduction amount. For triggering information in many ways, each participant of event can be according to the variable quantity in the state parameter for determining itself In the case where value reduction occurs, corresponding second proof information is generated respectively and is provided to above-mentioned any participant, by this Any participant organizes the formation of multi-party triggering information;Alternatively, can unify to generate the second proof information, nothing by any participant Each participant is needed to be individually created.It can be certainly by generating the participant of folk prescription triggering information for folk prescription triggers information Body, which generates second, proves information.
In one embodiment, when a certain participant is itself to generate second to prove information, the participant is first according to certainly Other events that body participates in carry out value update to itself corresponding state parameter, are then joined according to the updated state of value Number, which generates second, proves information.For example, when the value of state parameter, variable quantity are ciphertext numerical value, and the event be used for so that When according to the variable quantity value reduction occurs for the participant corresponding state parameter, which needs according to previously processed Transaction, determines the value of itself corresponding state parameter, so that generating correct second proves information, to ensure dependent event energy It is enough smoothly to be executed.
For example, block chain node after receiving the set transaction that each participant is submitted, extracts in set transaction and includes Alternative son transaction, and the triggering information (multi-party triggering information or folk prescription triggering information) for including for alternative son transaction is confirmed And verifying.When triggering information includes the corresponding confirmation message of all participants of event or owning for the event in many ways Participant has had been filed on corresponding folk prescription triggering information, and (each folk prescription triggering information separately includes the confirmation letter of corresponding participant Breath) when, it, can be by the event flag if the multi-party triggering information or all folk prescriptions triggering information have passed through verifying For success status;Similarly, it can be status of fail by unverified event flag, will not received in effective period of time The event flag of the corresponding confirmation message of all participants is timeout mode etc., and the state of each event is then committed to block In chain.By taking a certain participant of event as an example, which, can be by inquiring block chain account book before submitting set transaction On transaction record, determine the state for each event that itself is participated in, such as the transaction for status of fail or timeout mode needs Will the value to state parameter restored accordingly (such as the participant be transferor when, need to corresponding account balance Carry out rollback), for the transaction of success status need to update state parameter (such as the participant be beneficiary when, need to phase The transfer amounts answered are collected money, are increased in account balance), then according to value after the update of state parameter, generate related Second proof information (ensure that the second proof information is the newest value based on state parameter and generate) of event, then generates simultaneously Above-mentioned set is submitted to trade.
In one embodiment, when the event includes transferring accounts event, the participant of the event includes: transferor and receipts Money side, the variable quantity include: the volume of transferring accounts, and the state parameter includes: account balance;In other words, it is equivalent to from remittance direction Beneficiary implements transfer operation, so that the account balance of transferor reduces volume of transferring accounts accordingly, the account balance of beneficiary increases Corresponding volume of transferring accounts.For example, may include the account address of transferor, the account address of beneficiary, volume of transferring accounts in description information (commitment value), volume of transferring accounts (encrypted state), random number (encrypted state) etc. in plain text, to show from the account address of transferor to receipts Shift the volume of transferring accounts in the account address of money side.
In one embodiment, when the event includes the first remittance event, the participant of the event includes: remittance Side, relaying side, beneficiary, the variable quantity include: between the transferor and the relaying side based on first kind assets First transfers accounts between volume, the relaying side and the beneficiary second transferring accounts volume based on Second Type assets, the state ginseng Number includes: account balance;In other words, be equivalent between transferor and relaying side shift the first kind assets (such as Hongkong dollar), Assets volume is first to transfer accounts volume, and the assets (such as dollar) of transfer Second Type, assets volume between relaying side and beneficiary It transfers accounts volume for second, and according to the exchange rate between the first kind and the assets of Second Type, so that first transfers accounts volume and second turn The corresponding assets value of account volume is almost the same, transfers accounts volume (then the account balance for being finally equivalent to transferor reduces first The assets of one type), the account balance of beneficiary increase second and transfer accounts volume (assets of Second Type), and the account of relaying side Remaining sum increase first transfer accounts volume (assets of the first kind) and reduce second transfer accounts volume (assets of Second Type), in assets It is equivalent in value and does not change.
In one embodiment, when the event includes the second remittance event, the participant of the event includes: remittance Side, n relaying side, beneficiary, the variable quantity include: to be provided between the transferor and the 1st relaying side based on the first kind Volume of transferring accounts, n-th of relaying side between volume of transferring accounts, (i-1)-th relaying side and i-th of the relaying side produced based on the i-th type assets Based on the volume of transferring accounts of the (n+1)th type assets between the beneficiary, the state parameter includes: account balance;Wherein, 1 < i ≤n.As n=1, the second remittance event of the present embodiment is equivalent to the first remittance event of above-described embodiment, no longer superfluous herein It states.As n > 1, since there are multiple relaying sides, thus for the first remittance event of above-described embodiment, also include Assets transfer process between multiple relaying sides;By taking n=2 as an example, the participant of event includes transferor, relaying side 1, relaying side 2, beneficiary, in which: the assets (such as Hongkong dollar) of the first kind are shifted between transferor and relaying side 1, assets volume is first turn Account volume, shifts the assets (as Euro) of Second Type, assets volume is second to transfer accounts volume between relaying side 1 and relaying side 2, in After the assets (such as dollar) of third type are shifted between side 2 and beneficiary, assets volume is that third is transferred accounts volume, and according to the first kind The exchange rate 1, Second Type between the assets of Second Type and the exchange rate 2 between the assets of third type, so that first transfers accounts Volume, the second volume and third corresponding assets value of volume of transferring accounts of transferring accounts are almost the same, then being finally equivalent to more than the account of transferor Volume reduce first transfer accounts volume (assets of the first kind), beneficiary account balance increase third and transfer accounts volume (third type Assets), and the account balance of relaying side 1 increases first and transfers accounts and volume (assets of the first kind) and reduces second and transfer accounts volume It (assets of Second Type), is equivalent in assets value and does not change, the account balance of relaying side 2 increases second and transfers accounts Volume (assets of Second Type) and reduce third transfer accounts volume (assets of third type), be equivalent in assets value and do not occur Variation.
In one embodiment, when the value of state parameter, variable quantity use ciphertext numerical value, include in the set transaction Alternative sub- transaction also set change preceding state value, variation after state value it is described so that after the alternative sub- transaction is processed The state parameter of participant is changed to state value after the variation by state value before the variation via the amount of state variation; Wherein, state value is respectively to be based on homomorphic encryption algorithm after state value and the variation before the amount of state variation, the variation Or the ciphertext numerical value that Homomorphic Commitment algorithm is calculated.Correspondingly, each standby to include in set transaction when block chain node Choosing son transaction is when being verified, therefore, to assure that adjacent alternative sub- transaction meets: shape after the corresponding variation of previous alternative sub- transaction State value is identical before state value variation corresponding with latter alternative sub- transaction, otherwise will be determined as authentication failed.
In order to make it easy to understand, below by taking cross-border remittance scene as an example, to the technology of this specification one or more embodiment Scheme is illustrated.Technical solution based on this specification, several remittances that each mechanism can respectively participate in itself are handed over Easily (be equivalent to above-mentioned alternative sub- transaction) and merge into a block chain transaction (being equivalent to above-mentioned set transaction), and pass through to Block chain submits the block chain to trade, and realizes and the batch of several money transfer transactions is submitted and handled.Single will be converged first below The generation of money transaction is described with treatment process, then extends to the batch processing of more money transfer transactions.
Fig. 3 is a kind of schematic diagram of a scenario for cross-border remittance that an exemplary embodiment provides.As shown in Figure 3, it is assumed that by with Family 1 carries out block chain remittance to user 2;Wherein, " user " in this specification can show as logged in user account, and The user account can actually belong to individual or entity, and this specification is limited not to this.It is assumed that user 1 is in national A Mechanism 1 at offer clients fund account 1, user 2 offers clients fund account 2, this explanation at the mechanism 4 of national B In the case that book directly can not implement cross-border remittance between mechanism 1 and mechanism 4, pass through the assistance of mechanism 2 and mechanism 3 The operation of the cross-border remittance is realized on block chain.
Mechanism 1, mechanism 2, mechanism 3 and mechanism 4 are respectively present corresponding equipment 1, equipment 2, equipment 3 and equipment 4, and pass through The client-side program that block chain is run in equipment 1~4, so that equipment 1~4 is configured as corresponding block chain node;Accordingly Ground, mechanism 1~4 can realize operation relevant to block chain by equipment 1~4.For example, mechanism 1~4 can be respectively by setting Standby 1~4 submits corresponding block chain transaction to block chain;There is the full dose on block chain to hand over for another example equipment 1~4 is safeguarded respectively Easy data, i.e. block chain account book allow mechanism 1~4 to inquire and safeguard accordingly respectively the remaining sum number of each block chain account According to, for example the corresponding block chain account Y1 of mechanism 1 holds 1000 Hongkong dollars, the corresponding block chain account Y2 of mechanism 2 holds 2500 ports Coin and 4200 Euros, the corresponding block chain account Y3 of mechanism 3 holds 3000 Euros and 2000 dollars, the corresponding block chain of mechanism 4 Account Y4 holds 1500 dollars etc..
The considerations of for secret protection etc., the balance data of block chain account Y1~Y4 is often not with plaintext version It is safeguarded, but uses corresponding ciphertext data.By taking block chain account Y1 as an example, it can be registered as in block chain account book (currency_1, PC (a, r_a), Enc_A (a), Enc_A (r_a)), in which: currency_1 indicates that currency type is Hongkong dollar, It is the corresponding random number of a that a expression Hongkong dollar number, which is 1000, r_a, and PC (a, r_a) is by Pedersen promise mechanism to a and r_ The commitment value for the ciphertext form that a is calculated, Enc_A (a), Enc_A (r_a) are respectively the ciphertext value (ratio of a and r_a It can such as be encrypted using the identity public key of mechanism 1, or the Encryption Algorithm of any other form can be used).Block chain Account Y2 can be registered as (currency_1, PC (b1, r_b1), Enc_B (b1), Enc_B (r_b1)), (currency_2, PC (b2, r_b2), Enc_B (b2), Enc_B (r_b2)), in which: b1 indicate Hongkong dollar number be 2500, r_b1 be b1 it is corresponding with Machine number, currency_2 indicate currency type be Euro, b2 indicate an Euro number be 4200, r_b2 is the corresponding random number of b2. Block chain account Y3 can be registered as (currency_2, PC (c1, r_c1), Enc_C (c1), Enc_C (r_c1)), (currency_3, PC (c2, r_c2), Enc_C (c2), Enc_C (r_c2)), in which: c1 indicates that Hongkong dollar Euro is 3000, r_c1 For the corresponding random number of c1, currency_3 indicates that currency type is dollar, and c2 indicates that dollar amount is 2000, r_c2 is c2 pairs The random number answered.Block chain account Y4 can be registered as (currency_3, PC (d, r_d), Enc_D (d), Enc_D (r_ D)), wherein d indicates that dollar amount is 1500, r_d is the corresponding random number of d.
Based on remittance scene shown in Fig. 3, Fig. 4 is that the interaction in a kind of cross-border money transfer process of an exemplary embodiment is shown It is intended to.As shown in figure 4, the interactive process of cross-border remittance may comprise steps of:
Step 401, equipment 1 drafts money transfer transactions tx_i.
In one embodiment, it is assumed that user 1 wishes 500 Hongkong dollars of remitting money to user 2, which can be by mechanism 1 Clients fund account 1 500 Hongkong dollar is provided, and user 2 can be collected by the clients fund account 2 at mechanism 4 by one Determine the dollar after the exchange rate calculates.
In one embodiment, mechanism 1 can take off 500 Hongkong dollars from the corresponding clients fund account 1 of user 1;And machine Structure 1 needs itself determining remittance routing between mechanism 4, for example the remittance routing in Fig. 4 is " 1 → mechanism, mechanism, 2 → machine 3 → mechanism of structure 4 " allows mechanism 1 to mechanism 2 to be transferred to 500 Hongkong dollars, mechanism 2 and can be transferred to 56 Euros to mechanism 3 and (is equivalent to 500 Hongkong dollars), mechanism 3 64 dollars (being equivalent to 56 Euros, 500 Hongkong dollars) can be transferred to mechanism 4, and finally from mechanism 4 to user 2 corresponding clients fund accounts 2 are transferred to 64 dollars, to complete remittance operation.Wherein, mechanism 1 takes off from clients fund account 1 500 Hongkong dollars, mechanism 4, which to clients fund account 2 are transferred to 64 dollars and belong to outside chain, to be operated, and then passes through area between 1~mechanism, mechanism 4 Block chain realizes fund transfer on chain.
In one embodiment, in above-mentioned remittance routing " 1 → mechanism, mechanism, 2 → mechanism, 3 → mechanism 4 ", mechanism 1 and machine Between structure 4 there are 2 relaying sides be mechanism 3 and mechanism 4;And in other embodiments, the quantity of the side of relaying can be 1,3 Or 3 or more, this specification is limited not to this.
For the money transfer amount between the above-mentioned remittance routing having determined and each mechanism, the remittance that equipment 1 is drafted The tx_i that trades may include following money transfer transactions details: transaction id is tx_i, the address Z1 of block chain account Y1, block chain account The address Z4 of the address Z2 of Y2, the address Z3 of block chain account Y3, block chain account Y4, cipher-text information relevant to transaction amount { (currency_1, PC (t1, r_t1), Enc_B (t1), Enc_B (r_t1), Enc_C (t1), Enc_C (r_t1), Enc_D (t1),Enc_D(r_t1)),(currency_2,PC(t2,r_t2),Enc_B(t2),Enc_B(r_t2),Enc_C(t2), Enc_C(r_t2),Enc_D(t2),Enc_D(r_t2)),(currency_3,PC(t3,r_t3),Enc_B(t3),Enc_B(r_ T3), Enc_C (t3), Enc_C (r_t3), Enc_D (t3), Enc_D (r_t3)), rate1, rate2, time ... }, for friendship The section of the easy amount of money t1, t2, t3 prove RP_t1, RP_t2, RP_t3 etc..
Wherein, address Z1~Z4 is used to show the participant of this remittance event, so that subsequent from address Z1~Z4 Corresponding block chain account Y1~Y4 implements remittance of transferring accounts.
In (currency_1, PC (t1, r_t1), Enc_B (t1), Enc_B (r_t1), Enc_C (t1), Enc_C (r_ T1), Enc_D (t1), Enc_D (r_t1)) in, t1 indicates transfer amounts (the 500 such as above-mentioned ports from address Z1 to address Z2 Coin), r_t1 is the corresponding random number of amount of money t1, and PC (t1, r_t1) is calculated based on amount of money t1 and random number r_t1 Commitment value, Enc_B (t1) expression carry out encrypted ciphertext numerical value, Enc_C (t1) table to amount of money t1 with the identity public key of mechanism 2 Show the identity public affairs for carrying out encrypted ciphertext numerical value, Enc_D (t1) expression mechanism 4 to amount of money t1 with the identity public key of mechanism 3 Key carries out encrypted ciphertext numerical value to amount of money t1;Similarly, Enc_B (r_t1), Enc_C (r_t1), Enc_D (r_t1) difference To carry out encrypted ciphertext numerical value to amount of money t1 by the identity public key of mechanism 2, mechanism 3, mechanism 4.(currency_2,PC (t2,r_t2),Enc_B(t2),Enc_B(r_t2),Enc_C(t2),Enc_C(r_t2),Enc_D(t2),Enc_D(r_t2)) (currency_3, PC (t3, r_t3), Enc_B (t3), Enc_B (r_t3), Enc_C (t3), Enc_C (r_t3), Enc_D (t3), Enc_D (r_t3)) the case where it is similar, details are not described herein again.Rate1, rate2 be respectively currency_1 with The exchange rate, the exchange rate of currency_2 and currency_3 of currency_2.Time is the transaction moment.And, it is also possible to exist Data needed for some other transaction, this can will not enumerate herein with reference to scheme in the related technology.
The section that RP_t1, RP_t2, RP_t3 respectively correspond to transaction amount t1, t2, t3 proves, to be respectively used to demonstrate,prove Bright transaction amount t1, t2, t3 are in correct value section, such as 1≤t1 < 264, 1≤t2 < 264, 1≤t3 < 264.Wherein, if Standby 1, which can generate above-mentioned section by zero-knowledge proof technology in the related technology, proves, this specification is not to this progress Limitation.
And if using plaintext numerical value, in the money transfer transactions details of money transfer transactions tx_i, above-mentioned and transaction amount Relevant cipher-text information may alternatively be cleartext information relevant to transaction amount, for example, (currency_1, t1), (currency_2, t2), (currency_3, t3), rate1, rate2, time ... }, and without being proved comprising above-mentioned section The contents such as RP_t1, RP_t2, RP_t3.
Money transfer transactions details are synchronized to equipment 2, equipment 3 and equipment 4 by step 402a~402c, equipment 1 respectively.
In one embodiment, after equipment 1 can sign to money transfer transactions details by the identity private key of mechanism 1, lead to It crosses outer (or being, under the chain) channel of chain and is respectively sent to 2~equipment of equipment 4, to realize that data are synchronous.
In one embodiment, 1~equipment of equipment 4 is separately operable the client-side program of block chain, so that 1~equipment of equipment 4 are respectively configured as the block chain node in block chain;Alternatively, 1~equipment of equipment 4 is respectively present corresponding area in block chain Block chain node, this specification are limited not to this.Wherein, each block chain node in block chain safeguards there is content respectively Unified block chain account book, record has the block chain data of full dose in block chain account book.Therefore, a friendship can be generated in equipment 1 Easily, the content of the transaction includes the money transfer transactions details of above-mentioned money transfer transactions tx_i, and the transaction is committed in block chain;Phase Ying Di, after the transaction is by common recognition, each block chain node that can be sent in block chain, for each block chain link Point updates the block chain account book of self maintained.Therefore, equipment 1, equipment 2, equipment 3 and equipment 4 can be corresponded to by itself respectively The block chain account book safeguarded of block chain node, the above-mentioned transaction that equipment 1 is submitted is known, to obtain in the transaction and include The money transfer transactions details of above-mentioned money transfer transactions tx_i.
Certainly, equipment 1 is also possible to that money transfer transactions data are synchronized to 2~equipment of equipment 4, this specification by other means It is limited not to this.
The corresponding money transfer transactions tx_i of money transfer transactions details is added to the local queue 1 of itself by step 403a, equipment 1.
In one embodiment, when equipment 1 sends money transfer transactions details by chain outer tunnel, equipment 1 can be directly to this Money transfer transactions tx_i is added in ground queue 1;Certainly, equipment 1 can finish the confirmation of money transfer transactions details with 2~equipment of waiting facilities 4 And after returning to corresponding confirmation response, money transfer transactions tx_i just is added to local queue 1, to ensure that 2~equipment of equipment 4 both participates in To money transfer transactions tx_i.
In one embodiment, when money transfer transactions details are synchronized to 2~equipment 4 of equipment by block chain by equipment 1, equipment 1 equally will receive the money transfer transactions details synchronous on block chain, then equipment 1 can both test the money transfer transactions details It demonstrate,proves (verification process can refer to step 403b), and by the way that money transfer transactions tx_i is added to local queue 1 after verifying, it can also be with Determining that the money transfer transactions details correspond to money transfer transactions tx_i, money transfer transactions tx_i and by the equipment 1 itself drafted and submitted When to block chain, the verification process to money transfer transactions details is omitted, and is added directly to local queue 1.
Step 403b adds it to the local queue of itself after equipment 2 verifies the money transfer transactions details received 2。
In one embodiment, equipment 2 needs to implement verification operation after Transaction Details of receiving a remittance, comprising: equipment 2 is logical Cross Enc_B (t1), Enc_B (r_t1), Enc_B (t2), Enc_B (r_ that the identity private key of itself includes to money transfer transactions details T2), Enc_B (t3), Enc_B (r_t3) are decrypted, and obtain corresponding amount of money t1 and random number r_t1, amount of money t2 and random number R_t2, amount of money t3 and random number r_t3, and separately verify PC (t1, r_t1)=r_t1G+t1H, PC (t2, r_t2)=r_t2G+ Whether t2H, PC (t3, r_t3)=r_t3G+t3H are true, and wherein G, H are system parameter;Equipment 2 verify currency_1 with Whether it is rate2 that whether the exchange rate between currency_2 is the exchange rate between rate1, currency_2 and currency_3; Equipment 2, which verifies section, proves whether RP_t1, RP_t2, RP_t3 are correct etc..After determining money transfer transactions details by verifying, if Standby 2 can add corresponding money transfer transactions tx_i to the local queue 2 of self maintained, and to equipment 1 return confirmation response, with Show to receive corresponding money transfer transactions.
Certainly, if using plaintext numerical value, above-mentioned decryption, commitment value verifying, section checking be can be omitted Core is carried out to the value of the address of the block chain account of each participant, t1, t2, t3, rate1, rate2 Deng operation, such as only It is right.
After step 403c-403d, equipment 3-4 respectively verify the money transfer transactions details received, add it to certainly The local queue 3-4 of body.
In one embodiment, the operation and equipment 2 that equipment 3, equipment 4 are implemented are similar, no longer repeat one by one herein.
So far, money transfer transactions tx_i is added separately to the local queue 1~4 respectively safeguarded by 1~equipment of equipment 4 In.Similarly, it (is not necessarily 1~equipment of equipment 4 when 1~equipment of equipment 4 participates in other money transfer transactions respectively while joining With money transfer transactions) when, equally can be using being similar to the processing mode of above-mentioned money transfer transactions tx_i, to corresponding local team Money transfer transactions are added in column, for the transaction polymerization and batch processing in following step.
Step 404a, for equipment 1 according to the money transfer transactions in local queue 1, polymerization generates transaction TX_a, and mentions after signature It hands over to block chain.
As described above, similar with money transfer transactions tx_i, mechanism 1 may also participate in other money transfer transactions, such as When a certain user needs to remit money by mechanism 1 to another user, equipment 1 can pass through the side similar to above-mentioned steps Formula drafts corresponding money transfer transactions, money transfer transactions details are sent to other each mechanisms are verified, into local queue 1 Add corresponding money transfer transactions tx_i.Meanwhile mechanism 1 is also used as the relaying side of some money transfer transactions (similar to mechanism 2-3 Role in the above-described embodiments) or beneficiary (similar to the role of mechanism 4 in the above-described embodiments), so that the mechanism 1 can To receive the remittance that the transferor (similar to the role of mechanism 1 in the above-described embodiments) of these money transfer transactions is sent by equipment 1 Money Transaction Details, and corresponding money transfer transactions are added into local queue 1 after being verified.
Therefore, many money transfer transactions participated in the local queue 1 that equipment 1 is safeguarded comprising mechanism 1.And equipment 1 can be with It rule is selected according to predefined transaction, chooses one or more money transfer transactions from local queue 1 every time, and to being selected Money transfer transactions are polymerize, and a block chain transaction is generated.
For example, Fig. 5 is a kind of signal for block chain transaction content based on ciphertext numerical value that an exemplary embodiment provides Figure.As shown in Figure 5, it is assumed that equipment 1 chooses 4 money transfer transactions every time and is polymerized to a block chain transaction, such as money transfer transactions Tx_11, tx_12, tx_13, tx_14 are polymerized to the transaction of block chain TX_1, money transfer transactions tx_21, tx_22, tx_23, tx_24 It is polymerized to block chain transaction TX_2, money transfer transactions tx_31, tx_32, tx_33, tx_34 are polymerized to block chain transaction TX_3. Equipment 1 generate each block chain transaction in, separately include equipment 1 setting serial number seq and with each money transfer transactions Relevant information.
Serial number seq is related to the genesis sequence that each block chain is traded.Such as the seq value of block chain transaction TX_1 Seq value for 99, block chain transaction TX_2 is 100, the seq value of block chain transaction TX_3 is 101, shows that block chain is traded TX_1 is generated earlier than block chain transaction TX_2, block chain transaction TX_2 is generated earlier than block chain transaction TX_3.Correspondingly, block chain Node, can be according to the sequence of seq value from small to large successively to each area after receiving each block chain transaction of the submission of equipment 1 The transaction of block chain is handled, such as first processing block chain transaction TX_1, reprocessing block chain transaction TX_2, then processing block chain Trade TX_3.
Information relevant to each money transfer transactions may include: the initial state remaining sum of block chain transaction, the transaction of block chain End state remaining sum, the initial state remaining sum of each money transfer transactions, the turnovers of each money transfer transactions, each money transfer transactions End state (i.e. transitory state) remaining sum, proof information of each money transfer transactions etc..
By taking block chain trades TX_1 as an example.The initial state remaining sum of block chain transaction TX_1 is PC (100), block chain is traded TX_1 terminates that state remaining sum is PC (80), the initial state remaining sum of money transfer transactions tx_11 is PC (100), money transfer transactions tx_11 State remaining sum is the card of PC (110), money transfer transactions tx_11 to the end of turnover is PC (10), money transfer transactions tx_11 wait import Bright information includes that PC (10), PC (110) are belonging respectively to the section in correct value section and prove, money transfer transactions tx_12~tx_14's Related content can refer to Fig. 5, no longer enumerate herein.
It is noted that when in several money transfer transactions that mechanism 1 includes in block chain transaction as transferor or When relaying side, the account balance of itself corresponding block chain account Y1 can be subtracted corresponding transfer amounts by mechanism 1, and (transferor is only Produce fund;Relaying side not only can receive and be transferred to fund but also need to produce fund, be to be directed to the operation for the fund that produces and retouch here State), and subsequent money transfer transactions are continued to participate in based on updated money transfer amount.When block chain transaction is submitted to block chain Afterwards, if mechanism 1 is as transferor or a certain money transfer transactions successful execution of relaying side, mechanism 1 is without adjusting block chain account Y1;If mechanism 1 executes not successfully as a certain money transfer transactions of transferor or relaying side, mechanism 1 is needed to block chain account The account balance of Y1 carries out rollback adjusting.And it (is received when including mechanism 1 as beneficiary or relaying side in above-mentioned block chain transaction Money side is only transferred to fund;Relaying side not only can receive and be transferred to fund but also need to produce fund, be the operation for the fund that is transferred to here And describe) money transfer transactions when, if the money transfer transactions successful execution, mechanism 1 needs to increase into block chain account Y1 corresponding Fund realizes gathering, if money transfer transactions execute not successfully, mechanism 1 is without adjusting block chain account Y1.Correspondingly, block chain When the block chain received and processing equipment 1 is submitted is traded, the money transfer transactions that can include for block chain exchange are node It is no can successful execution, status indication is carried out to each money transfer transactions, for example transaction is success status, status of fail, overtime shape State etc..
Therefore, for above-mentioned " the initial state remaining sum of block chain transaction TX_1 is PC (100) ", equipment 1 is polymerizeing When generating block chain transaction TX_1, the remaining sum value of block chain account Y1 rising for block chain transaction TX_1 is not set as directly Beginning state remaining sum, but need first to determine to may cause the remittance of amount of money variation in block chain transaction that equipment 1 previously submitted Transaction, comprising: the amount of money that mechanism 1 generates when being marked as success status as the money transfer transactions of relaying side or beneficiary increases The gold that (gathering), mechanism 1 generate when being marked as status of fail or timeout mode as the money transfer transactions of transferor or relaying side Volume increases (transfer amounts progress rollback to having deducted) etc..And equipment 1 further takes according to the remaining sum of block chain account Y1 Value (deducted the transfer amounts for the money transfer transactions previously submitted, not yet collected money) is handed over the above-mentioned remittance that may cause amount of money variation The amount of money changing value easily actually generated, it is PC (100) that corresponding initial state remaining sum, which is calculated,;Equally, equipment 1 should be based on Each money transfer transactions that initial state remaining sum PC (100), respectively block chain transaction TX_1 include generate corresponding section card It is bright.
For another example Fig. 6 is a kind of showing for block chain transaction content based on plaintext numerical value that an exemplary embodiment provides It is intended to.As shown in Figure 6, it is assumed that equipment 1 chooses 4 money transfer transactions every time and is polymerized to a block chain transaction, for example remittance is handed over Easy tx_11, tx_12, tx_13, tx_14 are polymerized to the transaction of block chain TX_1, money transfer transactions tx_21, tx_22, tx_23, tx_ 24 are polymerized to block chain transaction TX_2, and money transfer transactions tx_31, tx_32, tx_33, tx_34 are polymerized to block chain transaction TX_ 3.In each block chain transaction that equipment 1 generates, separately includes the serial number seq of the setting of equipment 1 and handed over each remittance Easy relevant information.
Wherein, the effect of serial number seq is identical as embodiment illustrated in fig. 5, and details are not described herein again.With each money transfer transactions Relevant information may include: the initial state remaining sum of block chain transaction, the end state remaining sum of block chain transaction, each remittance The turnover of transaction;And due to using clear data, no longer need each remittance in embodiment illustrated in fig. 5 to hand over The permit of end state (i.e. transitory state) remaining sum of easy initial state remaining sum, each money transfer transactions, each money transfer transactions Contents, the block chain nodes such as breath are directly compared or calculate according to each plaintext numerical value.
Step 404b-c, equipment 2-3 according to the money transfer transactions in local queue 2-3, respectively polymerization generate transaction TX_b, TX_c, and it is committed to block chain respectively after signature.
In one embodiment, similar with equipment 1, equipment 2 can choose one or more remittances from local queue 2 Transaction generates corresponding block chain transaction with polymerization.It is assumed that equipment 2 includes above-mentioned remittance in the money transfer transactions that certain is once chosen Money transaction tx_i, and accordingly generated corresponding block chain transaction TX_b.
In one embodiment, similar with equipment 1, equipment 3 can choose one or more remittances from local queue 3 Transaction generates corresponding block chain transaction with polymerization.It is assumed that equipment 3 includes above-mentioned remittance in the money transfer transactions that certain is once chosen Money transaction tx_i, and accordingly generated corresponding block chain transaction TX_c.
Step 404d, for equipment 4 according to the money transfer transactions in local queue 4, polymerization generates transaction TX_d respectively, and is signing After be committed to block chain.
In one embodiment, similar with equipment 1, equipment 4 can choose one or more remittances from local queue 4 Transaction generates corresponding block chain transaction with polymerization.It is assumed that equipment 4 includes above-mentioned remittance in the money transfer transactions that certain is once chosen Money transaction tx_i, and accordingly generated corresponding block chain transaction TX_d.
It is noted that 1~equipment of equipment 4 can select to generate corresponding block chain transaction according to the actual situation, and Money transfer transactions tx_i might not be handled immediately;In other words, 1~equipment of equipment 4 is actually asynchronously to block chain Submit money transfer transactions tx_i (be contained in corresponding block chain transaction in) so that the execution of money transfer transactions tx_i be assigned to It is triggered respectively by 1~equipment of equipment 4, promotes 1~equipment of equipment 4 in the case where participating in a large amount of money transfer transactions, it can be right The money transfer transactions participated in carry out the transaction of Mass production block chain, to reduce the generation of block chain transaction and submit quantity, have Help reduce processing load, promote treatment effeciency.
Step 405, block chain node handles the block chain transaction received, includes to verify in the transaction of block chain Each money transfer transactions.
Step 406, money transfer transactions tx_i is marked.
In one embodiment, since each mechanism constantly can submit block chain to trade to block chain, and the area formerly submitted The money transfer transactions that Kuai Lian exchange includes will affect the money transfer transactions that the block chain exchange in rear submission includes, thus block Chain node needs to read include in received block chain transaction suitable after receiving the block chain transaction that each mechanism is submitted Sequence number seq, and the size of number seq in sequence successively handle the block chain transaction from corresponding mechanism.For example, working as area When block chain node receives the block chain transaction TX_a of the submission of equipment 1, reading serial number seq wherein included is 100;And such as The serial number seq of the processed nearest block chain transaction of fruit block chain node is 98, then block chain node needs The serial number seq submitted to equipment 1 trades for 99 block chain, and processed in the block chain transaction that the serial number is 99 Afterwards, the block chain transaction for being just 100 to said sequence number is handled.
In one embodiment, block chain node can be distinguished after receiving the block chain transaction that equipment 1~4 is submitted respectively The money transfer transactions for including in each block chain transaction are extracted, and implement individually verifying for each money transfer transactions respectively.Verifying behaviour Work may include: whether verifying signature is correct;" it may cause the remittance friendship of amount of money variation for above-mentioned in verifying money transfer transactions Whether correct, section proves whether correctly for the calculating of the amount of money changing value easily " actually generated;Fund transfer is produced volume and is transferred to Whether volume is consistent etc., no longer repeats one by one herein.
In one embodiment, other than the money transfer transactions for including in the transaction of each block chain individually implement verifying, such as The execution of fruit money transfer transactions simultaneously participates in triggering by participants such as transferor, relaying side, beneficiaries, thus block chain node also needs Whether each participant for verifying money transfer transactions, which all implements triggering, (has submitted the block chain comprising the money transfer transactions to hand over Easily).For example, Fig. 7 is a kind of schematic diagram for statistics triggering situation that an exemplary embodiment provides.As shown in fig. 7, being based on block Function is extended provided by the primary function of chain or intelligent contract, block chain node 1~mechanism of recording mechanism 4 can be mentioned respectively The block chain of friendship is traded, such as block chain transaction TX_a, TX_* that mechanism 1 is submitted, the block chain transaction TX_* of the submission of mechanism 2, TX_b, TX_#, block chain transaction TX_*, TX_c that mechanism 3 is submitted, block chain transaction TX_d that mechanism 4 is submitted etc.;And area Block chain node can extract the money transfer transactions for including in each block chain transaction, and be directed to the participation of each money transfer transactions respectively Side (in money transfer transactions details comprising transferor, relaying side, beneficiary information) counted: when receiving the submission of corresponding participant The transaction of block chain in include the money transfer transactions, can be by the participation and when the money transfer transactions have passed through above-mentioned independent verifying Side's label is OK ".
For example, including money transfer transactions tx_i in the block chain transaction TX_a submitted due to equipment 1, if block chain is traded Corresponding to the content of money transfer transactions tx_i by verifying in TX_a, then block chain node can mark and be "Y1:OK";Similarly, if block chain node also respectively for 2~mechanism, mechanism 4 labeled as " Y2:OK ", " Y3:OK ", " Y4: OK " etc., then block chain node can determine that money transfer transactions tx_i has obtained the confirmation of all participants, it can be by the remittance Money trades tx_i labeled as success status.
It for another example, include the phase of money transfer transactions tx_* in the block chain transaction submitted due to only equipment 1, equipment 2 and equipment 3 Close information, even if thus these information all passed through and individually verified, block chain node still only can be the money transfer transactions Tx_* addition label " Y1:OK ", " Y2:OK ", " Y3:OK ", and need to continue waiting for the block chain transaction of the submission of equipment 4.
For another example, due to including the relevant information of money transfer transactions tx_# in the block chain transaction of the only submission of equipment 2, thus it is Just relevant information, which has passed through, individually verifies, block chain node still only can for the money transfer transactions tx_# addition label " Y2: OK ", and need to continue waiting for the block chain transaction that equipment 1, equipment 3 and equipment 4 are submitted.
Still by taking money transfer transactions tx_i as an example, if any participant in 1~mechanism, mechanism 4 has not been able to arrive at the transaction moment Up to submitting the block chain comprising money transfer transactions tx_i to trade before, then block chain node can mark money transfer transactions tx_i It for timeout mode, be successfully executed it can not.If although any participant in 1~mechanism, mechanism 4 is referred to comprising being somebody's turn to do The block chain of money transfer transactions tx_i is traded, but does not pass through list due to the amount of money adds up details error or section proves error etc. Solely verifying be successfully executed it can not then money transfer transactions tx_i can be labeled as status of fail by block chain node.
When money transfer transactions tx_i or other money transfer transactions are added to success status, status of fail or time-out by block chain node When state etc. marks, 1~mechanism, mechanism 4 can generate corresponding gold when being subsequently generated the transaction of block chain with reference to these states Volume adds up details, the section proof for generating remaining sum abundance etc., this and the above process phase described in step 404a~404d Similar, details are not described herein again.
After confirmation money transfer transactions tx_i is successfully executed, mechanism 1 collects 500 Hongkong dollars of user 1, to mechanism 2 outside chain Produce 500 Hongkong dollars, mechanism 2 collects 500 Hongkong dollars that mechanism 1 is transferred to, produces 56 Euros to mechanism 3, and mechanism 3 collects mechanism 2 and is transferred to 56 Euros, produce 64 dollars to mechanism 4, mechanism 4 collects 64 dollars that mechanism 3 is transferred to, is transferred to 64 beauty in chain extroversion user 1 Member is equivalent to 1~4 balance between revenue and expenditure of mechanism, is operated from user 1 to the remittance that user 2 completes 500 Hongkong dollars.
And show the data variation on block chain account book are as follows: the corresponding block chain account Y1 of mechanism 1 is updated to (currency_1, PC (a-t1, r_a-r_t1), Enc_A (a-t1), Enc_A (r_a-r_t1)), reduce 500 Hongkong dollars;Mechanism 2 corresponding block chain account Y2 update are as follows: (currency_1, PC (b1+t1, r_b1+r_t1), Enc_B (b1+t1), Enc_B (r_b1+r_t1)), (currency_2, PC (b2-t2, r_b2-r_t2), Enc_B (b2-t2), Enc_B (r_b2-r_t2)), It increases 500 Hongkong dollars, reduce 56 Euros;The corresponding block chain account Y3 of mechanism 3 updates are as follows: (currency_2, PC (c1+ t2,r_c1+r_t2),Enc_C(c1+t2),Enc_C(r_c1+r_t2))、(currency_3,PC(c2-t3,r_c2-r_t3), Enc_C (c2-t3), Enc_C (r_c2-r_t3)), it increases 56 Euros, reduce 64 dollars;The corresponding block chain account of mechanism 4 Family Y4 updates are as follows: (currency_3, PC (d+t3, r_d+r_t3), Enc_D (d+t3), Enc_D (r_d+r_t3)), increases 64 dollars.
It is noted that 1~equipment of equipment 4 submitted block chain transaction in, might not every money transfer transactions all By all participant common implementing trigger actions;For example, at least one money transfer transactions can be using technical side in the related technology Case, i.e., by a certain participant collect all participants to the confirmation message of the Transaction Details information of money transfer transactions, generate exchange Section proof needed etc. (i.e. multi-party triggering information described in generation above-described embodiment), and packet is only submitted by a certain participant Block chain transaction containing the money transfer transactions.
Fig. 8 is a kind of schematic configuration diagram for equipment that an exemplary embodiment provides.Referring to FIG. 8, in hardware view, it should Equipment includes processor 802, internal bus 804, network interface 806, memory 808 and nonvolatile memory 810, is gone back certainly It may include hardware required for other business.Processor 802 reads corresponding computer journey from nonvolatile memory 810 Then sequence is run into memory 808, the event processing apparatus based on block chain is formed on logic level.Certainly, in addition to software Except implementation, this specification one or more embodiment is not precluded other implementations, such as logical device or soft Mode of combination of hardware etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, can also To be hardware or logical device.
Referring to FIG. 9, participant should be applied to based on the event processing apparatus of block chain in Software Implementation, it can To include:
Adding unit 901 adds in the waiting list of Xiang Suoshu participant maintenance according to the event that the participant is participated in Add corresponding alternative sub- transaction;
Generation unit 902 generates corresponding set intersection according to several alternative sub- transaction chosen from the waiting list Easily;
Unit 903 is submitted, set transaction is committed to block chain, makes the alternative sub- transaction quilt in the set transaction It is handled respectively.
Optionally, the generation unit 902 is specifically used for:
When the alternative sub- transaction in the waiting list reaches preset quantity, choose already present in the waiting list Alternative son transaction, to generate corresponding set transaction;
Alternatively, choosing already present alternative sub- transaction in the waiting list, periodically according to preset duration to generate Corresponding set transaction.
Optionally, further includes:
Adding unit 904 is the corresponding number of each set transaction addition according to genesis sequence, so that each set is traded It is successively handled in block chain according to corresponding number size.
Optionally, the alternative sub- transaction setting for including in the set transaction has corresponding amount of state variation, so that described After alternative son transaction is processed, the state parameter of the participant is based on the amount of state variation and corresponding numerical value occurs and becomes Change.
Optionally, the amount of state variation is plaintext numerical value.
Optionally, it is described set transaction in include alternative sub- transaction also set change preceding state value, variation after state Value, so that the state parameter of the participant is by state value before the variation via described after the alternative sub- transaction is processed Amount of state variation and be changed to state value after the variation;
Wherein, state value is respectively to be based on homomorphism after state value and the variation before the amount of state variation, the variation The ciphertext numerical value that Encryption Algorithm or Homomorphic Commitment algorithm are calculated.
Optionally,
When the alternative sub- transaction being selected is for increasing the state value of the participant, the set transaction is also wrapped Contain: first proves information, and the first proof information is for proving that state value increase is in correct value section;
When the alternative sub- transaction being selected is for reducing the state value of the participant, the set transaction is also wrapped Contain: second proves information, and the second proof information is for proving state value reduction amount, the alternative sub- transaction pair being selected State value is in the correct value section after the variation answered.
Optionally, when set transaction is comprising multiple alternative sub- transaction, adjacent alternative sub- transaction meets: previous standby Choosing state value before state value variation corresponding with latter alternative sub- transaction of trading after corresponding variation is identical.
Optionally, it in the corresponding alternative sub- transaction of the event, is touched comprising folk prescription of the participant to the event Photos and sending messages;Wherein, when the folk prescription for the event that all participants of the event are submitted to block chain respectively triggers letter Breath is when passing through verifying, and the corresponding alternative sub- transaction of the event is triggered execution in block chain.
Optionally, in the corresponding alternative sub- transaction of the event, all participants comprising the event are to the thing The multi-party triggering information of part;Wherein, when the multi-party triggering information passes through verifying, the corresponding alternative sub- transaction of the event exists Be triggered execution in block chain.
Figure 10 is a kind of schematic configuration diagram for equipment that an exemplary embodiment provides.Referring to FIG. 10, in hardware view, The equipment includes processor 1002, internal bus 1004, network interface 1006, memory 1008 and nonvolatile memory 1010, it is also possible that hardware required for other business certainly.Processor 1002 is read from nonvolatile memory 1010 Then corresponding computer program is run into memory 1008, the event handling dress based on block chain is formed on logic level It sets.Certainly, other than software realization mode, other implementations are not precluded in this specification one or more embodiment, than The mode of such as logical device or software and hardware combining, that is to say, that the executing subject of following process flow is not limited to respectively A logic unit is also possible to hardware or logical device.
Figure 11 is please referred to, in Software Implementation, block chain link should be applied to based on the event processing apparatus of block chain Point may include:
Receiving unit 1101 receives the set transaction that participant is committed to block chain, includes from institute in the set transaction Several alternative sub- transaction chosen in the waiting list of participant maintenance are stated, the alternative sub- transaction corresponds to the participant institute The event of participation;
Execution unit 1102 executes the set transaction, to give respectively the alternative sub- transaction in the set transaction Processing.
Optionally, further includes:
Extraction unit 1103 extracts the number for including in the set transaction, and the number is by the participant according to life It is added at sequence;
Processing unit 1104 carries out successively each set transaction that the participant is submitted according to corresponding number size Processing.
Optionally, the alternative sub- transaction setting for including in the set transaction has corresponding amount of state variation, so that described After alternative son transaction is processed, the state parameter of the participant is based on the amount of state variation and corresponding numerical value occurs and becomes Change.
Optionally, the amount of state variation is plaintext numerical value.
Optionally, it is described set transaction in include alternative sub- transaction also set change preceding state value, variation after state Value, so that the state parameter of the participant is by state value before the variation via described after the alternative sub- transaction is processed Amount of state variation and be changed to state value after the variation;
Wherein, state value is respectively to be based on homomorphism after state value and the variation before the amount of state variation, the variation The ciphertext numerical value that Encryption Algorithm or Homomorphic Commitment algorithm are calculated.
Optionally,
When the alternative sub- transaction being selected is for increasing the state value of the participant, the set transaction is also wrapped Contain: first proves information, and the first proof information is for proving that state value increase is in correct value section;
When the alternative sub- transaction being selected is for reducing the state value of the participant, the set transaction is also wrapped Contain: second proves information, and the second proof information is for proving state value reduction amount, the alternative sub- transaction pair being selected State value is in the correct value section after the variation answered.
Optionally, when set transaction is comprising multiple alternative sub- transaction, adjacent alternative sub- transaction meets: previous standby Choosing state value before state value variation corresponding with latter alternative sub- transaction of trading after corresponding variation is identical.
Optionally, it in the corresponding alternative sub- transaction of the event, is touched comprising folk prescription of the participant to the event Photos and sending messages;Wherein, when the folk prescription for the event that all participants of the event are submitted to block chain respectively triggers letter Breath is when passing through verifying, and the corresponding alternative sub- transaction of the event is triggered execution in block chain.
Optionally, in the corresponding alternative sub- transaction of the event, all participants comprising the event are to the thing The multi-party triggering information of part;Wherein, when the multi-party triggering information passes through verifying, the corresponding alternative sub- transaction of the event exists Be triggered execution in block chain.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
This description presents a kind of computer-readable mediums, are stored thereon with computer instruction, and the instruction is by processor The technical solution of this specification, such as the event-handling method based on block chain of any of the above-described embodiment are realized when execution, this Place no longer repeats one by one.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (23)

1. a kind of event-handling method based on block chain is applied to participant, which comprises
According to the event that the participant is participated in, corresponding alternative sub- friendship is added in the waiting list of Xiang Suoshu participant maintenance Easily;
According to several alternative sub- transaction chosen from the waiting list, corresponding set transaction is generated;
Set transaction is committed to block chain, handles the alternative sub- transaction in the set transaction respectively.
2. according to the method described in claim 1, several alternative sub- transaction that the basis is chosen from the waiting list, raw At corresponding set transaction, comprising:
When the alternative sub- transaction in the waiting list reaches preset quantity, choose already present alternative in the waiting list Son transaction, to generate corresponding set transaction;
Alternatively, already present alternative sub- transaction in the waiting list is periodically chosen according to preset duration, it is corresponding to generate Set transaction.
3. according to the method described in claim 1, further include:
Be the corresponding number of each set transaction addition according to genesis sequence so that each set trade in block chain by according to Corresponding number size is successively handled.
4. according to the method described in claim 1, the alternative sub- transaction setting for including in the set transaction has corresponding state Variable quantity, so that the state parameter of the participant is based on the amount of state variation and sends out after the alternative sub- transaction is processed Raw corresponding numerical value change.
5. according to the method described in claim 4, the amount of state variation is plaintext numerical value.
6. according to the method described in claim 4, the alternative sub- transaction for including in the set transaction also sets and changes preceding shape State value after state value, variation, so that after the alternative sub- transaction is processed, before the state parameter of the participant is by the variation State value is changed to state value after the variation via the amount of state variation;
Wherein, state value is respectively to be based on homomorphic cryptography after state value and the variation before the amount of state variation, the variation The ciphertext numerical value that algorithm or Homomorphic Commitment algorithm are calculated.
7. according to the method described in claim 6,
When the alternative sub- transaction being selected is for increasing the state value of the participant, the set transaction also includes: the One proves information, and the first proof information is for proving that state value increase is in correct value section;
When the alternative sub- transaction being selected is for reducing the state value of the participant, the set transaction also includes: the Two prove information, and the second proof information is for proving that state value reduction amount, the alternative sub- transaction being selected are corresponding State value is in the correct value section after variation.
8. according to the method described in claim 6, when set transaction is comprising multiple alternative sub- transaction, adjacent alternative son Transaction meets: state value phase before state value variation corresponding with latter alternative sub- transaction after the corresponding variation of previous alternative sub- transaction Together.
9. according to the method described in claim 1, including the participant to institute in the corresponding alternative sub- transaction of the event State the folk prescription triggering information of event;Wherein, when what all participants of the event were submitted to block chain respectively is directed to the thing The folk prescription triggering information of part is when passing through verifying, and the corresponding alternative sub- transaction of the event is triggered execution in block chain.
10. according to the method described in claim 1, in the corresponding alternative sub- transaction of the event, the institute comprising the event There is participant to the multi-party triggering information of the event;Wherein, when the multi-party triggering information passes through verifying, the event pair The alternative sub- transaction answered is triggered execution in block chain.
11. a kind of event-handling method based on block chain is applied to block chain node, which comprises
The set transaction that participant is committed to block chain is received, includes the waiting safeguarded from the participant in the set transaction Several alternative sub- transaction chosen in queue, the alternative sub- transaction correspond to the event that the participant is participated in;
The set transaction is executed, handled respectively the alternative sub- transaction in the set transaction.
12. according to the method for claim 11, further includes:
The number for including in the set transaction is extracted, the number is added by the participant according to genesis sequence;
Each set transaction that the participant is submitted successively is handled according to corresponding number size.
13. the alternative sub- transaction setting for according to the method for claim 11, including in the set transaction has corresponding shape State variable quantity so that after the alternative sub- transaction is processed, the state parameter of the participant be based on the amount of state variation and Corresponding numerical value change occurs.
14. according to the method for claim 13, the amount of state variation is plaintext numerical value.
Before 15. the alternative sub- transaction for according to the method for claim 13, including in the set transaction also sets and changes State value after state value, variation, so that the state parameter of the participant is by the variation after the alternative sub- transaction is processed Preceding state value is changed to state value after the variation via the amount of state variation;
Wherein, state value is respectively to be based on homomorphic cryptography after state value and the variation before the amount of state variation, the variation The ciphertext numerical value that algorithm or Homomorphic Commitment algorithm are calculated.
16. according to the method for claim 15,
When the alternative sub- transaction being selected is for increasing the state value of the participant, the set transaction also includes: the One proves information, and the first proof information is for proving that state value increase is in correct value section;
When the alternative sub- transaction being selected is for reducing the state value of the participant, the set transaction also includes: the Two prove information, and the second proof information is for proving that state value reduction amount, the alternative sub- transaction being selected are corresponding State value is in the correct value section after variation.
17. adjacent is alternative according to the method for claim 15, when set transaction is comprising multiple alternative sub- transaction Son transaction meets: state value before state value variation corresponding with latter alternative sub- transaction after the corresponding variation of previous alternative sub- transaction It is identical.
18. including the participant pair according to the method for claim 11, in the corresponding alternative sub- transaction of the event The folk prescription of the event triggers information;Wherein, when all participants of the event are respectively to the submission of block chain for described The folk prescription triggering information of event is when passing through verifying, and the corresponding alternative sub- transaction of the event is triggered execution in block chain.
19. according to the method for claim 11, in the corresponding alternative sub- transaction of the event, the institute comprising the event There is participant to the multi-party triggering information of the event;Wherein, when the multi-party triggering information passes through verifying, the event pair The alternative sub- transaction answered is triggered execution in block chain.
20. a kind of event processing apparatus based on block chain, is applied to participant, described device includes:
Adding unit is added in the waiting list of Xiang Suoshu participant maintenance and is corresponded to according to the event that the participant is participated in Alternative sub- transaction;
Generation unit generates corresponding set transaction according to several alternative sub- transaction chosen from the waiting list;
Unit is submitted, set transaction is committed to block chain, gives the alternative sub- transaction in the set transaction respectively With processing.
21. a kind of event processing apparatus based on block chain, is applied to block chain node, described device includes:
Receiving unit receives the set transaction that participant is committed to block chain, includes from the participant in the set transaction Several alternative sub- transaction chosen in the waiting list of maintenance, the alternative sub- transaction correspond to the thing that the participant is participated in Part;
Execution unit executes the set transaction, handled respectively the alternative sub- transaction in the set transaction.
22. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize such as side of any of claims 1-10 Method.
23. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize as described in any one of claim 11-19 Method.
CN201811530103.3A 2018-12-14 2018-12-14 Event-handling method and device, electronic equipment based on block chain Pending CN110009316A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811530103.3A CN110009316A (en) 2018-12-14 2018-12-14 Event-handling method and device, electronic equipment based on block chain
TW108135661A TWI705691B (en) 2018-12-14 2019-10-02 Block chain-based event processing method and device, and electronic equipment
PCT/CN2019/113934 WO2020119297A1 (en) 2018-12-14 2019-10-29 Event processing method and apparatus based on blockchain, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811530103.3A CN110009316A (en) 2018-12-14 2018-12-14 Event-handling method and device, electronic equipment based on block chain

Publications (1)

Publication Number Publication Date
CN110009316A true CN110009316A (en) 2019-07-12

Family

ID=67165136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811530103.3A Pending CN110009316A (en) 2018-12-14 2018-12-14 Event-handling method and device, electronic equipment based on block chain

Country Status (3)

Country Link
CN (1) CN110009316A (en)
TW (1) TWI705691B (en)
WO (1) WO2020119297A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119297A1 (en) * 2018-12-14 2020-06-18 阿里巴巴集团控股有限公司 Event processing method and apparatus based on blockchain, and electronic device
CN111310237A (en) * 2020-01-22 2020-06-19 腾讯科技(深圳)有限公司 Service processing method, device and equipment based on block chain
TWI732501B (en) * 2019-08-30 2021-07-01 開曼群島商創新先進技術有限公司 Method and device for parallel execution of transactions in block chain, computer readable storage medium and computing equipment
US11494766B2 (en) 2019-07-23 2022-11-08 Advanced New Technologies Co., Ltd. Managing transactions on blockchain networks
CN116260707A (en) * 2023-05-15 2023-06-13 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium
CN111310237B (en) * 2020-01-22 2024-04-26 腾讯科技(深圳)有限公司 Business processing method, device and equipment based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
CN108241979A (en) * 2017-12-20 2018-07-03 深圳壹账通智能科技有限公司 More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain
CN108320228A (en) * 2018-03-07 2018-07-24 物数(上海)信息科技有限公司 Transregional piece of chain transaction in assets method, platform, equipment and storage medium
CN108600161A (en) * 2018-03-12 2018-09-28 成都零光量子科技有限公司 A kind of fair efficient block chain common recognition method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11941588B2 (en) * 2015-11-06 2024-03-26 Cable Television Laboratories, Inc. Systems and methods for blockchain virtualization and scalability
US20170193464A1 (en) * 2015-12-18 2017-07-06 Justin SHER Protocol utilizing bitcoin blockchain for maintaining independently proposed and approved set contents
KR101950912B1 (en) * 2016-08-01 2019-02-21 서강대학교산학협력단 Verification system and method for transaction based block chain
CN107273455B (en) * 2017-05-31 2020-12-18 深圳前海微众银行股份有限公司 Block chain data access method and device
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block
CN108520412A (en) * 2018-04-18 2018-09-11 北京天德科技有限公司 A kind of settle accounts calculation transaction towards block chain divides the design method of account algorithm
CN108776897B (en) * 2018-06-05 2020-04-21 腾讯科技(深圳)有限公司 Data processing method, device, server and computer readable storage medium
CN108876384B (en) * 2018-09-19 2021-11-05 联动优势科技有限公司 Transaction data processing method and device
CN110009316A (en) * 2018-12-14 2019-07-12 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
CN108241979A (en) * 2017-12-20 2018-07-03 深圳壹账通智能科技有限公司 More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain
CN108320228A (en) * 2018-03-07 2018-07-24 物数(上海)信息科技有限公司 Transregional piece of chain transaction in assets method, platform, equipment and storage medium
CN108600161A (en) * 2018-03-12 2018-09-28 成都零光量子科技有限公司 A kind of fair efficient block chain common recognition method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119297A1 (en) * 2018-12-14 2020-06-18 阿里巴巴集团控股有限公司 Event processing method and apparatus based on blockchain, and electronic device
US11494766B2 (en) 2019-07-23 2022-11-08 Advanced New Technologies Co., Ltd. Managing transactions on blockchain networks
TWI732501B (en) * 2019-08-30 2021-07-01 開曼群島商創新先進技術有限公司 Method and device for parallel execution of transactions in block chain, computer readable storage medium and computing equipment
CN111310237A (en) * 2020-01-22 2020-06-19 腾讯科技(深圳)有限公司 Service processing method, device and equipment based on block chain
CN111310237B (en) * 2020-01-22 2024-04-26 腾讯科技(深圳)有限公司 Business processing method, device and equipment based on block chain
CN116260707A (en) * 2023-05-15 2023-06-13 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium
CN116260707B (en) * 2023-05-15 2023-10-10 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium

Also Published As

Publication number Publication date
TWI705691B (en) 2020-09-21
WO2020119297A1 (en) 2020-06-18
TW202023236A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN109903026A (en) Event-handling method and device, electronic equipment based on block chain
US11861606B2 (en) Blockchain system for confidential and anonymous smart contracts
TWI709319B (en) Block chain-based event processing method and device, and electronic equipment
CN109242485B (en) Block chain transaction method and device and electronic equipment
JP7128111B2 (en) Systems and methods for controlling asset-related activities via blockchain
CN110033363A (en) Event-handling method and device, electronic equipment based on block chain
CN110009316A (en) Event-handling method and device, electronic equipment based on block chain
Xu et al. A game-theoretic analysis of cross-chain atomic swaps with htlcs
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN110033370A (en) Account creation method and device, electronic equipment, storage medium
CN110458561A (en) The method and device of secret transaction is realized in block chain network
CN110009323A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN110009492A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN110727735B (en) Method, device and equipment for cooperatively completing task event based on block chain technology
Papadis Stochastic Modeling and Optimization of Blockchain Networks
Gurung Privacy-Preserving Protocol for Atomic Swap Between Blockchains
Chen et al. A secure recharge scheme for blockchain payment channels

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201013

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201013

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.