CN109978477B - Intelligent contract version control and management system and method based on block chain - Google Patents

Intelligent contract version control and management system and method based on block chain Download PDF

Info

Publication number
CN109978477B
CN109978477B CN201711446314.4A CN201711446314A CN109978477B CN 109978477 B CN109978477 B CN 109978477B CN 201711446314 A CN201711446314 A CN 201711446314A CN 109978477 B CN109978477 B CN 109978477B
Authority
CN
China
Prior art keywords
version
contract
control
intelligent
intelligent contract
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
CN201711446314.4A
Other languages
Chinese (zh)
Other versions
CN109978477A (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.)
Modernity Financial Holdings Ltd
Original Assignee
Modernity Financial Holdings 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 Modernity Financial Holdings Ltd filed Critical Modernity Financial Holdings Ltd
Priority to CN201711446314.4A priority Critical patent/CN109978477B/en
Publication of CN109978477A publication Critical patent/CN109978477A/en
Application granted granted Critical
Publication of CN109978477B publication Critical patent/CN109978477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

The intelligent contract version control and management system based on block chain has the control and management module of version control and management node to register different versions of intelligent contract with corresponding contract address and version number, the application program of the node to obtain the entity controlling and management contract and the latest registered version number and contract address, and the application program to obtain the latest version of the intelligent contract based on the latest registered version number and contract address.

Description

