CN109451061B - Contract adjustment processing method and system for block chain - Google Patents
Contract adjustment processing method and system for block chain Download PDFInfo
- Publication number
- CN109451061B CN109451061B CN201811577888.XA CN201811577888A CN109451061B CN 109451061 B CN109451061 B CN 109451061B CN 201811577888 A CN201811577888 A CN 201811577888A CN 109451061 B CN109451061 B CN 109451061B
- Authority
- CN
- China
- Prior art keywords
- block chain
- intelligent contract
- node
- change
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3247—Cryptographic 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a block chain contract adjusting and processing method and a system, wherein the method comprises the following steps: the method comprises the steps that an alteration starting node generates an updated intelligent contract used for modifying the content of a second block chain contract, the updated intelligent contract signed by a private key of the alteration starting node is broadcasted to a first block chain network, other starting nodes verify the updated intelligent contract, if the verification is passed, the updated intelligent contract signed by the private key of the other starting node is broadcasted to the first block chain network, and when all other starting nodes are informed to carry out private key signature on the updated intelligent contract, a contract establishment message of the updated intelligent contract is broadcasted to the second block chain network; and the accounting node receives the contract establishment message for updating the intelligent contract and generates a block according to the updated intelligent contract. Therefore, a flexible evolution mechanism of block chain contract is provided, support is provided for adapting to environmental changes of the block chain, and stability and flexibility of the block chain are improved.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a method and a system for contract adjustment processing of a block chain.
Background
Generally, the blockchain technology is widely used because trust cost is reduced by ensuring security of transactions based on information interaction between nodes. The service of the blockchain is performed according to a blockchain contract, in which a consensus mechanism for generating the blockchain is defined.
In the related art, the blockchain contract is formulated according to the current market demand and the specific situation of the starting node, and once the formulation is hard to change, the commonness mechanisms included in the blockchain contract, such as Pow, Pos, DPos and some mixed commonness mechanisms, are also formulated according to the current market demand, however, the changes of the environment, such as the change of the market demand, the change of the starting node, the format of the transaction record, and the like, can be difficult to predict, and a changeless blockchain contract can cause the blockchain to have lower flexibility, and the application prospect is good.
Disclosure of Invention
The invention provides a contract adjustment processing method and system for a block chain, and aims to solve the technical problems that in the prior art, once a block chain contract is set and is difficult to change, the block chain is difficult to adapt to the change of the environment, and the application prospect is poor.
A first embodiment of the present invention provides a contract adjustment processing method for a blockchain, where the method is applied to a first blockchain and a second blockchain, where the first blockchain is used to record a change scheme of the second blockchain, so that a billing node in the second blockchain generates a new block according to the change scheme recorded by the first blockchain, and the contract adjustment processing method includes: the change starting node generates an updated intelligent contract used for modifying the content of the second block chain contract, and broadcasts the updated intelligent contract which is signed by the private key of the change starting node to the first block chain network; other originating nodes receive the updated intelligent contract signed by the private key of the changed originating node, verify the private key signature of the changed originating node by applying a node public key of the changed originating node obtained in advance, analyze the updated intelligent contract to obtain second block chain change information if the verification is passed, broadcast the updated intelligent contract signed by the private key of the own originating node to the first block chain network if the second block chain change information is confirmed, and broadcast the contract establishment message of the updated intelligent contract to the second block chain network after all other originating nodes are informed to carry out the private key signature on the updated intelligent contract; and the accounting node receives the contract establishment message of the updated intelligent contract, analyzes the updated intelligent contract to acquire second block chain change information, determines a change type corresponding to the second block chain change information, acquires block chain client download information corresponding to the format of the new block from the second block chain change information if the change type corresponding to the second block chain change information is a format change type of the new block, and installs a block chain client corresponding to the format of the new block according to the block chain client download information to generate new block content according to the format of the new block through the block chain client, so that other nodes can record the new block content into a block chain book after judging that the new block content conforms to the updated intelligent contract.
A second embodiment of the present invention provides a contract adjustment processing system for a block chain, including: the system comprises a change starting node, other starting nodes and a billing node, wherein the change starting node and the other starting nodes are nodes in a first block chain, and the billing node is a node in a second block chain, wherein the first block chain is used for recording a change scheme of the second block chain so that the billing node in the second block chain generates a new block according to the change scheme recorded by the first block chain, and the change starting node is used for generating an updated intelligent contract for modifying contract content of the second block chain and broadcasting the updated intelligent contract signed by a private key of the change starting node to the first block chain network; the other starting nodes are used for receiving the updated intelligent contract signed by the private key of the changed starting node, verifying the private key signature of the changed starting node by applying a node public key of the changed starting node obtained in advance, analyzing the updated intelligent contract to obtain second block chain change information if the verification is passed, broadcasting the updated intelligent contract signed by the private key of the self starting node to the first block chain network if the second block chain change information is confirmed, and broadcasting the contract establishment message of the updated intelligent contract to the second block chain network after all other starting nodes are informed to carry out private key signature on the updated intelligent contract; the accounting node is configured to receive the contract establishment message for updating the intelligent contract, analyze the updated intelligent contract to obtain the second blockchain change information, determine a change type corresponding to the second blockchain change information, obtain, if it is known that the change type corresponding to the second blockchain change information is a format change type of a new block, a blockchain client corresponding to a format of the new block from the second blockchain change information, and install, according to the blockchain client download information, a blockchain client corresponding to the format of the new block, so as to generate, by the blockchain client, new block content according to the format of the new block, so that other nodes record, after determining that the new block content conforms to the updated intelligent contract, in a blockchain account book.
A third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the contract adjustment processing method for a block chain as described in the above embodiments.
A fourth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the contract adjustment processing method for a block chain as described in the above embodiment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps that an alteration starting node generates an updated intelligent contract used for modifying the content of a second block chain contract, the updated intelligent contract signed by a private key of the alteration starting node is broadcasted to a first block chain network, other starting nodes verify the updated intelligent contract, if the verification is passed, the updated intelligent contract signed by the private key of the other starting node is broadcasted to the first block chain network, and when all other starting nodes are informed to carry out private key signature on the updated intelligent contract, a contract establishment message of the updated intelligent contract is broadcasted to the second block chain network; and the accounting node receives the contract establishment message for updating the intelligent contract and generates a block according to the updated intelligent contract. Therefore, a flexible evolution mechanism of block chain contract is provided, support is provided for adapting to the environmental change of the block chain, the stability and flexibility of the block chain are improved, and the application prospect is good.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1 is a block diagram of a block chain contract adjustment processing system according to one embodiment of the invention;
FIG. 2 is an interaction diagram of a block chain contract adjustment processing system, according to one embodiment of the invention;
fig. 3 is a flowchart of a contract adjustment processing method of a blockchain according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In order to solve the technical problem that the block chain is difficult to adapt to the unknown change of the environment due to the relative fixity of the block chain contract mentioned in the background art, the invention provides a flexible evolution mechanism of the block generation contract, which provides support for adapting to the change of the application environment and improves the stability and flexibility of the block chain.
For clarity of description, first, a contract adjustment processing system of a block chain according to an embodiment of the present invention is described, fig. 1 is a schematic structural diagram of a contract adjustment processing system of a block chain according to an embodiment of the present invention, and as shown in fig. 1, the system includes a change starting node 100, other starting nodes 200, and a billing node 300, where the change starting node 100 and the other starting nodes 200 are all starting nodes, the starting nodes may be understood as starting nodes of the block chain and are formulators of initial contracts of the block chain, the starting nodes may include some organizations with higher authority or stakeholders and the like in some minimum structures, the starting nodes are usually multiple, and multiple starting nodes jointly make a block chain contract adapted to a current application environment. The plurality of starting nodes are restricted with each other based on a voting mechanism, so that a contract for disturbing the market time sequence is prevented from being made by a single starting node, the accounting node is a node participating in block generation in a block chain, the block chain contract comprises information about various block chain services such as a block generation format and the current situation (including share allocation) of the starting node, and the accounting node is a node in a second block chain when the starting node and other starting nodes are changed, wherein the first block chain is used for recording a change scheme of the second block chain, so that the accounting node in the second block chain generates a new block according to the change scheme recorded by the first block chain.
Referring to fig. 2, in the actual implementation process, the change originating node generates an updated intelligent contract for modifying the content of the second blockchain contract, and broadcasts the updated intelligent contract signed by the private key of the change originating node to the first blockchain network (step 1), that is, the change originating node can modify the blockchain contract according to the current market change, and of course, in order to avoid that some change originating nodes are in a wrong market trend, or the block chain contract is updated by violating market order violation, or the current information of the originating node is inaccurate, other originating nodes are required to verify the updated intelligent contract, specifically, the other originating nodes receive the updated intelligent contract signed by the private key of the change originating node, and verify the private key signature of the change originating node by using the node public key of the change originating node obtained in advance (step 2), if the verification is passed, analyzing the updated intelligent contract to obtain second block chain change information, if the second block chain change information is confirmed, broadcasting an updated intelligent contract signed by the private key of the starting node of the updated intelligent contract to the first block chain network, and after all other starting nodes are informed to carry out private key signature on the updated intelligent contract, indicating that the intelligent updated contract accords with the market trend, and broadcasting a contract establishment message of the updated intelligent contract to the second block chain network (step 3).
When the new block chain contract is established, the control block chain implements the block chain service according to the new block chain contract, specifically, the accounting node receives the contract establishment message of the updated intelligent contract, analyzes the updated intelligent contract to obtain the second block chain change information, and determining the change type corresponding to the second blockchain change information (step 4), if the change type corresponding to the second blockchain change information is known to be the format change type of the new block, the blockchain client download information corresponding to the format of the new block is obtained from the second blockchain change information, and installing the blockchain client corresponding to the format of the new block according to the downloading information of the blockchain client, and generating new block content according to the format of the new block by the block chain client, so that other nodes are recorded into a block chain account book after judging that the new block content meets the updated intelligent contract (step 5).
Therefore, the contract adjustment processing method for the block chain in the embodiment of the invention can adapt to flexible changes of the environment, for example, can adapt to market change requirements, change the generation mode of a new block, and the like, and can adapt to the addition and the exit of a starting node, and the like, thereby greatly improving the stability and the flexibility of the block chain.
Fig. 3 is a flowchart of a contract adjustment processing method for blockchains, which is applied to a first blockchain and a second blockchain, where the first blockchain is used to record a change scheme of the second blockchain, a component node in the first blockchain is typically an originating node, and the originating node may be understood as a federation chain composed of shareholders or organizations with higher authority, and the second blockchain may be a super blockchain generated for a block that performs a transaction service meeting market needs, as shown in fig. 3, where the method includes:
The second block link contract includes a block generation format (including a format type of the consensus mechanism, a parameter of the consensus mechanism, a block generation algorithm, etc.), a change of a specific situation of the originating node (including an entry and an exit of the originating node, a change of a right allocation of the originating node, etc.), and the like.
It will be appreciated that when the change originator detects a change in the condition of the originator, or a change in market demand (e.g., a business model of the current market is better adapted to a block generation method of another format, or a block generation method of another format is safer than current network technologies, etc.), in order to ensure that the second blockchain can adapt to such a change in application environment, the second blockchain contract may be updated based on the change, or a new recommendation for an intelligent contract may be made, so as to update the second blockchain contract according to the recommendation, and the updated intelligent contract signed by the private key of the change originator is broadcast to the second blockchain network.
It should be noted that, in the embodiment of the present invention, the node is subjected to identity authentication based on a public key certificate technology, and the core of the public key certificate technology is a pair of keys, which has the following basic principle: information content encrypted by one key can only be matched by another key with which it is paired. The encryption public key can be widely issued to the correspondent, namely other nodes, and the encryption private key needs to be stored safely. In use, the related node uses the private key to sign the block broadcast information and transmits the block broadcast information to other nodes, and the other nodes can use the public key of the related node to complete identity authentication of the related node.
And 102, receiving the updated intelligent contract signed by the private key of the changed starting node by other starting nodes, verifying the private key signature of the changed starting node by applying the node public key of the changed starting node obtained in advance, analyzing the updated intelligent contract to obtain second block chain change information if the verification is passed, broadcasting the updated intelligent contract signed by the private key of the self starting node to the first block chain network if the second block chain change information is confirmed, and broadcasting the contract establishment message for updating the intelligent contract to the second block chain network after all other starting nodes are informed to carry out the private key signature on the updated intelligent contract.
It is understood that the updated intelligent contract generated by the change starting node may not be adapted to the real change of the current application scenario, for example, the real change of the starting node is not objectively reflected, and therefore, other starting nodes are required to verify whether the updated intelligent contract is reasonably legal or not.
Specifically, the other starting nodes receive the updated intelligent contract signed by the private key of the changed starting node, firstly, the validity of the sender of the updated intelligent contract is verified, namely, the public key of the node of the changed starting node obtained in advance is used for verifying the private key signature of the changed starting node, if the public key is consistent, the validity verification of the sender is passed, so that the updated intelligent contract is analyzed to obtain second block chain change information, whether the second block chain change information is reasonable and legal is further verified, and if the second block chain change information is confirmed to be suitable for the real change of the current application environment through research, for example, the real change of the starting node is objectively reflected, the second block chain change information is confirmed.
And the starting node confirming the second block chain change information broadcasts the updated intelligent contract signed by the private key of the starting node to the first block chain network so as to throw out the self approval ticket, and after all other starting nodes are informed to carry out the private key signature on the updated intelligent contract, all the starting nodes are indicated to throw out the approval ticket, so that the contract establishment message of the updated intelligent contract is broadcast to the first block chain network.
The node that broadcasts the contract establishment message for updating the intelligent contract to the first blockchain network may be any originating node in the federation chain, such as a change originating node or any one of other originating nodes, which is not limited herein.
In some possible examples, of course, the second blockchain change information may not be approved by all originating nodes, in this case, the unauthorized originating node may refine the second blockchain change information to compensate for the error of the change originating node, and specifically, if the second blockchain change information is not confirmed, the unauthorized originating node may modify the second blockchain change information, for example, the information included in the initial second blockchain change information is "originating node 1 exits", the originating node that the unconfirmed originating node finds exiting further includes originating node 2, at this time, the unconfirmed originating node broadcasts the modified intelligent contract signed by the private key of its originating node to the first blockchain network, for example, broadcasts the modified intelligent contract containing the change information "originating nodes 1 and 2 exit" signed by the private key of its originating node to the first blockchain network.
Of course, in this example, the modified intelligent contract also needs to be approved by other originating nodes in the federation chain, and the other originating nodes receive the modified intelligent contract signed by the private key of the other originating node, and verify the private key signature of the other originating node by using the node public key acquired in advance, if the verification passes, the modified intelligent contract is indeed sent by the originating node which is not confirmed, so that the modified intelligent contract is analyzed and modified to obtain block chain modification information, the block chain modification information is verified, if the block chain modification information is confirmed, the modified intelligent contract signed by the private key of the originating node is broadcast to the first block chain network, i.e. a vote is given for the block chain modification information, and after all other originating nodes are informed to sign the modified intelligent contract by the private key, the modified intelligent contract indicates that all originating nodes approve the block chain modification information, the blockchain modification information is reasonably legitimate, broadcasting a contract-establishment message to the second blockchain network that modifies the intelligent contract.
103, the accounting node receives the contract establishment message for updating the intelligent contract, analyzes and updates the intelligent contract to obtain second block chain change information, determines a change type corresponding to the second block chain change information, obtains, from the second block chain change information, block chain client download information corresponding to the format of the new block if the change type corresponding to the second block chain change information is the format change type of the new block, and installs, according to the block chain client download information, a block chain client corresponding to the format of the new block to generate new block content according to the format of the new block through the block chain client, so that other nodes can be recorded in a block chain account book after judging that the new block content conforms to the updated intelligent contract.
Specifically, after the contract establishment message of the intelligent contract is updated, the block chain provides services according to a new contract, the accounting node receives the contract establishment message of the intelligent contract, analyzes the updated intelligent contract to obtain second block chain change information, and determines a change type corresponding to the second block chain change information, so that the services can be adjusted according to the change type.
In an embodiment of the present invention, if the change type corresponding to the second blockchain change information is known as the format change type of the new block, for example, the format of the consensus mechanism of the new block is changed to obtain the accounting right from the accounting node which first calculates the solution to the random problem, the change is changed to obtain the accounting right from the accounting node which first completes the game, it is clear that a new client is required to accommodate such a format change, the blockchain client download information corresponding to the format of the new block is obtained from the second blockchain change information, the client download information may be a blockchain client installation package or a download address of the blockchain client installation package, and then, generating new block content according to the format of the new block through the block chain client, so that other nodes are linked into the block chain account book after judging that the new block content meets the updated intelligent contract.
In another embodiment of the present invention, if it is known that the change type corresponding to the second block chain change information is a parameter change type of the new block, for example, a change of a parameter in a new block generation algorithm, the block adjustment parameter is obtained from the second block chain change information, and the content of the new block is generated according to the block adjustment parameter, so that other nodes are recorded in the block chain ledger after determining that the content of the new block conforms to the update intelligent contract.
In another embodiment of the present invention, if it is known that the change type corresponding to the second block chain change information is a starting node change type, for example, the starting node is added and exited, a new block content is generated according to a currently adopted block generation rule, so that other nodes are recorded in a block chain ledger.
To sum up, in the contract adjustment processing method for a block chain according to the embodiment of the present invention, an update start node generates an update intelligent contract for modifying the contract content of a second block chain, and broadcasts the update intelligent contract signed by a private key of the change start node to a first block chain network, and other start nodes verify the update intelligent contract, and if the verification is passed, broadcasts the update intelligent contract signed by a private key of their own start node to the first block chain network, and broadcasts a contract establishment message for updating the intelligent contract to the second block chain network after knowing that all other start nodes perform private key signature on the update intelligent contract; and the accounting node receives the contract establishment message for updating the intelligent contract and generates a block according to the updated intelligent contract. Therefore, a flexible evolution mechanism of the block generation contract is provided, support is provided for adapting to service change and the change of the starting node, and the stability and the flexibility of the block chain are improved.
In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the contract adjustment processing method of the block chain described in the foregoing embodiments is implemented.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which, when executed by a processor, is capable of implementing the contract adjustment processing method of a block chain as described in the foregoing embodiments.
In the present invention, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (8)
1. A contract adjustment processing method for a blockchain is applied to a first blockchain and a second blockchain, wherein the first blockchain is used for recording a change scheme of the second blockchain, so that a billing node in the second blockchain generates a new block according to the change scheme recorded by the first blockchain, and the first blockchain comprises a change starting node and other starting nodes, and the contract adjustment processing method comprises the following steps:
the change starting node generates an updated intelligent contract used for modifying the content of the second block chain contract, and broadcasts the updated intelligent contract signed by a private key of the change starting node to the first block chain network;
the other starting nodes receive the updated intelligent contract signed by the private key of the changed starting node, verify the private key signature of the changed starting node by applying the node public key of the changed starting node obtained in advance, analyze the updated intelligent contract to obtain the second block chain change information if the verification is passed, broadcast the updated intelligent contract signed by the private key of the self starting node to the first block chain network if the second block chain change information is confirmed, and broadcast the contract establishment message of the updated intelligent contract to the second block chain network after all other starting nodes are informed to sign the private key of the updated intelligent contract;
a bookkeeping node receives the contract establishment message of the updated intelligent contract, analyzes the updated intelligent contract to acquire second block chain change information, determines a change type corresponding to the second block chain change information, acquires block chain client download information corresponding to the format of a new block from the second block chain change information if the change type corresponding to the second block chain change information is a format change type of the new block, and installs a block chain client corresponding to the format of the new block according to the block chain client download information to generate new block content according to the format of the new block through the block chain client, so that other nodes can record the new block content into a block chain book after judging that the new block content conforms to the updated intelligent contract;
after the analyzing the updated intelligent contract to obtain the second blockchain change information, the method further includes:
if the second block chain change information is not confirmed, modifying the second block chain change information, and broadcasting a modified intelligent contract signed by a private key of a starting node of the first block chain network to the first block chain network;
other starting nodes receive the modified intelligent contract signed by the private key of other starting nodes, verify the private key signature of other starting nodes by using a node public key acquired in advance, analyze the modified intelligent contract to acquire block chain modification information if the verification is passed, broadcast the modified intelligent contract signed by the private key of the self starting node to the first block chain network if the block chain modification information is confirmed, and broadcast the contract establishment message of the modified intelligent contract to the second block chain network after all other starting nodes are known to carry out the private key signature on the modified intelligent contract;
and the accounting node receives the contract establishment message of the modified intelligent contract, analyzes the modified intelligent contract to obtain second block chain modification information, determines a modification type corresponding to the second block chain modification information, and generates and processes a new block according to the modification type.
2. The method of claim 1, wherein after said determining the change type corresponding to the second blockchain change information, further comprising:
and if the change type corresponding to the second block chain change information is known to be the parameter change type of the new block, acquiring a block adjustment parameter from the second block chain change information, and generating new block content according to the block adjustment parameter, so that other nodes are recorded in a block chain account book after judging that the new block content conforms to the updated intelligent contract.
3. The method of claim 1, wherein after said determining the change type corresponding to the second blockchain change information, further comprising:
and if the change type corresponding to the second block chain change information is known to be the initial node change type, generating new block content according to a currently adopted block generation rule so as to enable other nodes to be recorded in a block chain account book.
4. A block chain contract adjustment processing system, comprising: a change starting node, other starting nodes and a billing node, wherein the change starting node and the other starting nodes are nodes in a first block chain, and the billing node is a node in a second block chain, wherein the first block chain is used for recording a change scheme of the second block chain, so that the billing node in the second block chain generates a new block according to the change scheme recorded by the first block chain, wherein the first block chain comprises the change starting node and the other starting nodes, and wherein,
the change starting node is used for generating an updated intelligent contract used for modifying the content of the second blockchain contract and broadcasting the updated intelligent contract signed by a private key of the change starting node to the first blockchain network;
the other starting nodes are used for receiving the updated intelligent contract signed by the private key of the changed starting node, verifying the private key signature of the changed starting node by applying a node public key of the changed starting node obtained in advance, analyzing the updated intelligent contract to obtain second block chain change information if the verification is passed, broadcasting the updated intelligent contract signed by the private key of the self starting node to the first block chain network if the second block chain change information is confirmed, and broadcasting the contract establishment message of the updated intelligent contract to the second block chain network after all other starting nodes are informed to carry out private key signature on the updated intelligent contract;
the accounting node is configured to receive the contract establishment message for updating the intelligent contract, analyze the updated intelligent contract to obtain the second blockchain change information, determine a change type corresponding to the second blockchain change information, obtain, if it is known that the change type corresponding to the second blockchain change information is a format change type of a new block, a blockchain client corresponding to a format of the new block from the second blockchain change information, and install, according to the blockchain client download information, a blockchain client corresponding to the format of the new block, so as to generate, by the blockchain client, new block content according to the format of the new block, so that other nodes record, after determining that the new block content conforms to the updated intelligent contract, in a blockchain account book;
the accounting node is further configured to modify the second blockchain change information if the second blockchain change information is not confirmed, and broadcast a modified intelligent contract signed by a private key of a self-originating node to the first blockchain network;
the other starting nodes are also used for receiving the modified intelligent contract signed by the private keys of the other starting nodes, verifying the private key signature of the other starting nodes by applying a node public key obtained in advance, analyzing the modified intelligent contract to obtain block chain modification information if the verification is passed, broadcasting the modified intelligent contract signed by the private key of the self starting node to the first block chain network if the block chain modification information is confirmed, and broadcasting the contract establishment message of the modified intelligent contract to the second block chain network after all other starting nodes are known to carry out the private key signature on the modified intelligent contract;
the accounting node is further configured to receive the contract establishment message for modifying the intelligent contract, analyze the modified intelligent contract to obtain second block chain modification information, determine a modification type corresponding to the second block chain modification information, and perform generation processing of a new block according to the modification type.
5. The system of claim 4,
and the accounting node is further configured to, if it is known that the change type corresponding to the second block chain change information is a parameter change type of a new block, obtain a block adjustment parameter from the second block chain change information, and generate new block content according to the block adjustment parameter, so that other nodes record the new block content into a block chain account book after determining that the new block content conforms to the updated intelligent contract.
6. The system of claim 4,
and the accounting node is further configured to generate new block content according to a currently adopted block generation rule if it is known that the change type corresponding to the second block chain change information is the initial node change type, so that other nodes are registered in a block chain account book.
7. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of contract adjustment processing for a chain of blocks as claimed in any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a contract adjustment processing method of a block chain according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811577888.XA CN109451061B (en) | 2018-12-20 | 2018-12-20 | Contract adjustment processing method and system for block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811577888.XA CN109451061B (en) | 2018-12-20 | 2018-12-20 | Contract adjustment processing method and system for block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109451061A CN109451061A (en) | 2019-03-08 |
CN109451061B true CN109451061B (en) | 2021-06-01 |
Family
ID=65535788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811577888.XA Active CN109451061B (en) | 2018-12-20 | 2018-12-20 | Contract adjustment processing method and system for block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109451061B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110009362B (en) * | 2019-04-02 | 2021-07-06 | 北京众享比特科技有限公司 | Block chain intelligent contract modification method and device and computer readable storage medium |
WO2019120330A2 (en) * | 2019-04-08 | 2019-06-27 | Alibaba Group Holding Limited | Product promotion using smart contracts in blockchain networks |
US11606442B2 (en) | 2019-06-07 | 2023-03-14 | Microsoft Technology Licensing, Llc | Subscription to edits of blockchain transaction |
CN110266501B (en) * | 2019-07-08 | 2022-02-11 | 中国联合网络通信集团有限公司 | Block chain node device and block chain network system |
US11115804B2 (en) | 2019-10-04 | 2021-09-07 | Microsoft Technology Licensing, Llc | Subscription to dependencies in smart contracts |
CN110751483A (en) * | 2019-10-14 | 2020-02-04 | 四川长虹电器股份有限公司 | Financial accounting and sales rushing method and device based on block chain and electronic equipment |
CN111639127B (en) * | 2020-05-11 | 2022-05-13 | 支付宝实验室(新加坡)有限公司 | Method, system, device and equipment for updating intelligent contract |
CN111444215A (en) * | 2020-06-12 | 2020-07-24 | 支付宝(杭州)信息技术有限公司 | Blocking method, device and equipment in block chain type account book |
CN113300855B (en) * | 2021-05-25 | 2022-05-03 | 浙江大学 | Variable strategy-based alliance link voting management method and system |
CN117172913B (en) * | 2023-10-12 | 2024-02-13 | 广州保德来小额贷款有限公司 | Intelligent contract-based contract change procedure execution method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1743984A (en) * | 2004-09-03 | 2006-03-08 | 台达电子工业股份有限公司 | Data copying method for programmeable logic controller |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
WO2017148527A1 (en) * | 2016-03-03 | 2017-09-08 | Nec Europe Ltd. | Method for managing data in a network of nodes |
TWI614713B (en) * | 2017-01-23 | 2018-02-11 | 現代財富控股有限公司 | Smart contract version control system and method thereof based on blockchain |
CN108681943A (en) * | 2018-05-18 | 2018-10-19 | 百度在线网络技术(北京)有限公司 | A kind of data processing method, device, equipment and the storage medium of block chain network |
CN108833398A (en) * | 2018-06-08 | 2018-11-16 | 浙江超脑时空科技有限公司 | A kind of block chain intelligence contract update method, device and equipment |
CN109003187A (en) * | 2018-07-25 | 2018-12-14 | 广东工业大学 | A kind of update upgrade method of block chain intelligence contract |
CN109033888A (en) * | 2018-07-27 | 2018-12-18 | 深圳市汇尊区块链技术有限公司 | It is a kind of intelligence contract source code mechanism is disclosed |
-
2018
- 2018-12-20 CN CN201811577888.XA patent/CN109451061B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1743984A (en) * | 2004-09-03 | 2006-03-08 | 台达电子工业股份有限公司 | Data copying method for programmeable logic controller |
WO2017148527A1 (en) * | 2016-03-03 | 2017-09-08 | Nec Europe Ltd. | Method for managing data in a network of nodes |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
TWI614713B (en) * | 2017-01-23 | 2018-02-11 | 現代財富控股有限公司 | Smart contract version control system and method thereof based on blockchain |
CN108681943A (en) * | 2018-05-18 | 2018-10-19 | 百度在线网络技术(北京)有限公司 | A kind of data processing method, device, equipment and the storage medium of block chain network |
CN108833398A (en) * | 2018-06-08 | 2018-11-16 | 浙江超脑时空科技有限公司 | A kind of block chain intelligence contract update method, device and equipment |
CN109003187A (en) * | 2018-07-25 | 2018-12-14 | 广东工业大学 | A kind of update upgrade method of block chain intelligence contract |
CN109033888A (en) * | 2018-07-27 | 2018-12-18 | 深圳市汇尊区块链技术有限公司 | It is a kind of intelligence contract source code mechanism is disclosed |
Also Published As
Publication number | Publication date |
---|---|
CN109451061A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109451061B (en) | Contract adjustment processing method and system for block chain | |
CN111047319B (en) | Transaction processing method of block chain network and block chain network | |
CN107483509B (en) | A kind of auth method, server and readable storage medium storing program for executing | |
CN109359691B (en) | Identity verification method and system based on block chain | |
CN109242467B (en) | Block chain-based networking method and device, computer equipment and storage medium | |
CN112311735B (en) | Credible authentication method, network equipment, system and storage medium | |
CN111224788B (en) | Electronic contract management method, device and system based on block chain | |
CN111079136B (en) | Fog computing intrusion detection feature sharing system based on block chain technology | |
US12008145B2 (en) | Method and server for certifying an electronic document | |
CN109146483B (en) | Credit recording method and system based on block chain network | |
CN108769230B (en) | Transaction data storage method, device, server and storage medium | |
CN110958118A (en) | Certificate authentication management method, device, equipment and computer readable storage medium | |
CN103560889B (en) | Precision identity authentication method between X509 digital certificate and certificate application | |
CN108880832B (en) | Block chain real-name authentication method and system | |
CN112152778B (en) | Node management method and device and electronic equipment | |
CN111222174A (en) | Joining method, verification method, device and storage medium of block chain node | |
KR20130085545A (en) | Apparatus and method for applications signature | |
CN112910661B (en) | Block chain consensus method, device, equipment and medium suitable for electronic subscription | |
CN114338242B (en) | Cross-domain single sign-on access method and system based on block chain technology | |
CN113312664A (en) | User data authorization method and user data authorization system | |
CN114978635A (en) | Cross-domain authentication method and device, and user registration method and device | |
CN115292684A (en) | Block chain based inquiry letter data processing method and block chain system | |
US20130318353A1 (en) | Method for Creating and Installing a Digital Certificate | |
CN102857497A (en) | User access system and authentication method based on hybrid type content network of CDN (Content Distribution Network) and P2P (peer to peer) | |
CN111800270A (en) | Certificate signing method and device, storage medium and computer 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 | ||
CB02 | Change of applicant information |
Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing Applicant after: IALLCHAIN Co.,Ltd. Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing. Applicant before: IALLCHAIN Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |