Summary of the invention
This specification embodiment is intended to provide a kind of scheme of unlocking account more effectively in block chain, existing to solve
Deficiency in technology.
To achieve the above object, this specification provides a kind of authentication information of deposit account in block chain on one side
Method, the block chain are alliance's chain, and the full node in alliance's chain is trusted node, and the method is by the in block chain
One account client executing, comprising:
The first transaction is sent to any full node, first transaction in block chain for being stored in the first account
Authentication information, it is described first transaction data field in include the authentication information, the authentication information be used for described first
First account is unlocked after account is locked, wherein the authentication information includes at least two authentication items.
In one embodiment, transaction of first transaction for the intelligent contract of calling first, the described first intelligent contract
For the intelligent contract for the authentication information for being stored in account disposed in advance in block chain.
In one embodiment, the authentication information include two authentication items, described two authentication items be it is following it is multinomial in
Any two: private key, password, cell-phone number, short message verification code.
In one embodiment, sending the first transaction to any full node includes the net provided by credible platform
It closes to any full node and sends the first transaction, wherein the gateway and the block chain link.
On the other hand this specification provides a kind of method of authentication information that account is stored in block chain, the block chain
For alliance's chain, the full node in alliance's chain is trusted node, and the method is executed by the full node in block chain, comprising:
The first transaction initiated by the first account is received from block chain, first transaction in block chain for being stored in
The authentication information of first account includes the authentication information in the data field of first transaction, and the authentication information is used for
First account is unlocked after first account is locked, wherein the authentication information includes at least two authentication items;
And
Based on first transaction, in the authentication information for being locally stored in first account.
In one embodiment, transaction of first transaction for the intelligent contract of calling first, the described first intelligent contract
For the intelligent contract for the authentication information for being stored in account disposed in advance in block chain, wherein based on first transaction, In
The local authentication information for being stored in first account includes, by be performed locally described first intelligent contract and by the certification
Under the first account in the local State Tree of information deposit.
On the other hand this specification provides a kind of method of unlocking account in block chain, the block chain is alliance's chain,
Full node in alliance's chain is trusted node, and the full node is locally previously stored with the authentication information of the first account,
In, the authentication information includes at least two authentication items, and the current state of first account is lock state, the method by
First account client executing, comprising:
The second transaction is sent to any full node, second transaction in block chain for unlocking first account
Family, it is described second transaction data field in include the authentication information.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain.
On the other hand this specification provides a kind of method of unlocking account in block chain, the block chain is alliance's chain,
Full node in alliance's chain is trusted node, and the full node is locally previously stored with the authentication information of the first account,
In, the authentication information includes at least two authentication items, and the current state of first account is lock state, the method by
Full node in block chain executes, comprising:
The second transaction initiated by the first account is received from block chain, second transaction in block chain for unlocking
First account;
From the local authentication information for obtaining first account;
Whether based on the authentication information, verifying in second transaction includes the authentication information;And
In the case where being verified, the unlock to the first account is locally being carried out.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain, wherein locally carrying out the unlock packet to the first account
It includes, the unlock to the first account is carried out and being performed locally the second intelligence contract.
In one embodiment, the authentication information is stored in the local State Tree of the full node, wherein from this
The authentication information that ground obtains first account includes the authentication information that first account is obtained from local State Tree.
On the other hand this specification provides a kind of device of authentication information that account is stored in block chain, the block chain
For alliance's chain, the full node in alliance's chain is trusted node, and described device is deployed in the first account client in block chain
End, comprising:
Unit is initiated in transaction, is configured to, and sends the first transaction to any full node, first transaction is in area
It is stored in the authentication information of the first account in block chain, includes the authentication information in the data field of first transaction, it is described to recognize
Card information is used to unlock first account after first account is locked, wherein the authentication information includes at least
Two authentication items.
In one embodiment, the transaction is initiated unit and is additionally configured to, and the gateway provided by credible platform is to any
The full node sends the first transaction, wherein the gateway and the block chain link.
On the other hand this specification provides a kind of device of authentication information that account is stored in block chain, the block chain
For alliance's chain, the full node in alliance's chain is trusted node, and described device is deployed in the full node in block chain, comprising:
Receiving unit is configured to, and the first transaction initiated by the first account is received from block chain, and first transaction is used
It include the authentication information in the authentication information for being stored in the first account in block chain, the data field of first transaction,
The authentication information is used to unlock first account after first account is locked, wherein the authentication information packet
Include at least two authentication items;And
It is stored in unit, is configured to, based on first transaction, in the authentication information for being locally stored in first account.
In one embodiment, transaction of first transaction for the intelligent contract of calling first, the described first intelligent contract
For the intelligent contract for the authentication information for being stored in account disposed in advance in block chain, wherein the deposit unit also configures
For the first account in State Tree that the authentication information is stored in local and being performed locally the first intelligence contract
Under.
On the other hand this specification provides a kind of device of unlocking account in block chain, the block chain is alliance's chain,
Full node in alliance's chain is trusted node, and the full node is locally previously stored with the authentication information of the first account,
In, the authentication information includes at least two authentication items, and the current state of first account is lock state, described device portion
It is deployed on the first account client, comprising:
Unit is initiated in transaction, is configured to, and sends the second transaction to any full node, second transaction is in area
First account is unlocked in block chain, includes the authentication information in the data field of second transaction.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain.
On the other hand this specification provides a kind of device of unlocking account in block chain, the block chain is alliance's chain,
Full node in alliance's chain is trusted node, and the full node is locally previously stored with the authentication information of the first account,
In, the authentication information includes at least two authentication items, and the current state of first account is lock state, described device portion
The full node being deployed in block chain, comprising:
Receiving unit is configured to, and the second transaction initiated by the first account is received from block chain, and second transaction is used
In unlocking first account in block chain;
Acquiring unit is configured to, from the local authentication information for obtaining first account;
Authentication unit is configured to, and is based on the authentication information, and whether verify in second transaction includes that the certification is believed
Breath;And
Unlocking unit is configured to, and in the case where being verified, is locally carrying out the unlock to the first account.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain, wherein the unlocking unit is additionally configured to, by this
Ground executes the described second intelligent contract and carries out the unlock to the first account.
In one embodiment, the authentication information is stored in the local State Tree of the full node, wherein described
Acquiring unit is additionally configured to, and the authentication information of first account is obtained from local State Tree.
On the other hand this specification provides a kind of computer readable storage medium, be stored thereon with computer program, work as institute
When stating computer program and executing in a computer, computer is enabled to execute any of the above-described method.
On the other hand this specification provides a kind of calculating equipment, including memory and processor, which is characterized in that described to deposit
It is stored with executable code in reservoir, when the processor executes the executable code, realizes any of the above-described method.
Compared to user in traditional block platform chain account freeze after can not thaw the problem of, this programme by using
More authentication items authentication modes are stored in the authentication information of its own setting by user in block chain in advance, so that user is needing
The account that can be carried out safe ready when thawing based on the authentication information, which is thawed, to be operated.Improve the availability of block platform chain.
Specific embodiment
This specification embodiment is described below in conjunction with attached drawing.
Fig. 1 shows the schematic diagram of the block catenary system 100 according to this specification embodiment.As shown in Figure 1, block catenary system
In 100 include alliance's chain 11, including 1 in figure, 2,3,4 four common recognition nodes (Quan Jiedian), in addition, also being wrapped in alliance's chain 11
Multiple user clients are included, these user clients possess account, private key and the public key of oneself, can be considered the light of the block chain
Node or its by gateway 12 carry out block chain in operation.As shown in the figure, the user client is for example including client
Hold A and customer end B.Wherein, customer end B is malicious client, such as may steal the account private key of customer end A, with into
Row illegal transaction activity.Gateway 12 is provided by credible platform, can be connect with full node any in block chain, so that user
Client can carry out various operations relevant to block chain by it, such as send transaction.Customer end A can be handed over by initiating first
Easily, its authentication information is stored in and in block chain.The account private key of customer end A is stolen in such as customer end B, thus in block chain
After the account of middle locking customer end A, customer end A can initiate the second transaction in the case where giving private key for change, so that in block
Its account is unlocked in chain.
It is appreciated that the description above with reference to Fig. 1 is only illustrative, it is not limited to the model of this specification embodiment
It encloses.The process of above-mentioned deposit authentication information and unlocking account is described more fully below.
Fig. 2 shows according to this specification embodiment it is a kind of in block chain be stored in account authentication information method flow
Figure, the block chain are alliance's chain, and the full node in alliance's chain is trusted node, and the method is by first in block chain
Account client executing, comprising:
Step S202 sends the first transaction to any full node, and first transaction in block chain for being stored in
The authentication information of first account includes the authentication information in the data field of first transaction, and the authentication information is used for
First account is unlocked after first account is locked, wherein the authentication information includes at least two authentication items.
As shown in fig. 1, for example including four full nodes in alliance's chain, this four full nodes are trusted node, local
All include the whole blocks and account data in block chain, can be used as common recognition node or the accounting nodes in block chain, structure
At the server-side of block chain, service is provided to the client of block platform chain.For example, alliance's chain is the alliance of financial system
Chain, thus, each full node of alliance's chain is each bank, financial institution etc., these banks, financial institution pass through block chain
Platform provides financial service jointly for user.In alliance's chain, transaction ensure that by the common recognition of each bank, financial institution
Information can not distort and safety, while the Transaction Information of user, personal information etc. are all stored at each credible full node,
To which the leakage of personal information will not be caused.
The user A of example as shown in figure 1 belongs to the user in the block chain, is made by client corresponding with its first account
With the service in block chain, which can be for example the light node in block chain, i.e., local not to be stored in block chain
Block, account information etc., alternatively, the gateway that the client can be provided by credible platform as shown in Figure 1 in block chain using mentioning
The service of confession.For example, the client can use the special services in block chain and sending transaction to any full node, or
Person, the client can send transaction to any full node by gateway.
In the method, in step S202, send the first transaction to any full node, first transaction for
It is stored in the authentication information of the first account in block chain, includes the authentication information in the data field of first transaction, it is described
Authentication information is used to unlock first account after first account is locked, wherein the authentication information includes extremely
Few two authentication items.
In one embodiment, transaction of first transaction for the intelligent contract of calling first, the described first intelligent contract
For the intelligent contract for the authentication information for being stored in account disposed in advance in block chain.It is for example wrapped in described first intelligent contract
Set1 () function is included, for the preset authentication information field of account to be arranged in the State Tree in block chain.When the first account
When initiating to call the first transaction of the first intelligent contract, the first transaction is for example as shown in figure 3, Fig. 3 shows showing for the first transaction
Meaning form, wherein the transmission field (From) in the first transaction is the first account, and receiving field (To) is the first intelligent contract
Contract account, data field (Data) is the calling to set1 () function in the first intelligent contract, such as { set1
(strings, strings), " 6f8ae ... ", " 186115 ... " }, wherein " 6f8ae ... " is, for example, the private key of the first account,
" 186115 ... " are, for example, cell-phone number, are two input parameters of set1 () function, in addition, first transaction includes passing through
The digital signature that the private key of first account generates.Any full node (such as node 1) of first account for example into Fig. 1 sends should
First transaction, node 1 is after receiving first transaction, and diffusion should in common recognition node after verifying to first transaction
First transaction.After determining accounting nodes by node of knowing together, the first intelligent contract is executed in accounting nodes, to pass through
It executes the first intelligent contract and sets above-mentioned for the authentication information field of the first account in the State Tree of accounting nodes local
Incoming parameter (i.e. private key and cell-phone number).
The authentication information for unlocking the first account when needed, although hereinbefore, authentication information include private key and
Cell-phone number, this specification embodiment are without being limited thereto.For example, can also include three, four authentication items etc. in authentication information, and
And the authentication items are not limited to private key and cell-phone number, and can be determined by user oneself, such as can be private key, preset close
Code, cell-phone number, any two in short message verification code or multinomial etc..By including at least two certifications in authentication information
, and at least two authentication items are determined by user itself, the difficulty that malicious user cracks the authentication information is increased, is improved
Safety.
Although being appreciated that the authentication information for being stored in account in State Tree automatically by intelligent contract here, this explanation
Book is without being limited thereto, for example, the Set function that the function of the described first intelligent contract includes can be done nothing, thus only
For transmitting the authentication information, so that the calling of the authentication information and the intelligence contract is stored into block together as transaction
In, with the lookup for subsequent authentication information.Or it can be by the rule set in advance, so that be based on should for the node in block chain
The intelligent contract account called in transaction determines that the transaction is the transaction for being stored in authentication information, thus in local State Tree
The middle preset authentication information field for updating the first account.
In one embodiment, first transaction is, for example, that the general transaction of any full node is sent to by the first account
(such as money transfer transactions), in the data field of the transaction, settable predetermined flag, with for identify the transaction for be stored in recognize
Information is demonstrate,proved, for example, include " deposit authentication information " text and authentication information itself in the data field of the transaction, thus, first
Account is by sending such first transaction to the second account, when the first transaction by common recognition after being stored into block,
That is, the first account incorporates the authentication information of the first account into block chain, the authentication information can by based on the first account and
" deposit authentication information " text carries out retrieval acquisition within a block.
Fig. 4 shows a kind of method flow of authentication information that account is stored in block chain according to this specification embodiment
Figure, the block chain are alliance's chain, and the full node in alliance's chain is trusted node, and the method is by the full section in block chain
Point executes, comprising:
Step S402 receives the first transaction initiated by the first account from block chain, and first transaction is in area
It is stored in the authentication information of the first account in block chain, includes the authentication information in the data field of first transaction, it is described to recognize
Card information is used to unlock first account after first account is locked, wherein the authentication information includes at least
Two authentication items;And
Step S404, based on first transaction, in the authentication information for being locally stored in first account.
This method is each full section after the first account client issues the first transaction to block chain, in block chain
It o'clock trades based on first and to be stored in the process of the authentication information of the first account into block chain.As described above, herein, to block chain
Middle deposit include be stored in into local State Tree, or into local block deposit, etc..
Firstly, receiving the first transaction initiated by the first account from block chain in step S402, first transaction is used
It include the authentication information in the authentication information for being stored in the first account in block chain, the data field of first transaction,
The authentication information is used to unlock first account after first account is locked, wherein the authentication information packet
Include at least two authentication items.
The full node is, for example, to pass through the determining accounting nodes of common recognition, can be any full node in block chain, such as
Node 1,2,3,4 in Fig. 1, the full node can receive first transaction from the first account client, or can be from other any
Full node receives first transaction.It is appreciated that the full node for executing this method is not limited to accounting nodes, for example, its
It can be the common recognition node of accounting nodes, by receiving the include in newly-generated block first transaction from accounting nodes, from
And receive first transaction.With reference to the description in step S202, which is, for example, to call the first intelligent contract above
Transaction.
In step S404, based on first transaction, in the authentication information for being locally stored in first account.
With reference to above to the description in step S202, in one embodiment, first transaction is the first intelligence of calling
The transaction of energy contract, the described first intelligent contract are the intelligence for the authentication information for being stored in account disposed in advance in block chain
Contract.To which the authentication information is stored in local by the full node automatically and being performed locally the first intelligence contract
State Tree in the first account under.Alternatively, the set function that the described first intelligent contract includes can be done nothing, only
For transmitting information, thus, which is based on pre-defined rule, You Quanjie by being performed locally the described first intelligent contract
Point itself will be under the first account in the local State Tree of authentication information deposit.
With reference to above to the description in step S202, in one embodiment, calibrated in first transaction including pre-
Will (such as the account of the first intelligent contract, or " deposit authentication information " text), be used to indicate first transaction for for
The transaction of authentication information is stored in block chain.Such as after accounting nodes generate new block based on first transaction, by this
In the local block data library of block deposit, and the block is spread to other full nodes, thus in the new block of block chain
The authentication information of the first account of middle deposit.
Fig. 5 shows a kind of method flow diagram of unlocking account in block chain according to this specification embodiment, the area
Block chain is alliance's chain, and the full node in alliance's chain is trusted node, and the full node is locally previously stored with the first account
Authentication information, wherein the authentication information includes at least two authentication items, and the current state of first account is locking shape
State, the method is by the first account client executing, comprising:
Step S502 sends the second transaction to any full node, and second transaction in block chain for unlocking
First account, it is described second transaction data field in include the authentication information.
After executing method shown in Fig. 2 and Fig. 4 as described above, the certification letter of the first account has been incorporated in block chain
Breath.In this case, after locked due to the first account is lost or is stolen etc. private key, the first account is prohibited
Any transaction in addition to the second transaction is carried out, in the case where the first account gives private key for change, the first account can be by sending the
Two transaction carry out account unlock.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain.For example, including " UnLock () " in the second intelligent contract
Function is used in the case where determination meets predetermined condition, that is, include the case where authentication information in determining the second transaction
In, the lock state of destiny account is revised as normal condition in the State Tree in block chain.The calling that first account is initiated
The concrete form of second transaction of the second intelligent contract is similar with the form of the first transaction, also includes sending field, receiving word
Section and data field receive the contract account that field is the second intelligent contract, data field wherein sending field is the first account
For the calling to " UnLock () " function, such as { UnLock (strings, strings), " 6f8ae ... ", " 186115 ... " }.
As described above, " 6f8ae ... ", " 186115 ... " are respectively private key and cell-phone number, as two verification items.
It is appreciated that similarly, the described second intelligent contract is not limited to include above-mentioned UnLock function, to be somebody's turn to do by executing
Function and the state that account is modified in State Tree, in one embodiment, the UnLock function that the second intelligent contract includes can
To do nothing, it is only used for the information of transmitting the first account of unlock, so that executing in each node of block chain
The state of the first account is actively modified when the intelligence contract based on pre-defined rule.
In one embodiment, second transaction is, for example, that the general transaction of any full node is sent to by the first account
(such as money transfer transactions), in the data field of the transaction, settable predetermined flag, for identifying the transaction for unlocking account
Family, for example, the data field of the transaction includes " unlocking account " text and authentication information.To which the first account is by sending this
Second transaction of sample, when the second transaction by common recognition after being stored into block, that is, the first account is propagated into block chain
The information of first account of unlock.
Fig. 6 shows a kind of method flow diagram of unlocking account in block chain according to this specification embodiment, the area
Block chain is alliance's chain, and the full node in alliance's chain is trusted node, and the full node is locally previously stored with the first account
Authentication information, wherein the authentication information includes at least two authentication items, and the current state of first account is locking shape
State, the method are executed by the full node in block chain, comprising:
Step S602 receives the second transaction initiated by the first account from block chain, and second transaction is in area
First account is unlocked in block chain;
Step S604, from the local authentication information for obtaining first account;
Step S606 is based on the authentication information, and whether verify in second transaction includes the authentication information;And
Step S608 is locally carrying out the unlock to the first account in the case where being verified.
After the first account carries out method shown in Fig. 5, i.e., after initiating the second transaction into block chain, lead in block chain
The common recognition for crossing common recognition node generates accounting nodes, so that method shown in fig. 6 can be performed in accounting nodes and its common recognition node, it is described
Common recognition node all should be the full node in block chain, that is, local all includes whole blocks and account database, so as to based on number
The verifying to transaction is carried out according to the content in library.
Firstly, receiving the second transaction initiated by the first account from block chain in step S602, second transaction is used
In unlocking first account in block chain.
First account client, should after any full node that second transaction is sent in block chain as described above
Any full node is then by the second transaction diffusion to other full nodes.To, such as accounting nodes can be straight from the second account
The second transaction is received, or the second transaction can be received from other full nodes in block.
In step S604, from the local authentication information for obtaining first account.
As above be it is described, in one embodiment, the authentication information is stored in the local State Tree of the full node
In, wherein the authentication information from local acquisition first account includes that first account is obtained from local State Tree
Authentication information.
In one embodiment, the authentication information is stored in block, wherein obtains first account from local
Authentication information include that retrieval has the transaction (i.e. above-mentioned first of the first account and predetermined flag from local multiple blocks
Transaction), to obtain the authentication information of the first account.
The full node uses the public key pair of the first account after receiving second transaction and obtaining authentication information first
The digital signature of the transaction is verified, in addition, in such as ether mill, the full node also to the residual fuel of the first account into
Row verifying etc., is not listed one by one herein.
After carrying out above-mentioned conventional verifying, in one embodiment, second transaction is closed for the second intelligence of calling
Transaction about, so that the full node starts to execute above-mentioned the Unlock () function in the intelligence contract, thus by executing the letter
Number carries out following step S606-S608 automatically.It in one embodiment, as described above, include pre- in second transaction
Calibrate will, being used to indicate second transaction is transaction for unlocking account so that the full node locally execute it is following
Step S606-S608.
In step S606, it is based on the authentication information, whether verify in second transaction includes the authentication information.
After obtaining authentication information, can by by the authentication information with second transaction in include information compared with pair, from
Whether and determining in the second transaction includes the authentication information.For example, including private key and cell-phone number two in the authentication information
Authentication items, then the private key and cell-phone number that can be will acquire respectively with second transaction data field in include private key and cell-phone number into
Row compares, so that it is determined that whether the second transaction includes the authentication information.
In step S608, in the case where being verified, the unlock to the first account is locally being carried out.
In one embodiment, second transaction is the transaction of calling the second intelligent contract, as described above, described the
Two intelligent contracts are the intelligent contract for unlocking account disposed in advance in block chain, thus, accounting nodes pass through in local
It executes the described second intelligent contract and carries out the unlock to the first account, that is, by executing above-mentioned " UnLock () " function,
Step S606 is executed automatically to be revised as the lock state of the first account in local State Tree in the case where being verified
Normal condition.
In one embodiment, second transaction is general transaction, as described above, transmits and understands to accounting nodes
The information of the first account is locked, so that accounting nodes can be in the case where being verified by the lock of the first account in local State Tree
Determining status modifier is unlocked state.
Second transaction is bundled in block after modifying local State Tree and is sent to other full sections by accounting nodes
Point, so that the block is stored in block chain.Other nodes can be similarly based on after receiving the block including the second transaction
Second transaction modifies the state of the first account in local State Tree, to reach the data consistency of each full node.
Fig. 7 shows a kind of device 700 of authentication information that account is stored in block chain according to this specification embodiment,
The block chain is alliance's chain, and the full node in alliance's chain is trusted node, and described device is deployed in the in block chain
One account client, comprising:
Unit 71 is initiated in transaction, is configured to, and sends the first transaction to any full node, first transaction for
It is stored in the authentication information of the first account in block chain, includes the authentication information in the data field of first transaction, it is described
Authentication information is used to unlock first account after first account is locked, wherein the authentication information includes extremely
Few two authentication items.
In one embodiment, the transaction is initiated unit and is additionally configured to, and the gateway provided by credible platform is to any
The full node sends the first transaction, wherein the gateway and the block chain link.
Fig. 8 shows a kind of device 800 of authentication information that account is stored in block chain according to this specification embodiment,
The block chain is alliance's chain, and the full node in alliance's chain is trusted node, and described device is deployed in complete in block chain
Node, comprising:
Receiving unit 81, is configured to, and the first transaction initiated by the first account, first transaction are received from block chain
It include that the certification is believed in the data field of first transaction for being stored in the authentication information of the first account in block chain
Breath, the authentication information are used to unlock first account after first account is locked, wherein the authentication information
Including at least two authentication items;And
It is stored in unit 82, is configured to, based on first transaction, in the authentication information for being locally stored in first account.
In one embodiment, transaction of first transaction for the intelligent contract of calling first, the described first intelligent contract
For the intelligent contract for the authentication information for being stored in account disposed in advance in block chain, wherein the deposit unit 82 is also matched
It is set to, the first account in State Tree that the authentication information is stored in local and being performed locally the first intelligence contract
Under family.
Fig. 9 shows a kind of device 900 of unlocking account in block chain according to this specification embodiment, the block chain
For alliance's chain, the full node in alliance's chain is trusted node, and the full node is locally previously stored with recognizing for the first account
Demonstrate,prove information, wherein the authentication information includes at least two authentication items, and the current state of first account is lock state,
Described device is deployed in the first account client, comprising:
Unit 91 is initiated in transaction, is configured to, and sends the second transaction to any full node, second transaction for
First account is unlocked in block chain, includes the authentication information in the data field of second transaction.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain.
Figure 10 shows a kind of device 1000 of unlocking account in block chain according to this specification embodiment, the block
Chain is alliance's chain, and the full node in alliance's chain is trusted node, and the full node is locally previously stored with the first account
Authentication information, wherein the authentication information includes at least two authentication items, and the current state of first account is locking shape
State, described device are deployed in the full node in block chain, comprising:
Receiving unit 101, is configured to, and the second transaction initiated by the first account is received from block chain, described second hands over
It is easy for unlocking first account in block chain;
Acquiring unit 102, is configured to, from the local authentication information for obtaining first account;
Whether authentication unit 103, is configured to, and is based on the authentication information, verify in second transaction and recognize including described
Demonstrate,prove information;And
Unlocking unit 104, is configured to, and in the case where being verified, is locally carrying out the unlock to the first account.
In one embodiment, transaction of second transaction for the intelligent contract of calling second, the described second intelligent contract
For the intelligent contract for unlocking account disposed in advance in block chain, wherein the unlocking unit 104 is additionally configured to, and is passed through
It is performed locally the described second intelligent contract and carries out the unlock to the first account.
In one embodiment, the authentication information is stored in the local State Tree of the full node, wherein described
Acquiring unit 102 is additionally configured to, and the authentication information of first account is obtained from local State Tree.
On the other hand this specification provides a kind of computer readable storage medium, be stored thereon with computer program, work as institute
When stating computer program and executing in a computer, computer is enabled to execute any of the above-described method.
On the other hand this specification provides a kind of calculating equipment, including memory and processor, which is characterized in that described to deposit
It is stored with executable code in reservoir, when the processor executes the executable code, realizes any of the above-described method.
Compared to user in traditional block platform chain account freeze after can not thaw the problem of, this programme by using
More authentication items authentication modes are stored in the authentication information of its own setting by user in block chain in advance, so that user is needing
The account that can be carried out safe ready when thawing based on the authentication information, which is thawed, to be operated.Improve the availability of block platform chain.
It is to be understood that herein " first ", the description such as " second ", it is for illustration only simple and to similar concept into
Row is distinguished, and does not have other restriction effects.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
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.
Those of ordinary skill in the art should further appreciate that, describe in conjunction with the embodiments described herein
Each exemplary unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clear
Illustrate to Chu the interchangeability of hardware and software, generally describes each exemplary group according to function in the above description
At and step.These functions hold track actually with hardware or software mode, depending on technical solution specific application and set
Count constraint condition.Those of ordinary skill in the art can realize each specific application using distinct methods described
Function, but this realization is it is not considered that exceed scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can hold track with hardware, processor
Software module or the combination of the two implement.Software module can be placed in random access memory (RAM), memory, read-only storage
Device (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology neck
In any other form of storage medium well known in domain.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.