Intelligent contract version control and management system and method based on block chain
Technical Field
The invention relates to a version control and management system and a method thereof, in particular to an intelligent contract version control and management system and a method thereof based on a block chain.
Background
In recent years, various applications based on block chains have appeared like spring shoots after rain, due to the characteristics of the block chains, such as difficult tampering, transparent transactions, etc. Among them, the related technologies of applying the blockchain to the intelligent contract become one of the issues of great concern.
When the blockchain is applied to the intelligent contract, the program code of the intelligent contract is actually contained in the data field of the transaction and is sent to the blockchain network, the program code containing the intelligent contract is made into a blockchain through the nodes in the blockchain network, the blockchain is broadcasted for other nodes to verify, and the blockchain passing the verification can be issued in the blockchain network.
For example, in the protocol version issued by Ethereum, as long as the transaction does not set a receiver address (recipient), the blockchain network considers the transaction as an intelligent contract transaction, and generates a corresponding contract address (contract address) after verification, where the contract address is a reference address of an intelligent contract, and an application program using a node can obtain the intelligent contract entity through the contract address and execute the intelligent contract.
However, when the blockchain is applied to the intelligent contract, the issued intelligent contract has no chance to be changed because the blockchain has the characteristic of being difficult to be tampered. Therefore, when the intelligent contract may have errors and needs to be repaired or the intelligent contract needs to be newly added with functions, the intelligent contract with the repaired or newly added functions needs to be reissued. However, once the intelligent contract with the repaired or newly added function is released again, the application program using the node is also updated accordingly to obtain the contract address of the latest intelligent contract.
In summary, it is known that there is a problem that an application program using a node is forced to be updated due to the version update of an intelligent contract when the application program is to obtain an updated version of the intelligent contract in the prior art, and therefore, an improved technical means is needed to solve the problem.
Disclosure of Invention
The invention discloses an intelligent contract version control and management system and method based on a block chain.
First, the present invention describes an intelligent contract version control and management system based on a block chain, which comprises: the system comprises a version control management node, a plurality of verification nodes and a use node. The version control and management node comprises a control and management module and a block chain transaction module, wherein the control and management module is used for issuing intelligent contracts of different versions and respectively generating block chain transactions according to the intelligent contracts of different versions, the control and management module registers the intelligent contracts of different versions with corresponding contract addresses and version numbers through the control and management contracts, and the intelligent contracts of each version refer to the intelligent contracts of the previous version. The plurality of verification nodes are used for receiving the blockchain transactions, one verification node of the verification nodes writes the blockchain transactions into a block in sequence and then provides other verification nodes for verification, and the verification nodes of the verification blocks issue the verified blocks in the blockchain network. The using node comprises an application program used for obtaining an entity for controlling and managing the contract through the control and management address, obtaining the latest registered version number and the contract address through the entity for controlling and managing the contract, and obtaining the latest version entity of the intelligent contract through the obtained latest registered version number and the contract address.
In addition, the invention discloses an intelligent contract version control and management method based on a block chain, which comprises the following steps: the version control and management node issues intelligent contracts of different versions, and block chain transactions are respectively generated according to the intelligent contracts of different versions; the version control management node provides the block chain transaction to a plurality of verification nodes on the block chain network, the verification node of one of the verification nodes writes the block chain transaction into the block in sequence and provides the block to other verification nodes for verification; the verification node of the verification block issues the verified block in the block chain network; the control module of the version control and management node registers different versions of intelligent contracts with corresponding contract addresses and version numbers through the control and management contracts, wherein the intelligent contracts of each version refer to the intelligent contracts of the previous version; the application program of the node is used for obtaining an entity for controlling and managing the contract through the control and management address; the application program obtains the latest registered version number and contract address through an entity for controlling and managing the contracts; and the application program obtains the latest version of the entity of the intelligent contract through the obtained latest registered version number and the contract address.
The system and the method described in the invention are different from the prior art in that the invention registers different versions of intelligent contracts with corresponding contract addresses and version numbers through the control and management contract by the control and management module of the version control and management node, the application program using the node obtains the entity for controlling and managing the contract through the control and management address, and obtains the latest registered version number and contract address through the entity for controlling and managing the contract, so that the application program obtains the latest version of the entity for the intelligent contract according to the obtained latest registered version number and contract address.
By the technical means, the invention can achieve the technical effect that when the application program wants to obtain the entity of the intelligent contract with the latest version, the intelligent contract is not required to be forcedly updated due to the version update of the intelligent contract.
Drawings
Fig. 1 is a block diagram of an intelligent contract version control system based on a block chain according to the present invention.
Fig. 2 is a flowchart of a method for block chain-based intelligent contract version control and management.
FIG. 3A is a schematic diagram of a first version of an intelligent contract in accordance with an embodiment of the present invention.
FIG. 3B is a diagram of an embodiment of a store balance instruction referenced by a first version of a smart contract in accordance with the present invention.
FIG. 3C is a diagram of a second version of a smart contract, according to an embodiment of the present invention.
FIG. 3D is a schematic diagram of an embodiment of a governance contract of the present invention.
[ List of reference numerals ]
10. Block chain network
50. Control module
100. Intelligent contract version control and management system based on block chain
110. Verifying node
120. Version control management node
130. Using nodes
132. Application program
Detailed Description
The embodiments of the present invention will be described in detail with reference to the drawings and examples, so that the implementation process of the present invention, which adopts technical means to solve the technical problems and achieve the technical effects, can be fully understood and implemented.
Before explaining the intelligent contract version control system based on the block chain explained by the invention and the method thereof, self-defined nouns of the invention are explained, the version control management node, the verification node and the use node are mutually connected through the block chain network, the version control management node, the verification node and the use node have the same elements and structures (namely, the version control management node, the verification node and the use node can comprise a control module and an application program), in one embodiment, the difference of different nodes is that the version control management node has a set of key pairs, the version control management node signs the intelligent contract of the new version by the set of key, then the signed new version of intelligent contract verification node is used for verifying the block content broadcasted by other nodes in the block chain network, the use node is the node of the entity which acquires the intelligent contract of the intelligent contract issued by the version control node by the control node, when the application program of the use node acquires the new version of the intelligent contract, the intelligent contract signing the new version control contract is issued by the intelligent contract management node, if the intelligent contract signing the new version application node does not use the intelligent contract, the intelligent contract signing the new version application node can not sign the new version of the intelligent contract. In another embodiment, the difference between the different nodes is that the version control node issues a new version of the intelligent contract, the verification node is used to verify the block contents broadcast by other nodes in the block chain network, the use node is the node that obtains the entity of the new version of the intelligent contract issued by the version control node through the control contract, and in this embodiment, the application program using the node trusts the entity of the new version of the intelligent contract found by the entity of the control contract, so that various contents returned by the entity of the control contract are trusted contents, and the new version of the intelligent contract can be executed without verification. Therefore, the version control node, the verification node and the use node of the present invention play different roles in executing different programs and in owning the key pair.
In addition, the version control node, the verification node and the use node included in the intelligent contract version control system based on a block chain according to the present invention may be implemented in various ways, including software, hardware, firmware or any combination thereof, and the scope of the present invention is not limited in this respect. The techniques presented in the implementations may be stored on a machine-readable storage medium using software or firmware, such as: read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media, optical storage media, flash memory devices, etc., and may be implemented by one or more general-purpose or special-purpose programmable microprocessors.
The intelligent contract version control system and method based on block chains according to the present invention will be further described with reference to the drawings. It should be noted that the following description of the embodiments describes the mutual operation between the roles played by the nodes, which are not limited to playing as verification nodes, version control nodes or use nodes, but may be different nodes according to the program executed each time or whether the key pair is owned.
Referring to fig. 1, fig. 1 is a block diagram of a system for block-chain-based intelligent contract version control and management, and a system 100 of the block-chain-based intelligent contract version control and management system includes: a plurality of verification nodes 110, a version control node 120 and a usage node 130.
The number of the nodes 110 is N, where N is a positive integer greater than 2, and each node 110 is interconnected through the block chain network 10. The blockchain network 10 may be the internet, a private network, a virtual private network, and so on.
The version control and management node 120 includes a control and management module 50 for issuing different versions of intelligent contracts, respectively generating blockchain transactions according to the different versions of intelligent contracts, and then providing the blockchain transactions to the plurality of verification nodes 110 on the blockchain network 10. How the version control node 120 issues the intelligent contract and how the blockchain transaction is generated is as described above, and will not be described herein.
The verification nodes 110 are configured to receive the blockchain transactions, the verification node 110 of one of the verification nodes 110 sequentially writes the blockchain transactions into blocks and then provides the other verification nodes 110 for verification, and the verification node 110 of a verification block distributes verified blocks in the blockchain network 10. More specifically, each verification node 110 may write the blockchain transactions into blocks in sequence, and then broadcast the blocks containing the blockchain transactions through the blockchain network 10 to allow other verification nodes 110 to perform verification.
In order to avoid the intelligent contract being tampered and further improve the overall reliability, the plurality of verification nodes 110 continuously receive the blockchain transactions on the blockchain network 10, write the blockchain transactions into the blocks in sequence, and provide the block chain transactions to other verification nodes 110 which do not broadcast the blocks through the blockchain network 10 for verification, wherein when the chain connection behind a certain block is longer, the block is more difficult to be tampered. In practical implementation, the issuing technology of the intelligent contract can be implemented by using the prior art, for example: the protocol version published by Ethereum.
The control and management module 50 registers different versions of intelligent contracts with corresponding contract addresses and version numbers through the control and management contracts, and each version of intelligent contract refers to the previous version of intelligent contract. In more detail, each time the version control and management node 120 issues a new version of the intelligent contract, and after the blockchain transaction generated according to the new version of the intelligent contract passes the verification of the verification node 110, the control and management module 50 registers the corresponding contract address and version number of the new version of the intelligent contract through the control and management contract, and the control and management contract sequentially generates the version numbers corresponding to the contract addresses according to the registered time sequence. The version number is used to define the version of the intelligent contract, for example: the version of the first intelligent contract for registration is version 1, and the version of the second intelligent contract for registration is version 2. The control contract records contract addresses and version numbers of intelligent contracts of different versions.
In addition, each version of the intelligent contract refers to a previous version of the intelligent contract. More specifically, each version of intelligent contract includes a control address, and when each version of intelligent contract needs to refer to a previous version of intelligent contract, each version of intelligent contract obtains an entity for controlling the contract through the control address, and obtains the version number and the contract address of the intelligent contract of the reference version through the entity for controlling the contract, so that the entity for each version of intelligent contract obtains the entity for the intelligent contract of the reference version through the obtained version number and the contract address of the intelligent contract of the reference version. Wherein, the control and management address is a reference address of the control and management contract. Therefore, unlike the prior art in which a new version of intelligent contract needs to include the contract address of the previous version of intelligent contract to which the new version of intelligent contract refers, which causes a problem that a large amount of storage space is required to store updated intelligent contracts when the number of versions of the intelligent contract grows too large, each version of intelligent contract of the present invention can solve the above-mentioned prior art problem by managing the contract with reference to the previous version of intelligent contract, and at the same time, the new version of intelligent contract increases readability due to the removal of excessive variables.
The user node 130 includes an application 132 for obtaining an entity for controlling the contract through the control address, obtaining the latest registered version number and the contract address through the entity for controlling the contract, and obtaining the latest version of the entity for intelligent contract through the obtained latest registered version number and the contract address. More specifically, when the using node 130 having the application 132 wants to obtain the entity of the latest version of the intelligent contract, since the using node 130 having the application 132 does not have the contract address of the latest version of the intelligent contract, and cannot obtain the entity of the latest version of the intelligent contract, the using node 130 having the application 132 can obtain the entity of the intelligent contract with the control address through the blockchain network 10, and obtain the latest registered version number and contract address through the entity of the control contract, so that the application 132 of the using node 130 can obtain the entity of the latest version of the intelligent contract according to the obtained latest registered version number and contract address. Since the control address is fixed, when the using node 130 having the application program 132 wants to obtain the entity of the intelligent contract of the latest version, the entity of the intelligent contract of the latest version can be obtained through the control address and the entity of the control contract, and is not forced to be updated due to the update of the version of the intelligent contract (i.e. the number of versions is continuously accumulated upward).
Furthermore, when the entity of the latest version of the smart contract is to be executed after the entity of the latest version of the smart contract is acquired by using the application 132 of the node 130, since the latest version of the smart contract refers to the previous version of the smart contract, the entity of the latest version of the smart contract acquires the entity of the governing contract through the governing address, and acquires the contract address and the version number of the designated version of the smart contract through the entity of the governing contract, so that the entity of the latest version of the smart contract acquires the entity of the designated version of the smart contract through the acquired version number and the contract address of the designated version of the smart contract to execute the entity of the latest version of the smart contract. Wherein the intelligent contract of the specified version is about the intelligent contract referred to by the intelligent contract of the latest version.
In an embodiment, the version control node 120 may further have a set of key pairs, the version control node 120 signs the intelligent contract for the new version by means of the set of key pairs, and then issues the signed new version of the intelligent contract, the verification node 110 is configured to verify the block content broadcast by other nodes in the block chain network 10, the usage node 130 is a node that obtains the new version of the intelligent contract issued by the version control node 120 through the control contract, when the application 132 of the usage node 130 obtains the signed new version of the intelligent contract through the entity of the control contract, the signed new version of the intelligent contract is verified by the public key of the set of key pairs first, if the application 132 of the usage node 130 determines that the signed new version of the intelligent contract is signed by using the set of key pairs, the new version of the intelligent contract representing the signed new version of the intelligent contract is issued by the version control node 120, the signed new version of the intelligent contract can be executed if the application 132 of the usage node 130 determines that the signed new version of the intelligent contract does not utilize the new version of the intelligent contract to sign the intelligent contract, and the intelligent contract representing that the signed new version of the intelligent contract is not issued by the new version of the intelligent contract.
Next, referring to fig. 2, fig. 2 is a flowchart of a method for block chain-based intelligent contract version control method according to the present invention, which includes the steps of: the version control node issues different versions of intelligent contracts, and block chain transactions are respectively generated according to the different versions of intelligent contracts, wherein each version of intelligent contract refers to the previous version of intelligent contract (step 210); the version control node provides the block chain transaction to a plurality of verification nodes on the block chain network, the verification node of one of the verification nodes writes the block chain transaction into the block in sequence and provides the block to other verification nodes for verification (step 220); the verifying node that verifies the chunk publishes the verified chunk in a blockchain network (step 230); the control module of the version control and management node registers the corresponding contract address and version number of the intelligent contract with different versions through the control and management contract (step 240); using the application program of the node to obtain an entity for controlling and managing the contract through the control and management address (step 250); the application program obtains the latest registered version number and contract address through the entity controlling the contract (step 260); and the application program obtains the latest version of the entity of the intelligent contract through the obtained latest registered version number and the contract address (step 270). Through the steps, the corresponding contract address and version number of the intelligent contract of different versions can be registered through the control and management contract by the control and management module of the version control and management node, the entity for controlling and managing the contract is obtained by the application program of the node through the control and management address, the latest registered version number and contract address are obtained by the entity for controlling and managing the contract, and the application program obtains the entity of the intelligent contract of the latest version according to the obtained latest registered version number and contract address.
In addition, the steps of the intelligent contract version control and management method based on the block chain may also include: the entity of the intelligent contract of the latest version obtains the entity of the intelligent contract of the control and management contract through the control and management address, the entity of the intelligent contract of the latest version obtains the version number and the contract address of the intelligent contract of the specified version through the entity of the control and management contract, and the entity of the intelligent contract of the latest version obtains the entity of the intelligent contract of the specified version through the obtained version number and the contract address of the intelligent contract of the specified version, wherein the intelligent contract of the latest version refers to the intelligent contract of the specified version. Through the above steps, the entity of the intelligent contract of the latest version can obtain the entity of the intelligent contract of the specified version referred by the entity of the intelligent contract of the latest version through the entity of the governing contract, so as to supply the application program to execute the entity of the intelligent contract of the latest version.
In addition, the intelligent contract version control and management method based on the block chain can also comprise the following steps: the control contract records the contract addresses and the version numbers of intelligent contracts with different versions. Moreover, the intelligent contract version control and management method based on the block chain can be realized by utilizing a protocol version released by Ethereum.
In one embodiment, step 210 of the block chain-based intelligent contract version control method further comprises: and the version control management node signs the intelligent contract aiming at the new version by virtue of a group of keys and then issues the signed new version intelligent contract. In this embodiment, the step of the intelligent contract version control and management method based on the blockchain may further include: after the application program obtains the entity of the intelligent contract of the latest version through the entity of the control and management contract, the intelligent contract of the new version signed is verified through the public key of the key pair set of the version control and management node, if the application program judges that the intelligent contract of the latest version is signed by using the key pair set of the version control and management node, the entity of the intelligent contract of the latest version can be executed, and if the application program judges that the intelligent contract of the new version signed is not signed by using the key pair set of the version control and management node, the entity of the intelligent contract of the latest version cannot be executed.
Fig. 3A to 3D are combined to describe below a manner of implementation of a identity smart contract program, where fig. 3A is a schematic diagram of an embodiment of a first version smart contract of the present invention, fig. 3B is a schematic diagram of an embodiment of a store balance instruction referred to by the first version smart contract of the present invention, fig. 3C is a schematic diagram of an embodiment of a second version smart contract of the present invention, and fig. 3D is a schematic diagram of an embodiment of a control contract of the present invention.
In this embodiment, sampleCoin is a hypothetical digital currency, and the protocol version issued by Ethereum is used to implement this embodiment.
As can be seen from fig. 3A and 3B, in a first version of the intelligent contract, the owner of the contract may issue money, and the owner of the money may send money to anyone, wherein the store balance instruction referred to by the entity of the first version of the intelligent contract stores the balance data of samplecain.
As can be seen from fig. 3C, the second version smart contract has added functions that the first version smart contract does not have, in addition to the entities that contain the first version smart contract, and the number of blocks of the current block chain can be determined by the function send ().
As can be seen from fig. 3D, each time a new version of the intelligent contract is issued, the contract address of the intelligent contract of the latest version needs to be registered with the master contract, and the version number of the latest version is stored in latestVersion through the function register (), so that the application program using the node can find the contract address of the intelligent contract of the latest version through the function getlatestversion address (). For example, assuming that the version number of the smart contract of the new version is "2" and the contract address is "0x002", when an application using a node wants to obtain an entity of the smart contract of the new version, the entity of the smart contract of the new version can be obtained through version registry.
In summary, it can be seen that the difference between the present invention and the prior art is that the control module of the version control node registers different versions of intelligent contracts with corresponding contract addresses and version numbers through the control contract, the application program using the node obtains the entity controlling the contract through the control address, and obtains the latest registered version number and contract address through the entity controlling the contract, so that the application program obtains the entity of the latest version of the intelligent contract according to the latest registered version number and contract address.
Although the invention has been described with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A blockchain-based intelligent contract versioning management system, comprising:
the version control and management node comprises a control and management module and a block chain transaction module, wherein the control and management module is used for issuing intelligent contracts of different versions and respectively generating block chain transactions according to the intelligent contracts of different versions;
a plurality of verification nodes for receiving the block chain transactions, wherein one of the verification nodes writes the block chain transactions into a block in sequence and then provides other verification nodes for verification, and the verification node verifying the block issues the verified block in the block chain network, and
the using node comprises an application program and is used for obtaining the entity for controlling the contract through the control address, obtaining the latest registered version number and the contract address through the entity for controlling the contract, and obtaining the latest version entity of the intelligent contract through the obtained latest registered version number and the contract address.
2. The system according to claim 1, wherein an entity of a latest version of the intelligent contract obtains the entity of the intelligent contract through the control address, and obtains the version number and the contract address of a specified version of the intelligent contract through the entity of the control contract, so that the entity of the latest version of the intelligent contract obtains the entity of the specified version of the intelligent contract through the obtained version number and the contract address of the specified version of the intelligent contract, wherein the latest version of the intelligent contract refers to the specified version of the intelligent contract.
3. The system of claim 1, wherein the control contract records contract addresses and version numbers of different versions of intelligent contracts.
4. The intelligent block chain-based contract version control and management system according to claim 1, wherein the intelligent block chain-based contract version control and management system is implemented by using a protocol version issued by Ethereum.
5. The system of claim 1, wherein the versioning node has a set of key pairs.
6. An intelligent contract version control and management method based on a block chain comprises the following steps:
the version control management node issues intelligent contracts of different versions and respectively generates block chain transactions according to the intelligent contracts of different versions, and the version control management node is characterized in that the intelligent contracts of each version refer to the intelligent contracts of the previous version;
the version control management node provides the block chain transaction to a plurality of verification nodes on a block chain network, one of the verification nodes writes the block chain transaction into a block in sequence and provides the block to other verification nodes for verification;
verifying that the verifying node of the block issues the verified block in the blockchain network;
the control module of the version control and management node registers intelligent contracts of different versions with corresponding contract addresses and version numbers through control and management contracts;
the application program of the node is used for obtaining the entity of the control and management contract through the control and management address;
the application program obtains the latest registered version number and the contract address through the entity for controlling and managing the contract; and
the application program obtains the entity of the intelligent contract with the latest version through the obtained version number and the contract address which are registered latest.
7. The blockchain-based intelligent contract versioning method according to claim 6, further comprising:
the entity of the latest version of the intelligent contract obtains the entity of the control contract through the control address
The entity of the latest version of the intelligent contract obtains the version number and the contract address of the intelligent contract of the appointed version through the entity controlling the contract and
the entity of the intelligent contract of the latest version obtains the entity of the intelligent contract of the specified version through the obtained version number and the contract address of the intelligent contract of the specified version, and is characterized in that the intelligent contract of the latest version refers to the intelligent contract of the specified version.
8. The intelligent contract versioning method based on block chains according to claim 6, further comprising: the control contract records the contract addresses and the version numbers of different versions of intelligent contracts.
9. The intelligent contract version control and management method based on the block chain as claimed in claim 6, wherein the intelligent contract version control and management method based on the block chain is implemented by a protocol version issued by Ethereum.
10. The method of claim 6, wherein the versioning node has a set of key pairs.
CN201711446314.4A 2017-12-27 2017-12-27 Intelligent contract version control and management system and method based on block chain Active CN109978477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711446314.4A CN109978477B (en) 2017-12-27 2017-12-27 Intelligent contract version control and management system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711446314.4A CN109978477B (en) 2017-12-27 2017-12-27 Intelligent contract version control and management system and method based on block chain

Publications (2)

Publication Number Publication Date
CN109978477A CN109978477A (en) 2019-07-05
CN109978477B true CN109978477B (en) 2022-12-23

Family

ID=67071646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711446314.4A Active CN109978477B (en) 2017-12-27 2017-12-27 Intelligent contract version control and management system and method based on block chain

Country Status (1)

Country Link
CN (1) CN109978477B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427385B (en) * 2019-08-02 2022-06-10 中国工商银行股份有限公司 Block chain data updating method, related node and block chain
CN111797106B (en) * 2020-06-24 2023-09-01 北京荷月科技有限公司 Contract authority setting method and system compatible with multi-version contract parallelism
CN111813441B (en) * 2020-09-10 2021-02-02 腾讯科技(深圳)有限公司 Intelligent contract issuing method and device, computer readable medium and electronic equipment
CN111932215B (en) * 2020-09-18 2023-09-29 杭州趣链科技有限公司 Intelligent contract version management method, intelligent contract version management equipment and readable storage medium
CN111932260B (en) * 2020-09-18 2021-01-26 杭州趣链科技有限公司 Intelligent contract version management method, equipment and readable storage medium
CN112148794A (en) * 2020-09-23 2020-12-29 京东数字科技控股股份有限公司 Version management method and device of intelligent contract and storage medium
CN112527781B (en) * 2020-12-23 2022-07-15 上海万向区块链股份公司 Intelligent contract data migration method and system
CN113760353B (en) * 2021-08-27 2024-01-02 浙商银行股份有限公司 Block chain intelligent contract version control method and block chain system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL278834B2 (en) * 2016-02-23 2023-09-01 Nchain Holdings Ltd Registry and automated management method for blockchain-enforced smart contracts
US20170344988A1 (en) * 2016-05-24 2017-11-30 Ubs Ag System and method for facilitating blockchain-based validation
CN107145521B (en) * 2017-04-10 2019-05-21 杭州趣链科技有限公司 A kind of data migration method towards block chain multistage intelligent contract
TWM553025U (en) * 2017-08-03 2017-12-11 國泰人壽保險股份有限公司 Contract management system
US20210174432A1 (en) * 2018-08-07 2021-06-10 Perpetual Altruism Limited Computer implemented method and system for updating a database system for a blockchain version control system; computer implemented methods of auctioning an item for a seller, and computer implemented method of updating a smart contract
CN113760353B (en) * 2021-08-27 2024-01-02 浙商银行股份有限公司 Block chain intelligent contract version control method and block chain system

Also Published As

Publication number Publication date
CN109978477A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109978477B (en) Intelligent contract version control and management system and method based on block chain
TWI614713B (en) Smart contract version control system and method thereof based on blockchain
US11914712B1 (en) Blockchain based secure naming and update verification
CN107577427B (en) data migration method, device and storage medium for blockchain system
JP7411011B2 (en) Blockchain-implemented counting system and method used for secure voting and distribution
US20220108285A1 (en) Methods and Systems for Object Validated Blockchain Accounts
CN110442652B (en) Cross-chain data processing method and device based on block chain
CN107077557B (en) Method and device for releasing and verifying software application program
CN107171810B (en) Verification method and device of block chain
CN111512591A (en) Trackable key blockchain ledger
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
US11367055B2 (en) Decentralized pooled mining for enabling proof-of-work on blockchains
CN110597916B (en) Data processing method and device based on block chain, storage medium and terminal
WO2019190394A1 (en) Methods of distributing software across a network and distribution systems
EP4070221A1 (en) Cross-partition calls in partitioned, tamper-evident data stores
CN110225012B (en) Method for checking and updating ownership of outsourced data based on alliance chain
CN113988857A (en) NFT transaction method, transaction system, computer-readable storage medium and terminal device
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
CN114127724A (en) Integrity audit for multi-copy storage
CN110858211B (en) Data storage method, device and system and storage medium
CN112258188B (en) Processing method, device, equipment and system for block chain transaction
WO2022082360A1 (en) Digital asset transfer system
KR102164779B1 (en) Blockchains with modifiable recorded transactions
CN110933155B (en) Novel block chain network
CN113064899B (en) Method and device for storing asset securities type general evidence transaction certificates and electronic equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40007524

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant