A kind of voting method, device, equipment and medium based on block chainTechnical field
The present invention relates to block chain technical fields, more particularly to a kind of voting method, device, equipment based on block chainAnd medium.
Background technology
Current electronic voting (e-voting) system is often based on the centralized system of Proxy Signature, ring signatures.It is throwingBallot node or the Proxy Signature by interacting generation ballot with count of votes node during ticket, or pass through other ballot nodesPublic key generates the ring signatures of ballot, is voted anonymously with realizing, Proxy Signature or ring signatures are sent to count of votes section by final vote nodePoint carries out poll statistics and result is carried out publicity.
Due in current electronic voting system, since the count of votes process of count of votes node is underground, being also difficult to ensureFairness of the count of votes node in count of votes.In addition, when using ballot is realized based on ring signatures technology, each node of voting needsThe ring signatures to generate itself are interacted with other ballot nodes respectively, therefore when the substantial amounts for node of voting, respectivelyThe process that node of voting generates ring signatures is complicated, computationally intensive, it is difficult to ensure whole ballot efficiency, it can be to electronic voting systemAvailability impact.
It can be seen that a kind of voting method based on block chain is provided, to ensure the fairness and entirety of count of votes processBallot efficiency, be those skilled in the art's urgent problem to be solved.
Invention content
The object of the present invention is to provide a kind of voting method, device, equipment and medium based on block chain, to ensure count of votesThe fairness of process and the ballot efficiency of entirety.
In order to solve the above technical problems, the present invention provides a kind of voting method based on block chain, including:
Obtain the ballot value that characterization ballot is intended in each ballot node;
According to the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, each ballot value is encrypted to generate encryptionValue;
Each secret value, which is transmitted to operation, the common recognition node of block chain intelligence contract, and controls common recognition node to each encryptionValue carries out summation operation, to obtain encrypted vote result;
The homomorphism private key that control count of votes node is generated by homomorphic encryption algorithm, is decrypted to obtain to encrypted vote resultOriginal voting results, and original voting results being recorded in block chain by block chain intelligence contract, for block chainEach node publicity in network.
Preferably, after the ballot value that characterization ballot is intended in obtaining each ballot node, this method further comprises:
Control each ballot node by preset digest algorithm and signature private key to include in itself ballot value throwingTicket information carries out digest, obtains signed data;
Each signed data is recorded into block chain by block chain intelligence contract.
Preferably, digest algorithm is specially SHA256 digest algorithms or SM3 digest algorithms, signature private key especially byECDSA algorithms or SM2 algorithms or SM9 algorithms generate.
Preferably, homomorphic encryption algorithm is specially EC-ElGamal homomorphic encryption algorithms.
Preferably, EC-ElGamal homomorphic encryption algorithms are specially EC-ElGamal additive homomorphism Encryption Algorithm.
Preferably, the value of ballot value includes 0 and 1;Wherein, when ballot value is 0, characterization ballot is intended to oppose, works as throwingCharacterization ballot is intended to agree with when ticket value is 1.
Preferably, ballot node is specially mobile terminal.
In addition, the present invention also provides a kind of balloting devices based on block chain, including:
Acquisition module, for obtaining the ballot value that characterization ballot is intended in each ballot node;
Encrypting module, the homomorphism public key for being generated by homomorphic encryption algorithm according to count of votes node carry out each ballot valueEncryption is to generate secret value;
Computing module is transmitted, has the common recognition node of block chain intelligence contract for each secret value to be transmitted to operation, and controlSystem common recognition node carries out summation operation to each secret value, to obtain encrypted vote result;
Deciphering module, the homomorphism private key generated by homomorphic encryption algorithm for controlling count of votes node, to encrypted vote knotFruit is decrypted to obtain original voting results, and original voting results are recorded in block chain by block chain intelligence contract,For each node publicity into block chain network.
In addition, the present invention also provides a kind of ballot equipment based on block chain, including:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of above-mentioned voting method based on block chain.
In addition, the present invention also provides a kind of computer readable storage medium, meter is stored on computer readable storage mediumCalculation machine program is realized when computer program is executed by processor such as the step of above-mentioned voting method based on block chain.
Voting method provided by the present invention based on block chain, obtains the ballot value of each ballot node, and then usesEach ballot value is encrypted as secret value by the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, and is transmitted to operation and has areaThe common recognition node of block chain intelligence contract, by know together node to each secret value carry out summation operation generate encrypted vote as a result, intoAnd it obtains the encrypted vote result of common recognition node using count of votes node and it is decrypted to obtain original throwing using homomorphism private keyOriginal voting results as a result, be finally recorded in by block chain intelligence contract in block chain, with into block chain network by ticketEach node publicity.This method ensures to decrypt the result of gained after carrying out operation to secret value and to throwing using homomorphic encryption algorithmThe result that ticket value directly carries out identical operation is identical, and then summation operation can be directly carried out in the form of secret value, ensure thatThe safety of operation.In addition, since common recognition node operation has block chain intelligence contract, common recognition node is by block chain networkOther nodes trusted, and then ensure the fairness of count of votes process;And in the method, respectively ballot node is all made of togetherState Encryption Algorithm carries out respective handling to ballot value, and since the execution content of homomorphic encryption algorithm is relatively easy, calculation amountIt is small, therefore ensure whole ballot efficiency relatively.In addition, the balloting device that the present invention also provides a kind of based on block chain, settingStandby and medium, advantageous effect are same as above.
Description of the drawings
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply belowIt introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill peopleFor member, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow chart of the voting method based on block chain provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another voting method based on block chain provided in an embodiment of the present invention;
Fig. 3 is the flow sequence diagram of the voting method based on block chain;
Fig. 4 is a kind of balloting device structure chart based on block chain provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on thisEmbodiment in invention, without making creative work, what is obtained is every other by those of ordinary skill in the artEmbodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of voting method based on block chain, with ensure count of votes process fairness andWhole ballot efficiency.Another core of the present invention is to provide a kind of balloting device and medium based on block chain.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed descriptionThe present invention is described in further detail.
Implement profit one
Fig. 1 is a kind of flow chart of the voting method based on block chain provided in an embodiment of the present invention.Referring to FIG. 1, baseInclude in the specific steps of the voting method of block chain:
Step S10:Obtain the ballot value that characterization ballot is intended in each ballot node.
It should be noted that ballot node should be the node operated in block chain network, to be able to carry out block chain machineRelevant operation under system.The quantity of ballot node in this step is often multiple, and particular number should be set according to actual conditionsIt is fixed, it is not specifically limited herein.In addition, each ballot node is intended to by the corresponding ballot of ballot value characterization, and ballot valueCorrespondence between being intended to ballot should be set according to actual conditions, such as can the value of ballot value be positioned 0 or 1,When ballot value is 0, characterization ballot is intended to " oppose ";When ballot value is 1, characterization ballot is intended to " agreeing with ".Above-mentioned exampleSon is only to illustrate to be not intended as the restriction to ballot value value there are correspondence between ballot value and ballot intention.
Step S11:According to the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, to each ballot value be encrypted withGenerate secret value.
It should be noted that homomorphic cryptography is the cryptological technique of the computational complexity theory based on difficult math question, to warpThe data for crossing homomorphic cryptography are handled to obtain an output, this output is decrypted, result with at Same WayOutput that the initial data of reason unencryption obtains is the result is that the same.In addition, the precondition for executing this step is count of votes nodeGenerate homomorphism key (including public key and private key) according to homomorphic encryption algorithm, so count of votes node need open homomorphism public key forNode other than count of votes node uses, and itself retains homomorphism private key.This step is public by the homomorphism disclosed in count of votes nodeThe ballot value that key generates each ballot node is encrypted and generates secret value, and then participates in subsequent hold by using secret valueRow step can ensure that the specific ballot content of ballot node is not leaked, and improve the crypticity of ballot.In addition, to ballot valueThe executive agent being encrypted can be each ballot node itself, can also be the node other than voting node, node of such as knowing together,It is not specifically limited herein.In addition, homomorphic encryption algorithm signified in this step, is for additive homomorphism Encryption Algorithm and to multiplyThe general designation of method homomorphic encryption algorithm, and it is above-mentioned since there are transforming relationships, above two to calculate between multiplication and additionThe homomorphic encryption algorithm of type can be realized in this step to being asked secret value in the encryption of ballot value and subsequent stepAnd operation.
Step S12:Each secret value, which is transmitted to operation, the common recognition node of block chain intelligence contract, and controls common recognition nodeSummation operation is carried out to each secret value, to obtain encrypted vote result.
Signified common recognition node is to execute the node for having block chain intelligence contract in this step, is by institute in block chain networkThere is the working node that node is trusted, therefore the public affairs that summation operation ensure that operation are carried out to secret value by control common recognition nodePositivity.It should be noted that in practical situations, the quantity for node of knowing together is usually multiple, phase is followed between each node of knowing togetherSame block chain intelligence contract, block chain is recorded in a distributed fashion in each common recognition node, and then passes through each common recognitionBlock in node can restore complete block chain in current block chain network.
Step S13:The homomorphism private key that control count of votes node is generated by homomorphic encryption algorithm, carries out encrypted vote resultDecryption obtains original voting results, and original voting results are recorded in block chain by block chain intelligence contract, forEach node publicity into block chain network.
It is understood that since count of votes node retains the homomorphism private key being generated in advance in itself, this step needsIt controls count of votes node to be decrypted by homomorphism private key pair encryption data, and then obtains original voting results.Due to using sameThe encryption and subsequent decryption that state Encryption Algorithm carries out ballot value, therefore can ensure obtained original voting results justTrue property.After original voting results are recorded in block chain, each node under block chain mechanism can be obtained by node of knowing togetherGet original voting results.It is this field skill it should be noted that by block chain intelligence contract by data record in block chainTechnological means well known to art personnel, and the emphasis of this method is that ballot is realized under block chain mechanism using homomorphic encryption algorithmOperation, does not lie in and how original voting results to be recorded in block chain, therefore related content does not repeat herein.
Voting method provided by the present invention based on block chain, obtains the ballot value of each ballot node, and then usesEach ballot value is encrypted as secret value by the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, and is transmitted to operation and has areaThe common recognition node of block chain intelligence contract, by know together node to each secret value carry out summation operation generate encrypted vote as a result, intoAnd it obtains the encrypted vote result of common recognition node using count of votes node and it is decrypted to obtain original throwing using homomorphism private keyOriginal voting results as a result, be finally recorded in by block chain intelligence contract in block chain, with into block chain network by ticketEach node publicity.This method ensures to decrypt the result of gained after carrying out operation to secret value and to throwing using homomorphic encryption algorithmThe result that ticket value directly carries out identical operation is identical, and then summation operation can be directly carried out in the form of secret value, ensure thatThe safety of operation.In addition, since common recognition node operation has block chain intelligence contract, common recognition node is by block chain networkOther nodes trusted, and then ensure the fairness of count of votes process;And in the method, respectively ballot node is all made of togetherState Encryption Algorithm carries out respective handling to ballot value, and since the execution content of homomorphic encryption algorithm is relatively easy, calculation amountIt is small, therefore ensure whole ballot efficiency relatively.
Embodiment two
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 2 is the flow chart of another voting method based on block chain provided in an embodiment of the present invention.Step in Fig. 2S10-S13 is identical as Fig. 1, and details are not described herein.
As shown in Fig. 2, as a preferred embodiment, the ballot that characterization ballot is intended in obtaining each ballot nodeAfter value, this method further comprises:
Step S20:Each ballot node is controlled by preset digest algorithm and signature private key to including to throw in itselfThe vote information of ticket value carries out digest, obtains signed data.
Step S21:Each signed data is recorded into block chain by block chain intelligence contract.
In order to avoid there is the case where ballot node duplicates ballot or do not vote, can be saved by controlling each ballotPoint is to including that the vote information of ballot value carries out digest to obtain signed data, since ballot node is to use in itselfThe signed data that the signature private key of own identification generates is characterized, therefore each signed data can correspond to unique ballot node.Each signed data is recorded to block chain, all nodes under block chain mechanism can verify each throwing according to signed dataWhether ticket node normally votes, opposite the case where avoiding ballot node from duplicating ballot or do not vote, and then ensures ballot knotThe accuracy of fruit.In addition, equal to data progress informative abstract and by signature private key progress digest by digest algorithmTechnological means known to those skilled in the art, this will not be repeated here, and the digest algorithm for specifically choosing and signature are privateThe concrete type of key should be herein not specifically limited depending on particular condition in use.
On the basis of the above embodiment, as a preferred embodiment, digest algorithm is specially SHA256 plucksAlgorithm or SM3 digest algorithms, signature private key is wanted to be generated especially by ECDSA algorithms or SM2 algorithms or SM9 algorithms.
It should be noted that SHA (secure hash algorithm) is a Cryptographic Hash Function family, be FIPS certification peaceFull hashing algorithm can calculate corresponding to a digital information, the fixed character string of length, i.e. eap-message digest, and SHA256Digest algorithm is comparatively common algorithm in SHA, has higher reliability.SM3, SM2 and SM9 algorithm belong to stateThe commercial algorithm of Password Management office of family establishment, in cipher application digital signature and verification, the generation of message authentication code withVerification and the generation of random number, can meet the demand for security of a variety of cipher applications;In addition, the keys sizes of ECDSA algorithms are small,Encrypting and decrypting speed is fast, occupies smaller for memory space, therefore have higher availability.
In addition, as a preferred embodiment, homomorphic encryption algorithm is specially EC-ElGamal homomorphic encryption algorithms.
EC-ElGamal homomorphic encryption algorithms are the homomorphic algorithms of current opposite mainstream, have higher reliability, pass throughEC-ElGamal homomorphic encryption algorithms, are encrypted ballot value and operation, be capable of the opposite safety for ensureing secret value andThe reliability of operation result.
The execution of specific EC-ElGamal homomorphic encryption algorithms includes the following steps:
1, parameter generates:E is an elliptic curve on finite field gf (p), and n is the rank of curve E, and G is the base of curve EPoint.
2, key generates:One integer x ∈ GF (p) of random selection is used as private key, calculates public key Y=xG.
3, it encrypts:Input public key Y and plaintext m.
Random number k ∈ [1, n-1] is selected, and calculates R=kG;
Calculate S=m+kY;
Export ciphertext (R, S).
4, it decrypts:Input private key x and ciphertext (R, S).
Calculate m=S-xR;
Export plaintext m.
In the following, characterizing the additive homomorphism operation based on EC-ElGamal homomorphic encryption algorithms in the form of expression formula:
D(E(m1)+E(m2))=D ((R1,S1)+(R2,S2))=D ((k1G,m1+k1Y)+(k2G,m2+k2Y))
=D ((k1G+k2G,m1+m2+k1Y+k2Y))=m1+m2+(k1+k2)Y-x(k1+k2) G=m1+m2。
Wherein, D characterizations to the additive homomorphism operation of encrypted data and;m1Characterization first is in plain text;m2Characterize second plaintext;k1Characterize the first random number;k2Characterize the second random number.
In addition, homomorphic encryption algorithm can also be that Paillier homomorphic algorithms, user can be selected according to actual demandIt takes.
In addition, as a preferred embodiment, EC-ElGamal homomorphic encryption algorithms are specially EC-ElGamal addsMethod homomorphic encryption algorithm.
It is understood that due to carrying out the complexity of add operation in a computer compared to multiplying smaller, becauseBallot value is encrypted using EC-ElGamal additive homomorphisms Encryption Algorithm for this and the calculation amount smaller of summation operation, into oneStep improves operation efficiency.
In addition, as a preferred embodiment, the value of ballot value includes 0 and 1.
Wherein, when ballot value is 0, characterization ballot is intended to oppose, ballot is characterized when ballot value is 1 and is intended to agree with.
The value of ballot value includes 1 and 0, can more intuitively characterize the intention of ballot, and original voting results energyEnough directly corresponding with favorable ballot number of nodes, user can throw according to the more intuitive efficient understanding of original voting resultsThe ballot situation of ticket node.
Ballot is intended to the relationship between ballot value referring to following table:
| Ballot is intended to | It agrees with | Oppose |
| Ballot value | 1 | 0 |
Further, it is contemplated that ballot node can have the right of abstention ballot, ballot to be intended to include " abandoningPower ".In the case, the relationship that ballot is intended between ballot value is as shown in the table:
| Ballot is intended to | It agrees with | Oppose | Abstention |
| Ballot value | 1 | 0 | Null value |
But be emphasized that since ballot value when ballot is intended to " waive the right " is null value, carrying out homomorphismWhen summation operation, null value is identical as operation effect caused by " 0 " value.Further, user can be by judging ballot valueFor 0 value or null value, statistics ballot is intended to " to oppose " and the quantity of the node of voting of " abstention ".
In addition, as a preferred embodiment, ballot node is specially mobile terminal.
In view of there is very strong portability due to mobile terminal, ballot can be completed under several scenes.In addition,The cost of mobile terminal is relatively low, and user base number is larger, therefore may be implemented to vote on a large scale by mobile terminal, and realizesOverall cost needed for ballot is relatively low.
Embodiment three
A kind of embodiment under concrete application scene is provided below:
In order to make it easy to understand, the flow sequence diagram of the voting method based on block chain shown in please referring to Fig.3.
This application scene embodiment includes the following steps:
1, count of votes node generates a pair of EC-ElGamal encryption keys pair, and public encryption public key retains encryption key;
2, ballot node generates public and private key of signing using SM2/SM9/ECDSA
3, ballot node is encrypted ballot value using the EC-ElGamal encrypted public keys of count of votes node;
4, ballot node generates the abstract of complete vote information using SM3/SHA256 digest algorithms, and uses oneselfSM2/SM9/ECDSA signature private key is sent to after signing to it on block chain;
5, operation have the common recognition node of block chain intelligence contract to it is all by the encrypted ballots of EC-ElGamal be worth intoRow plus homomorphism calculate, and obtain the result of cryptogram computation;
6, count of votes node decryption add homomorphism calculate as a result, obtaining the statistical information of final poll;
7, count of votes node generates the abstract of statistical result using SM3/SHA256 digest algorithms,;
8, count of votes node is sent to after being signed to it using the SM2/SM9/ECDSA signature private key of oneself on block chain, intoAnd it is all with per family it can be seen that final voting results.
Example IV
Hereinbefore the embodiment of the voting method based on block chain is described in detail, the present invention also providesA kind of balloting device based on block chain corresponding with this method, due to the embodiment of the embodiment and method part of device partIt corresponds, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 4 is a kind of balloting device structure chart based on block chain provided in an embodiment of the present invention.The embodiment of the present invention carriesThe balloting device based on block chain supplied, including:
Acquisition module 10, for obtaining the ballot value that characterization ballot is intended in each ballot node.
Encrypting module 11, for the homomorphism public key that is generated by homomorphic encryption algorithm according to count of votes node, to each ballot be worth intoRow encryption is to generate secret value.
Computing module 12 is transmitted, has the common recognition node of block chain intelligence contract for each secret value to be transmitted to operation, andControl common recognition node carries out summation operation to each secret value, to obtain encrypted vote result;
Deciphering module 13, the homomorphism private key generated by homomorphic encryption algorithm for controlling count of votes node, to encrypted voteAs a result it is decrypted to obtain original voting results, and original voting results is recorded in by block chain by block chain intelligence contractIn, for each node publicity into block chain network.
Balloting device provided by the present invention based on block chain, obtains the ballot value of each ballot node, and then usesEach ballot value is encrypted as secret value by the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, and is transmitted to operation and has areaThe common recognition node of block chain intelligence contract, by know together node to each secret value carry out summation operation generate encrypted vote as a result, intoAnd it obtains the encrypted vote result of common recognition node using count of votes node and it is decrypted to obtain original throwing using homomorphism private keyOriginal voting results as a result, be finally recorded in by block chain intelligence contract in block chain, with into block chain network by ticketEach node publicity.The present apparatus ensures to decrypt the result of gained after carrying out operation to secret value and to throwing using homomorphic encryption algorithmThe result that ticket value directly carries out identical operation is identical, and then summation operation can be directly carried out in the form of secret value, ensure thatThe safety of operation.In addition, since common recognition node operation has block chain intelligence contract, common recognition node is by block chain networkOther nodes trusted, and then ensure the fairness of count of votes process;And in the present apparatus, each node of voting is all made of togetherState Encryption Algorithm carries out respective handling to ballot value, and since the execution content of homomorphic encryption algorithm is relatively easy, calculation amountIt is small, therefore ensure whole ballot efficiency relatively.
On the basis of example IV, which further includes:
Signature blocks, for controlling encryption of each ballot node by preset digest algorithm and signature private key to itselfValue carries out digest, obtains signed data.
Block chained record module records each signed data into block chain for passing through block chain intelligence contract.
Embodiment five
The present invention also provides a kind of ballot equipment based on block chain, including:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of above-mentioned voting method based on block chain.
Ballot equipment provided by the present invention based on block chain, obtains the ballot value of each ballot node, and then usesEach ballot value is encrypted as secret value by the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm, and is transmitted to operation and has areaThe common recognition node of block chain intelligence contract, by know together node to each secret value carry out summation operation generate encrypted vote as a result, intoAnd it obtains the encrypted vote result of common recognition node using count of votes node and it is decrypted to obtain original throwing using homomorphism private keyOriginal voting results as a result, be finally recorded in by block chain intelligence contract in block chain, with into block chain network by ticketEach node publicity.This equipment ensures to decrypt the result of gained after carrying out operation to secret value and to throwing using homomorphic encryption algorithmThe result that ticket value directly carries out identical operation is identical, and then summation operation can be directly carried out in the form of secret value, ensure thatThe safety of operation.In addition, since common recognition node operation has block chain intelligence contract, common recognition node is by block chain networkOther nodes trusted, and then ensure the fairness of count of votes process;And in this equipment, each node of voting is all made of togetherState Encryption Algorithm carries out respective handling to ballot value, and since the execution content of homomorphic encryption algorithm is relatively easy, calculation amountIt is small, therefore ensure whole ballot efficiency relatively.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage mediumSequence is realized when computer program is executed by processor such as the step of above-mentioned voting method based on block chain.
The computer readable storage medium of ballot provided by the present invention based on block chain obtains each ballot nodeBallot value, and then each ballot value is encrypted as by secret value using the homomorphism public key that count of votes node is generated by homomorphic encryption algorithm,And it is transmitted to the common recognition node for running and having block chain intelligence contract, by knowing together, node carries out summation operation generation to each secret valueEncrypted vote is as a result, obtaining the encrypted vote result of common recognition node using count of votes node in turn and being carried out to it using homomorphism private keyDecryption obtain original voting results, finally original voting results are recorded in by block chain intelligence contract in block chain, with toEach node publicity in block chain network.This computer readable storage medium use homomorphic encryption algorithm, ensure to secret value intoThe result of decryption gained is identical as the result of identical operation is directly carried out to ballot value after row operation, and then can be with secret valueForm directly carries out summation operation, ensure that the safety of operation.In addition, since common recognition node operation has block chain intelligently to closeAbout, therefore common recognition node is trusted by other nodes in block chain network, and then ensures the fairness of count of votes process;AndIn this computer readable storage medium, each node of voting is all made of homomorphic encryption algorithm and carries out respective handling to ballot value, andAnd since the execution content of homomorphic encryption algorithm is relatively easy, calculation amount is small, therefore ensure whole ballot efficiency relatively.
A kind of voting method, device, equipment and medium based on block chain provided by the present invention have been carried out in detail aboveIt is thin to introduce.Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realitiesApply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodimentSpeech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part illustration?.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, alsoCan be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection domain of the claims in the present inventionIt is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only thatA little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article orThe intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arrangedExcept there is also other identical elements in the process, method, article or apparatus that includes the element.