CN106778329B - Block chain intelligent contract template dynamic updating method, device and system - Google Patents

Block chain intelligent contract template dynamic updating method, device and system Download PDF

Info

Publication number
CN106778329B
CN106778329B CN201611075412.7A CN201611075412A CN106778329B CN 106778329 B CN106778329 B CN 106778329B CN 201611075412 A CN201611075412 A CN 201611075412A CN 106778329 B CN106778329 B CN 106778329B
Authority
CN
China
Prior art keywords
intelligent contract
contract template
block chain
template
nodes
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.)
Active
Application number
CN201611075412.7A
Other languages
Chinese (zh)
Other versions
CN106778329A (en
Inventor
商建祥
王继武
张国华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201611075412.7A priority Critical patent/CN106778329B/en
Publication of CN106778329A publication Critical patent/CN106778329A/en
Application granted granted Critical
Publication of CN106778329B publication Critical patent/CN106778329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for dynamically updating a block chain intelligent contract template. In order to solve the problem of huge change cost of an intelligent contract template of a block chain technology in the prior art, the provided method comprises the steps of signing the intelligent contract template, wherein the intelligent contract template comprises intelligent contract template data and change operation; broadcasting the intelligent contract template in a blockchain. And after receiving the intelligent contract template, the accounting node updates the local intelligent contract template library. The purpose of safely and dynamically updating the intelligent contract template in the block chain is achieved, so that the whole block chain becomes more flexible to adapt to complex and variable business requirements.

Description

Block chain intelligent contract template dynamic updating method, device and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for dynamically updating a block chain intelligent contract template.
Background
The intelligent contract is regarded as one of the most vital technologies in the blockchain technology, the execution progress of the business rules approved by both parties is solidified in the blockchain through the intelligent contract, the execution state is automatically executed and recorded in the transaction life cycle, disputes and cheats are avoided, the trust cost is reduced, and the transaction automation level is improved. However, because the writing of the intelligent contract requires high skills, the issuing of an intelligent contract with service rule loopholes or unfair causes huge loss to transaction participants. The problem can be avoided by specifying the normalized intelligent contract template in advance, but if the intelligent contract template realized by the traditional mode is changed, all the participating nodes are required to carry out consensus logic change and node version upgrading, and the maintenance is difficult. For example, the bitcoin supports 5 standard intelligent contract templates, and transactions not belonging to the 5 intelligent contracts are all considered as illegal, but the 5 intelligent contract templates are solidified in node verification logic as codes, if the 5 intelligent contracts need to be changed, a full network vote needs to be initiated, all nodes need to update local codes, and the cost is huge. As another example, Etherhouse networks do not support intelligent contract template verification, and relaxed intelligent contracts incur significant losses, such as those used by THE THE DAO project, which results in losses in excess of $ 6000 million.
Disclosure of Invention
In order to solve the problem that the intelligent contract template change cost of the block chain technology in the prior art is huge, a method, a device and a system for dynamically updating the block chain intelligent contract template are provided, and the intelligent contract template of the nodes in the block chain can be safely updated at a low cost.
The embodiment of the invention provides a dynamic updating method of a block chain intelligent contract template, which comprises the following steps,
signing an intelligent contract template, wherein the intelligent contract template comprises intelligent contract template data and change operation;
broadcasting the intelligent contract template in a blockchain.
The embodiment of the invention also provides a dynamic updating method of the block chain intelligent contract template, which comprises the following steps,
receiving an intelligent contract template;
verifying the intelligent contract template;
and after the verification is passed, updating a local intelligent contract template library according to the change operation of the intelligent contract template.
The embodiment of the present invention further provides a privileged node device, including,
the intelligent contract signing device comprises a signing unit, a processing unit and a processing unit, wherein the signing unit is used for signing an intelligent contract template, and the intelligent contract template comprises intelligent contract template data and change operation;
a communication unit for broadcasting the intelligent contract template in a blockchain.
The embodiment of the invention also provides a billing node device, which comprises,
the communication unit is used for receiving the intelligent contract template;
the verification unit is used for verifying the intelligent contract template;
and the updating unit is used for updating the local intelligent contract template library according to the change operation of the intelligent contract template after the verification is passed.
The embodiment of the invention also provides a dynamic updating system of the block chain intelligent contract template, which comprises,
one or more privileged nodes, configured to sign an intelligent contract template, where the intelligent contract template includes intelligent contract template data and change operations, and the intelligent contract template is broadcast in a block chain;
and the plurality of accounting nodes are used for receiving the intelligent contract template, verifying the intelligent contract template, and updating a local intelligent contract template library according to the change operation of the intelligent contract template after the verification is passed.
According to the technical scheme provided by the embodiment of the application, the nodes in the existing block chain are divided into the privileged nodes and the accounting nodes, so that the purpose of safely and dynamically updating the intelligent contract template in the block chain is realized, the whole block chain becomes more flexible, and the method and the system are suitable for complicated and variable service requirements.
Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart illustrating a method for dynamically updating a block chain intelligent contract template according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for dynamically updating a block chain intelligent contract template according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a privileged node apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an accounting node device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a block chain intelligent contract template dynamic update system according to the present application;
fig. 6 is a flowchart illustrating a method for dynamically adding a block chain intelligent contract template according to an embodiment of the present disclosure;
FIG. 7 is a system block diagram according to an embodiment of the present disclosure;
fig. 8 is a specific flowchart illustrating a method for dynamically deleting a block chain intelligent contract template according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of a method for dynamically updating a blockchain intelligent contract template according to an embodiment of the present invention, where a method for dynamically updating an intelligent contract template in a node in a blockchain technology is described in this diagram, and the method is configured by dividing nodes in a blockchain into privileged nodes and billing nodes, where the method for a privileged node specifically includes:
101, signing an intelligent contract template, wherein the intelligent contract template comprises intelligent contract template data and change operation;
step 102, broadcasting the intelligent contract template in a block chain.
According to an embodiment of the present application, the privileged node and the accounting node are both nodes in a blockchain, each node may be a privileged node or an accounting node, and each node can complete functions completed by nodes in an existing blockchain, such as a transaction initiating function, an inquiry function, an accounting function, and the like; the privilege node may also be a reliable node authenticated by an authority organization, and the privilege node has a permission to enable the changed intelligent contract template to pass the audit or to enable the audit to refuse to be broadcast to the block chain, where the privilege node signs the changed intelligent contract template after the audit passes to indicate that the changed intelligent contract template is broadcast after the audit passes through the privilege node, and refuses to sign the intelligent contract template if the changed intelligent contract template does not pass the audit, so that the problematic intelligent contract template can be prevented from being broadcast to the block chain.
In the existing block chain technology, each node may be a personal computer or a computer cluster with computing and storing functions, or a large, medium, or small computer, or even any personal terminal with certain computing and storing capabilities, such as a tablet computer, a mobile phone, and the like.
According to one embodiment of the application, the change operation of the intelligent contract template at least comprises adding, deleting, modifying and the like.
According to an embodiment of the present application, the intelligent contract template has a flag bit, and the flag bit is used for marking the above change operation, for example, the flag bit is 0, which indicates an operation of adding an intelligent contract template, the flag bit is 1, which indicates an operation of deleting the intelligent contract template, and the flag bit is 2, which indicates an operation of modifying the intelligent contract template, or other possible marking manners to mark the operation manner of the intelligent contract after the change.
By the method, the nodes in the block chain are divided into the privileged nodes and the accounting nodes, and the privileged nodes have the functions of signing the intelligent contract template and broadcasting the intelligent contract template into the block chain, so that the purpose of safely and dynamically updating the intelligent contract template in the block chain is realized, the whole block chain becomes more flexible, and the method is suitable for complicated and variable service requirements.
Fig. 2 is a flowchart of a method for dynamically updating a block chain intelligent contract template according to an embodiment of the present application, where a process that a billing node verifies an intelligent contract template signed by a privileged node in a block chain and updates a local intelligent contract template library according to a change operation is described in the present diagram, and in the process, an object of dynamically updating the intelligent contract template is achieved, where the method in the billing node specifically includes:
step 201, receiving an intelligent contract template;
step 202, verifying the intelligent contract template;
and 203, after the verification is passed, the accounting node updates a local intelligent contract template library according to the change operation of the intelligent contract template.
The verification of the intelligent contract template comprises that the intelligent contract template belongs to a transaction type broadcasted by a privileged node, and when the verification is carried out, besides the verification of whether the transaction meets the preset requirements, the verification of whether the format, the data structure and the like of the intelligent contract transaction template meet the preset requirements and the verification of whether the transaction passes the signature of the privileged node are required.
According to one embodiment of the application, the change operation of the intelligent contract template at least comprises adding, deleting, modifying and the like.
According to an embodiment of the present application, verifying the intelligent contract template further includes verifying according to a signature of the intelligent contract template, and if the signature is legal, the intelligent contract template passes verification, otherwise, the intelligent contract template is discarded.
According to an embodiment of the present application, updating a local intelligent contract template library according to the change operation of the intelligent contract template further comprises:
if the change operation of the intelligent contract template is newly increased, adding the intelligent contract template into the intelligent contract template library;
if the change operation of the intelligent contract template is deletion, deleting the corresponding intelligent contract template in the intelligent contract template library;
and if the change operation of the intelligent contract template is modification, modifying the corresponding intelligent contract template in the intelligent contract template library.
According to an embodiment of the application, after updating the local intelligent contract template library according to the change operation of the intelligent contract template, the method further includes that the accounting node receives the intelligent contract transaction, matches the intelligent contract transaction in the intelligent contract template library, processes the intelligent contract transaction and logs in a block chain through consensus if the matching is successful, and discards the intelligent contract transaction if the matching is not successful.
The intelligent contract transactions refer to all transactions created by intelligent contracts conforming to intelligent contract templates and at least comprise intelligent contract creators, intelligent contract contents and intelligent contract creators signatures.
According to the method, the nodes in the block chain are divided into the privilege nodes and the accounting nodes, and the function of updating the local intelligent contract template base according to the intelligent contract template in the broadcast is added into the accounting nodes, so that the purpose of safely and dynamically updating the intelligent contract template in the block chain is achieved, the whole block chain becomes more flexible, and the method is suitable for complex and changeable service requirements.
Fig. 3 is a schematic structural diagram of a privileged node apparatus according to an embodiment of the present application, where a functional structure of a privileged node is described in the diagram, and an intelligent contract template in a block chain may be dynamically updated, where the apparatus specifically includes:
a signature unit 301, configured to sign an intelligent contract template, where the intelligent contract template includes intelligent contract template data and a change operation;
a communication unit 302, configured to broadcast the intelligent contract template in a blockchain.
By dividing the nodes in the block chain into the privileged nodes and the accounting nodes, the privileged nodes have the functions of signing the intelligent contract template and broadcasting the intelligent contract template into the block chain, the purpose of dynamically updating the intelligent contract template safely in the block chain is realized, and the whole block chain becomes more flexible to adapt to complicated and variable service requirements.
Fig. 4 is a schematic structural diagram of an accounting node apparatus according to an embodiment of the present application, where a functional structure of an accounting node is described in this diagram, and an intelligent contract template in a block chain may be dynamically updated, where the apparatus specifically includes:
a communication unit 401, configured to receive the intelligent contract template;
a verification unit 402, which verifies the intelligent contract template;
and an updating unit 403, after the verification is passed, updating the local intelligent contract template library according to the change operation of the intelligent contract template.
According to an embodiment of the application, the verification unit is further configured to perform verification according to a signature of the intelligent contract template, and if the signature is legal, the intelligent contract template passes verification, otherwise, the intelligent contract template is discarded.
According to an embodiment of the application, the updating unit is further configured to add the intelligent contract template into the intelligent contract template library if the change operation of the intelligent contract template is newly increased;
if the change operation of the intelligent contract template is deletion, deleting the corresponding intelligent contract template in the intelligent contract template library;
and if the change operation of the intelligent contract template is modification, modifying the corresponding intelligent contract template in the intelligent contract template library.
According to an embodiment of the present application, the system further includes a processing unit 404, configured to match the intelligent contract transaction received by the communication unit with an intelligent contract template in the intelligent contract template library, and if the matching is successful, process the intelligent contract transaction and post the intelligent contract transaction in a block chain through a consensus, otherwise, discard the intelligent contract transaction.
By dividing the nodes in the block chain into privilege nodes and accounting nodes, the accounting nodes have the function of updating the local intelligent contract template base according to the intelligent contract template in the broadcast, the purpose of safely and dynamically updating the intelligent contract template in the block chain is realized, so that the whole block chain becomes more flexible to adapt to complicated and variable service requirements.
Fig. 5 is a schematic structural diagram of a system for dynamically updating a blockchain intelligent contract template according to the present invention, where a blockchain composed of privileged nodes and billing nodes is described in the present figure, and a dynamically updated intelligent contract template can be implemented in the blockchain, where the system specifically includes:
one or more privileged nodes 501 configured to sign an intelligent contract template, where the intelligent contract template includes intelligent contract template data and change operations, and the intelligent contract template is broadcast in a block chain;
and the plurality of accounting nodes 502 are used for receiving the intelligent contract template, verifying the intelligent contract template, and updating a local intelligent contract template library according to the change operation of the intelligent contract template after the verification is passed.
Through the system, the nodes in the existing block chain are divided into the privileged nodes and the accounting nodes, so that the purpose of dynamically updating the intelligent contract template in the block chain is realized, the whole block chain becomes more flexible, and the system is suitable for the complicated and changeable service requirements.
Fig. 6 is a specific flowchart of a method for dynamically adding a blockchain intelligent contract template according to an embodiment of the present invention, where the method for dynamically adding an intelligent contract template in a blockchain includes a system structure shown in fig. 7, where a transaction terminal initiates an intelligent contract, and a privileged node broadcasts an intelligent contract template to the blockchain.
Step 601, the privileged node audits the intelligent contract template to be issued.
In this step, the initiator of the intelligent contract template may be a server of a financial institution, the initiator intends to add a new intelligent contract template to the block chain, the auditing of the privileged node to the intelligent contract template includes checking whether a data segment in the intelligent contract template meets requirements in a data structure manner, or checking whether the intelligent contract template has a bug in a manual checking manner, and this auditing process may also electronize a manual auditing process to achieve the purpose of auditing the intelligent contract template.
And step 602, setting a flag bit of the intelligent contract template which passes the auditing.
In this embodiment, the flag bit is set to 0, which indicates that the change operation of the intelligent contract template is a new addition, that is, the intelligent contract template in the block chain is added, and of course, the setting of the flag bit may be modified by a prior agreement.
Step 603, the privileged node digitally signs the intelligent contract template.
In this step, the effect of the above-mentioned digital signature can also be achieved by other means in the prior art, so that the "signature" in the document of the present invention proves that the intelligent contract template is approved by the privileged node, and is not a limitation to a specific proving process by using a certain technical means.
The intelligent contract template comprises the content data and the flag bit of the template, and possibly other necessary information.
In this step, the intelligent contract template can be encrypted, so that the security in the network transmission process is further improved.
Step 604, broadcasting the intelligent contract template to the blockchain.
In this step, the privileged node may broadcast the issue of the intelligent contract template as a transaction in the block chain, and set a special identifier or type identifier for the transaction, so that after receiving the transaction, other accounting nodes can recognize that the transaction is a service updated by the intelligent contract template, rather than a normal transaction service. The broadcast may be implemented by using a transaction broadcast technology in the existing block chain, and is not described herein again.
Step 605, the billing node receives the broadcast of the intelligent contract template of the privileged node.
And 606, verifying the received intelligent contract template by the accounting node.
In this step, the accounting node verifies the digital signature of the intelligent contract template, if the verification is passed, the intelligent contract template is sent by the privileged node and is credible, otherwise, the intelligent contract template is directly discarded.
And step 607, the accounting node acquires the zone bit of the intelligent contract template to obtain the change operation.
In this step, the obtained flag bit is a new addition operation.
And 608, recording the verified intelligent contract template into a block according to the change operation.
In the step, the accounting node stores the intelligent contract template into a local intelligent contract template library.
And step 609, a certain transaction terminal sends out the intelligent contract transaction to the accounting node.
In this step, the intelligent contract transaction is an intelligent contract generated according to a certain intelligent contract template, or the intelligent contract in the intelligent contract transaction is generated privately at all and is not generated according to any intelligent contract template (i.e. the intelligent contract is illegal).
In step 610, a certain accounting node receives the intelligent contract transaction and performs corresponding verification.
In this step, the accounting node may check the smart contract transaction in a similar manner as the existing block chain.
Step 611, the accounting node matches the intelligent contracts in the intelligent contract transactions in the local intelligent contract template base.
In this step, keywords of the intelligent contract can be extracted, the keywords are matched with all intelligent contract templates in the intelligent contract template library, and if the number of the keywords is the same and exceeds a threshold value, the matching is considered to be successful; or comparing the field data structures in the intelligent contract with the field data structures in all the intelligent contract templates in the intelligent contract template library, and when the same proportion of the field data structures exceeds a threshold value, determining that the matching is successful; or other document matching methods can be adopted for matching, and if the documents are not matched (namely the situation that the intelligent contract is illegal), the intelligent contract transaction is discarded.
Step 612, when the intelligent contract transaction is successfully matched with one intelligent contract template in the intelligent contract template library, processing the intelligent contract transaction.
In this step, if the matching is successful, the intelligent contract transaction is processed as a node in the blockchain in the prior art, and the processing comprises the steps of calculating, processing data, storing transaction records, broadcasting the transaction records to other accounting nodes and the like.
Fig. 8 is a specific flowchart of a method for dynamically deleting an intelligent contract template in a blockchain according to an embodiment of the present application, where the method for dynamically deleting an intelligent contract template in a blockchain is described.
Step 801, the privileged node audits the intelligent contract template to be issued.
In this step, the initiator of the intelligent contract template may be a server of a financial institution, the initiator intends to add a new intelligent contract template to the block chain, the auditing of the privileged node to the intelligent contract template includes checking whether a data segment in the intelligent contract template meets requirements in a data structure manner, or checking whether the intelligent contract template has a bug in a manual checking manner, and this auditing process may also electronize a manual auditing process to achieve the purpose of auditing the intelligent contract template.
And step 802, setting a flag bit in the approved intelligent contract template.
In this embodiment, the flag bit is set to 1, which indicates that the change operation of the intelligent contract template is deleting, that is, deleting the intelligent contract template in the block chain.
At step 803, the privileged node encrypts the intelligent contract template.
In this step, the above-mentioned encryption effect can also be achieved by other means in the prior art, so that the "signature" proves that the intelligent contract template is approved by the privileged node in the document of the present invention, and is not a limitation to a specific proving process by using a certain technical means.
And step 804, broadcasting the intelligent contract template to a block chain.
In this step, the privileged node may broadcast the issue of the intelligent contract template as a transaction in the block chain, and set a special identifier or type identifier for the transaction, so that after receiving the transaction, other accounting nodes can recognize that the transaction is a service for updating the intelligent contract template, rather than a common intelligent contract transaction service. The broadcast may be implemented by using a transaction broadcast technology in the existing block chain, and is not described herein again.
At step 805, the billing node receives a broadcast of the intelligent contract template for the privileged node.
And 806, verifying the received intelligent contract template by the accounting node.
In this step, the accounting node decrypts the intelligent contract template by using the preset key, if the decryption is successful, the intelligent contract template is sent by the privileged node and is credible, otherwise, the intelligent contract template is directly discarded.
And step 807, the accounting node acquires the zone bit of the intelligent contract template to obtain the change operation.
In this step, the acquired flag bit is a delete operation.
And 808, deleting the intelligent contract template matched with the decrypted intelligent contract template in the intelligent contract template library according to the change operation.
In the step, the accounting node searches for the intelligent contract template which is the same as the intelligent contract template to be deleted in the intelligent contract template library, deletes the intelligent contract template from the intelligent contract template library after the intelligent contract template is found, and stops matching if the intelligent contract template is not found.
The matching means may adopt a character string matching mode, a semantic recognition mode for matching, or other modes.
In other embodiments, if the flag bit of the intelligent contract template is modified, the bookkeeping node matches a corresponding intelligent contract template in a local intelligent contract template library, and then replaces the intelligent contract template in the intelligent contract template library according to the received intelligent contract template, or modifies the intelligent contract template in the intelligent contract template library according to the received intelligent contract template.
And step 809, sending the intelligent contract transaction to the accounting node by a certain transaction terminal.
In this step, the intelligent contract transaction is an intelligent contract generated according to a certain intelligent contract template, or the intelligent contract in the intelligent contract transaction is generated privately at all and is not generated according to any intelligent contract template (i.e. the intelligent contract is illegal).
In step 810, a certain accounting node receives the intelligent contract transaction and performs corresponding verification.
In this step, the accounting node may check the smart contract transaction in a similar manner as the existing block chain.
Step 811, the accounting node matches the intelligent contracts in the intelligent contract deals in the local intelligent contract template base.
In this step, keywords of the intelligent contract can be extracted, the keywords are matched with all intelligent contract templates in the intelligent contract template library, and if the number of the keywords is the same and exceeds a threshold value, the matching is considered to be successful; or comparing the field data structures in the intelligent contract with the field data structures in all the intelligent contract templates in the intelligent contract template library, and when the same proportion of the field data structures exceeds a threshold value, determining that the matching is successful; or other document matching methods can be adopted for matching, and if the documents are not matched (namely the situation that the intelligent contract is illegal), the intelligent contract transaction is discarded.
And 812, when the intelligent contract transaction is successfully matched with one intelligent contract template in the intelligent contract template library, processing the intelligent contract transaction.
In this step, if the matching is successful, the intelligent contract transaction is processed as a node in the blockchain in the prior art, and the processing comprises the steps of calculating, processing data, storing transaction records, broadcasting the transaction records to other accounting nodes and the like.
By the method and the device in the embodiment of the application, the nodes in the block chain are divided into the privileged nodes and the accounting nodes, the privileged nodes have the functions of signing the intelligent contract template and broadcasting the intelligent contract template into the block chain, and the accounting nodes are added with the function of updating the local intelligent contract template base according to the intelligent contract template in the broadcast, so that the purpose of safely and dynamically updating the intelligent contract template in the block chain is realized, the whole block chain becomes more flexible, and the method and the device are suitable for complicated and changeable service requirements.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (3)

1. A dynamic update method for a blockchain intelligent contract template is applied to a privileged node in a blockchain, wherein the privileged node is a reliable node after being authenticated by an authority organization, and the dynamic update method for the blockchain intelligent contract template comprises the following steps:
dividing nodes in the block chain into privilege nodes and accounting nodes, wherein the privilege nodes have the authority of enabling the changed intelligent contract template to pass the audit or enabling the changed intelligent contract template to refuse the audit to be broadcast to the block chain;
auditing the intelligent contract template to be issued by using the privileged node;
setting a flag bit of the intelligent contract template which passes the auditing so as to mark the changed operation type;
signing the changed intelligent contract template after the changed intelligent contract template is approved by using the privileged node, wherein the intelligent contract template comprises intelligent contract template data and change operation;
broadcasting the intelligent contract template in a blockchain.
2. The method of claim 1, wherein the change operation of the intelligent contract template comprises at least one of adding, deleting, or modifying.
3. A dynamic update system of intelligent contract template of block chain is characterized in that,
one or more privilege nodes which are reliable nodes authenticated by an authority organization and have the authority for enabling the changed intelligent contract template to pass the audit or enabling the audit to refuse to be broadcast to the block chain; the privilege node audits an intelligent contract template to be issued, a flag bit of the intelligent contract template which passes the audit is set, the changed operation type is marked, the changed intelligent contract template is signed after the audit of the intelligent contract template passes, wherein the intelligent contract template comprises intelligent contract template data and change operation, and the intelligent contract template is broadcasted in a block chain;
and the plurality of accounting nodes are used for receiving the intelligent contract template, verifying the intelligent contract template, and updating a local intelligent contract template library according to the change operation of the intelligent contract template after the verification is passed.
CN201611075412.7A 2016-11-28 2016-11-28 Block chain intelligent contract template dynamic updating method, device and system Active CN106778329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611075412.7A CN106778329B (en) 2016-11-28 2016-11-28 Block chain intelligent contract template dynamic updating method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611075412.7A CN106778329B (en) 2016-11-28 2016-11-28 Block chain intelligent contract template dynamic updating method, device and system

Publications (2)

Publication Number Publication Date
CN106778329A CN106778329A (en) 2017-05-31
CN106778329B true CN106778329B (en) 2020-12-04

Family

ID=58900773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611075412.7A Active CN106778329B (en) 2016-11-28 2016-11-28 Block chain intelligent contract template dynamic updating method, device and system

Country Status (1)

Country Link
CN (1) CN106778329B (en)

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107425982B (en) * 2017-07-07 2020-05-12 众安信息技术服务有限公司 Method and block chain for realizing intelligent contract data encryption
CN107464148A (en) * 2017-08-23 2017-12-12 众安信息技术服务有限公司 A kind of intelligent contract upgrade method and system based on alliance's chain
CN107844710B (en) * 2017-09-26 2020-07-17 浙江大学 Contract generating system and generating method
CN107846278B (en) * 2017-10-30 2020-02-14 中国联合网络通信集团有限公司 Intelligent contract processing method and device
CN107807991B (en) * 2017-11-07 2020-05-12 泰康保险集团股份有限公司 Method and apparatus for processing blockchain data
US10833844B2 (en) * 2017-12-20 2020-11-10 International Business Machines Corporation Blockchain lifecycle management
CN109962779A (en) * 2017-12-22 2019-07-02 中国电信股份有限公司 The methods, devices and systems updated for realizing contract
CN110400217B (en) * 2018-04-25 2022-07-01 中国移动通信集团广东有限公司 Rule change processing method and device for intelligent contract
CN108848058A (en) * 2018-05-07 2018-11-20 众安信息技术服务有限公司 Intelligent contract processing method and block catenary system
US11677542B2 (en) 2018-05-17 2023-06-13 International Business Machines Corporation Ad-hoc smart contract generation in a blockchain
CN108681943B (en) * 2018-05-18 2022-07-12 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of block chain network and storage medium
CN108985066B (en) * 2018-05-25 2021-09-28 北京金山安全软件有限公司 Intelligent contract security vulnerability detection method, device, terminal and storage medium
CN110580624B (en) * 2018-06-07 2022-02-18 华为技术有限公司 Chain code upgrading method and device
CN108833398B (en) * 2018-06-08 2020-12-15 深圳智链未来科技有限公司 Block chain intelligent contract updating method, device and equipment
CN108965399B (en) * 2018-06-25 2022-02-25 百度在线网络技术(北京)有限公司 Intelligent contract execution method, device, equipment and storage medium
CN108958787B (en) * 2018-06-25 2021-11-12 百度在线网络技术(北京)有限公司 Block chain system upgrading method, device, equipment and storage medium
CN109003185B (en) * 2018-06-29 2022-03-22 中国银联股份有限公司 Intelligent contract establishing method and device, computing equipment and storage medium
CN109246197B (en) * 2018-08-15 2021-10-15 交通银行股份有限公司 Data processing method and device based on intelligent contract
CN108881312A (en) * 2018-08-24 2018-11-23 北京京东尚科信息技术有限公司 Intelligent contract upgrade method, system and relevant device and storage medium
CN109088722B (en) * 2018-10-08 2021-10-19 深圳投时科技有限公司 Block chain node evolution method and block chain node
CN109491682B (en) * 2018-10-24 2021-12-17 杭州趣链科技有限公司 Method for automatically upgrading permission-controllable block chain system based on intelligent contract
CN109522729B (en) * 2018-11-02 2020-12-11 中链科技有限公司 Intelligent contract state changing method and device
CN109559229A (en) * 2018-11-30 2019-04-02 众安信息技术服务有限公司 The method of the intelligent contract group of update based on block chain
KR102151893B1 (en) * 2018-11-30 2020-09-03 알리바바 그룹 홀딩 리미티드 Blockchain smart contract update using decentralized decision
CN109523385A (en) * 2018-12-07 2019-03-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN109684375B (en) * 2018-12-07 2022-12-27 深圳市智税链科技有限公司 Method, accounting node and medium for querying transaction information in blockchain network
CN109451061B (en) * 2018-12-20 2021-06-01 全链通有限公司 Contract adjustment processing method and system for block chain
CN111782668A (en) 2018-12-20 2020-10-16 阿里巴巴集团控股有限公司 Data structure reading and updating method and device, and electronic equipment
CN109783373A (en) * 2018-12-26 2019-05-21 中链科技有限公司 Function test method, device, electronic equipment and storage medium based on block chain
CN109785177A (en) * 2019-01-21 2019-05-21 网易(杭州)网络有限公司 Communities of users behavior management method, apparatus, medium and equipment based on block chain
CN109857811B (en) * 2019-02-15 2022-08-26 度小满科技(北京)有限公司 Block chain data management method and device
CN109934000B (en) * 2019-03-12 2021-06-29 黑龙江世纪精彩科技有限公司 Entertainment industry cooperative intention matching method based on block chain technology and storage medium
CN110138592A (en) * 2019-04-09 2019-08-16 苏宁易购集团股份有限公司 A kind of management method and system of intelligence contract
CN110083661B (en) * 2019-04-30 2022-12-06 山东特亿宝互联网科技有限公司 Capacity expansion method of block chain system, terminal device and storage medium
US20200349625A1 (en) 2019-05-05 2020-11-05 Microsoft Technology Licensing, Llc Monetizable template for asset token
US11188521B2 (en) * 2019-06-05 2021-11-30 International Business Machines Corporation Flexible transaction validation
CN110442764B (en) * 2019-07-04 2023-03-21 深圳壹账通智能科技有限公司 Contract generation method and device based on data crawling and computer equipment
CN112308712A (en) * 2019-08-02 2021-02-02 苏红 Method for embedding transaction logic into blockchain transaction
CN110569251A (en) * 2019-09-23 2019-12-13 腾讯科技(深圳)有限公司 Data processing method, related equipment and computer readable storage medium
CN112685496B (en) * 2019-10-18 2024-04-23 阿里巴巴集团控股有限公司 Distributed system and data processing method thereof
CN113691597B (en) * 2019-11-27 2022-06-14 腾讯科技(深圳)有限公司 Block chain contract deployment method, device, equipment and storage medium
CN113254054A (en) * 2021-06-09 2021-08-13 上海万向区块链股份公司 Intelligent contract one-stop development system and method
CN114239039A (en) * 2021-09-30 2022-03-25 西南电子技术研究所(中国电子科技集团公司第十研究所) Method for dynamically adapting data structure on user-defined block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130244439A1 (en) * 2012-03-13 2013-09-19 Massachusetts Institute Of Technology Removable templates for directed self assembly
US20140310243A1 (en) * 2010-08-16 2014-10-16 Mr. Steven James McGee Heart beacon cycle

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893042A (en) * 2016-03-31 2016-08-24 北京航空航天大学 Intelligent contract implementation method based on block chain
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310243A1 (en) * 2010-08-16 2014-10-16 Mr. Steven James McGee Heart beacon cycle
US20130244439A1 (en) * 2012-03-13 2013-09-19 Massachusetts Institute Of Technology Removable templates for directed self assembly

Also Published As

Publication number Publication date
CN106778329A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106778329B (en) Block chain intelligent contract template dynamic updating method, device and system
CN108270874B (en) Application program updating method and device
US11165590B2 (en) Decentralized biometric signing of digital contracts
CN107396360B (en) Block verification method and device
US11902601B2 (en) System and techniques for digital data lineage verification
CN110603557B (en) System and method for controlling transaction ledger
CN110675144A (en) Enhancing non-repudiation of blockchain transactions
CN111144881A (en) Selective access to asset transfer data
CN111971674A (en) Cryptographic currency wallet and cryptographic currency account management
WO2021219086A1 (en) Data transmission method and system based on blockchain
CN110177124B (en) Identity authentication method based on block chain and related equipment
CN111130770A (en) Block chain based information evidence storage method and system, user terminal, electronic equipment and storage medium
CN109634615B (en) Issuing method, verification method and device of application installation package
US11632250B2 (en) Signatures of updates exchanged in a binary data synchronization protocol
CN103310160A (en) Method, system and device for preventing webpage from being tampered with
WO2022206482A1 (en) Blockchain editing method and blockchain node
CN110889146B (en) Electronic signature method, device and storage medium
CN114780923A (en) Electronic seal management and control method and system
CN114329622A (en) File protection method, verification method, device, equipment and medium
WO2021012732A1 (en) Blockchain-based information verification apparatus and method, and storage medium
CN108710804A (en) A kind of band hardware encryption Rapid Updating of computer UEFI firmwares
CN112699404A (en) Method, device and equipment for verifying authority and storage medium
CN106778227A (en) Applied program processing method, application program launching method and device
CN111476640A (en) Authentication method, system, storage medium and big data authentication platform
CN110855753A (en) Bank operation system, method and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant