CN109451061A - The contract of block chain adjusts processing method and system - Google Patents
The contract of block chain adjusts processing method and system Download PDFInfo
- Publication number
- CN109451061A CN109451061A CN201811577888.XA CN201811577888A CN109451061A CN 109451061 A CN109451061 A CN 109451061A CN 201811577888 A CN201811577888 A CN 201811577888A CN 109451061 A CN109451061 A CN 109451061A
- Authority
- CN
- China
- Prior art keywords
- block chain
- contract
- block
- update
- node
- 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.)
- Granted
Links
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 proposes a kind of contracts of block chain to adjust processing method and system, wherein, method includes: to change original node to generate the update intelligence contract for being used for modifying the second block chain treaty content, and the update intelligence contract by changing original node private key signature is broadcasted to the first block chain network, other original node verification update intelligence contracts, update intelligence contract if being verified to the broadcast of the first block chain network by itself original node private key signature, after knowing other all original nodes all to intelligent contract progress private key signature is updated, the contract establishment message for updating intelligent contract is broadcasted to the second block chain network;Accounting nodes receive the contract establishment message for updating intelligent contract, and the generation of block is carried out according to the intelligent contract of update.A kind of flexible evolutionary mechanism of block chain contract is provided as a result, is provided support to adapt to the environmental change of block chain, is improved the stability and flexibility of block chain.
Description
Technical field
The present invention relates to the contracts of block chain technical field more particularly to a kind of block chain to adjust processing method and system.
Background technique
In general, block chain technology is due to the safety by realizing transaction based on the information exchange between node and node
Guarantee, reduces and trust cost and be used widely.Wherein, the service of block chain is carried out according to block chain contract, should
The common recognition mechanism etc. of block generation is defined in block chain contract.
In the related technology, block chain contract is made according to demand on Vehicles Collected from Market and the concrete condition of original node etc.
It is fixed, it is difficult to change once formulating, just as the common recognition mechanism that block chain contract includes, such as Pow, Pos, DPos and some mixing
Common recognition mechanism, these common recognition mechanism are also to be formulated according to Vehicles Collected from Market needs, however, the variation of the market demand, original node
The variations of the environment such as variation, transaction record format will be difficult to estimate, unalterable block chain contract will will lead to block
Chain flexibility is lower, and application prospect causes anxiety.
Summary of the invention
The present invention provides a kind of contract adjustment processing method and system of block chain, to solve in the prior art, block chain
Contract is difficult to change once formulating, and block chain is caused to be difficult to adapt to the variation of environment, the poor technical problem of application prospect.
First embodiment of the invention provides a kind of contract adjustment processing method of block chain, and the method is applied to the firstth area
In block chain and the second block chain, wherein the first block chain is used to record the change scheme of the second block chain, so that institute
The accounting nodes stated in the second block chain generate new block, the contract according to the change scheme of the first block chained record
Adjustment processing method includes: to change the update that original node is generated for modifying the second block chain treaty content intelligently to close
About, and to the first block chain network the update intelligence contract by changing original node private key signature is broadcasted;Other are original
Node receives the update intelligence contract by changing original node private key signature, and the change wound that application obtains in advance
The node public key verifying of beginning node is described to change original node private key signature, if being verified, parses the update and intelligently closes
The second block chain modification information is about obtained, if confirmation the second block chain modification information, to the first block chain
Update intelligence contract of the Web broadcast by itself original node private key signature, when knowing other all original nodes all to institute
State after the intelligent contract of update carries out private key signature, Xiang Suoshu the second block chain network broadcast the contract for updating intelligent contract at
Vertical message;Accounting nodes receive the contract for updating intelligent contract and set up message, parse the intelligent contract of the update and obtain institute
It states the second block chain modification information, and determines the corresponding change type of the second block chain modification information, if knowing described the
The corresponding change type of two block chain modification informations is the format change type of new block, then changes and believe from the second block chain
Block chain client downloads information corresponding with the format of the new block is obtained in breath, and according under the block chain client
Information carrying breath installs corresponding with the format of new block block chain client, with by the block chain client according to
The format of new block generates new block content, so that other nodes judges that the new block content meets the intelligent conjunction of updates
It about charges to afterwards in block chain account book.
Second embodiment of the invention provides a kind of contract adjustment processing system of block chain, comprising: change original node, its
He originates node and accounting nodes, wherein described to change when originating node and other described original nodes in the first block chain
Node, the accounting nodes are the nodes in the second block chain, wherein the first block chain is for recording second block
The change scheme of chain, so that the accounting nodes in the second block chain are raw according to the change scheme of the first block chained record
The block of Cheng Xin, wherein it is described to change original node, for generating the update for modifying the second block chain treaty content
Intelligent contract, and the update intelligence contract by changing original node private key signature is broadcasted to the first block chain network;Institute
Other original nodes are stated, for receiving the update intelligence contract by changing original node private key signature, and application is preparatory
The original node private key signature of the node public key verifying change that node is originated in the change obtained solves if being verified
It analyses the intelligent contract of the update and obtains the second block chain modification information, if confirmation the second block chain modification information,
Update intelligence contract to the first block chain network broadcast by itself original node private key signature, when knowing all its
After his original node all carries out private key signature to the intelligent contract of the update, Xiang Suoshu the second block chain network broadcasts the update
The contract of intelligent contract sets up message;The accounting nodes set up message, solution for receiving the contract for updating intelligent contract
It analyses the intelligent contract of the update and obtains the second block chain modification information, and determine that the second block chain modification information is corresponding
Change type, if know the corresponding change type of the second block chain modification information be new block format change type,
Block chain client downloads information corresponding with the format of the new block is then obtained from the second block chain modification information,
And block chain client corresponding with the format of the new block is installed according to the block chain client downloads information, to pass through
The block chain client generates new block content according to the format of the new block, so that other nodes are judging the new district
Block content is charged in block chain account book after meeting the intelligent contract of the update.
Third embodiment of the invention provides a kind of computer equipment, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, when the processor executes the computer program, realize such as above-mentioned implementation
The contract of the block chain of example description adjusts processing method.
Fourth embodiment of the invention provides a kind of computer readable storage medium, is stored thereon with computer program, described
Realize that the contract of the block chain as described in above-described embodiment adjusts processing method when computer program is executed by processor.
Technical solution provided in an embodiment of the present invention can include the following benefits:
It changes original node and generates update intelligence contract for modifying the second block chain treaty content, and to the first block
The update intelligence contract of node private key signature is originated in chain network broadcast by changing, other original node verification updates are intelligently closed
About, the update intelligence contract if being verified to the broadcast of the first block chain network by itself original node private key signature, when
After knowing other all original nodes all to intelligent contract progress private key signature is updated, broadcasts and update to the second block chain network
The contract of intelligent contract sets up message;Accounting nodes receive the contract establishment message for updating intelligent contract, close according to intelligence is updated
About carry out the generation of block.A kind of flexible evolutionary mechanism of block chain contract is provided as a result, is become to adapt to the environment of block chain
Change provides support, improves the stability and flexibility of block chain, application prospect is preferable.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein
Fig. 1 is the structural schematic diagram of the contract adjustment processing system of block chain according to an embodiment of the invention;
Fig. 2 is the interaction schematic diagram of the contract adjustment processing system of block chain according to an embodiment of the invention;
Fig. 3 is the flow chart of the contract adjustment processing method of block chain according to an embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In order to solve the relative immobility for the block chain contract mentioned in above-mentioned background technique, block chain is caused to be difficult to adapt to
The technical issues of non-intellectual variation of environment, the present invention provides a kind of flexible evolutionary mechanism of block generation contract, to answer
Support is provided with the variation of environment, improves the stability and flexibility of block chain.
Wherein, clear for description, the contract adjustment processing system of the block chain of the embodiment of the present invention is carried out first
Description, Fig. 1 is the structural schematic diagram of the contract adjustment processing system of block chain according to an embodiment of the invention, such as Fig. 1 institute
Show, which includes changing original node 100, other original nodes 200 and accounting nodes 300, wherein changes original node
100, other original nodes 200 are original nodes, and original node can be understood as the initiation node of block chain, be block chain most
The maker of first contract, original node may include some higher organizations of authority, alternatively, being in some most value structures
The shareholder etc. of holding of shares, original node is usually multiple, and multiple original nodes are formulated jointly is adapted to current application environment
Block chain contract.Wherein, multiple original nodes are conditioned each other based on voting mechanism, are avoided individually originating node formulation and be disrupted the market
The contract etc. of timing, accounting nodes are the node for participating in block in block chain and generating, and block chain contract includes the generation lattice of block
The various block chain business such as formula, the present case (including allotment of shares) of original node for information about, change original node and
Node when other original nodes in the first block chain, accounting nodes are the nodes in the second block chain, wherein the first block chain
For recording the change scheme of the second block chain, so that the change of accounting nodes in the second block chain according to the first block chained record
The new block of more schemes generation.
Referring to Fig. 2, in practical implementation, changes original node and generate for modifying the second block chain treaty content
Intelligent contract is updated, and broadcasts the update intelligence contract (step by changing original node private key signature to the first block chain network
Rapid 1) block chain contract can be modified according to Vehicles Collected from Market variation by changing original node, certainly, in order to avoid some change wounds
Beginning node holds inaccurate market trends, alternatively, illegal more new block chain contract of disrupting the market, alternatively, the original section obtained
The current information inaccuracy of point, it is also necessary to other original nodes are verified to intelligent contract is updated, specifically, other original sections
The update intelligence contract of node private key signature, and the section for changing original node that application obtains in advance are originated in point reception by changing
Point public key verifications change original node private key signature (step 2), if being verified, parse the intelligent contract of update and obtain the secondth area
Block chain modification information, if the second block chain modification information of confirmation, to the broadcast of the first block chain network by itself original node
The update intelligence contract of private key signature, when knowing that the original nodes of all other all carry out private key signature to updating intelligent contract
Afterwards, then show the intelligent updating contract in accordance with market trends, thus, the conjunction for updating intelligent contract is broadcasted to the second block chain network
About set up message (step 3).
After new block chain contract is set up, control block chain implements block chain business according to the new block chain contract,
Specifically, accounting nodes receive the contract establishment message for updating intelligent contract, and parsing updates intelligent contract and obtains the second block chain
Modification information, and determine the corresponding change type (step 4) of the second block chain modification information, if knowing the second block chain change letter
The format change type that corresponding change type is new block is ceased, then is obtained from the second block chain modification information and new block
The corresponding block chain client downloads information of format, and according to the format pair of block chain client downloads information installation and new block
The block chain client answered, to generate new block content according to the format of new block by block chain client, so that other are saved
Point charges to (step 5) in block chain account book after judging that new block content meets the intelligent contract of update.
As a result, the block chain of the embodiment of the present invention contract adjust processing method, can with the flexible variation of adaptive environment,
For example, being adapted to turn of the market demand, the generating mode etc. of new block is changed, for another example, is adapted to adding for original node
Enter and exit, substantially increases the stability and flexibility of block chain.
Fig. 3 is the flow chart of the contract adjustment processing method of block chain according to an embodiment of the invention, and this method is answered
For in the first block chain and the second block chain, wherein the first block chain is used to record the change scheme of the second block chain, and first
Composition node in block chain is usually original node, which can be interpreted as by equity holding side or authority
Alliance's chain of higher organization's composition, the second block chain can be the block life for meet the transactional services of market needs
At super block chain, as shown in figure 3, this method comprises:
Step 101, it changes and originates the update intelligence contract that node generation is used to modify the second block chain treaty content, and to
The update intelligence contract of node private key signature is originated in the broadcast of first block chain network by changing.
Wherein, the second block chain contract includes that block generates format (Format Type, common recognition mechanism including mechanism of knowing together
Parameter, block generating algorithm etc.), the concrete condition variation of original node (including originating the addition of node and exiting, originate node
Allocation of Equity variation etc.) etc..
It is appreciated that original node variation the case where detecting above-mentioned original node is changed, alternatively, the change of the market demand
Change (for example the business model of Vehicles Collected from Market is more adapted to the block generating mode of another format, or, the block of another format
Generating mode is safer etc. relative to current web technology) when, in order to guarantee that the second block chain adapts to this application environment
Variation may update the second block chain contract based on variation, alternatively, the new suggestion of intelligent contract is proposed, to build according to this
View updates the second block chain contract, and broadcasts the update intelligence by changing original node private key signature to the second block chain network
Contract.
It should be noted that in an embodiment of the present invention, authentication is carried out to node based on public key certificate technology, it is public
Key certificate technique and core be a pair of secret keys, the basic principle is that: the information content encrypted by a key, Zhi Nengyou
Another paired key just can be carried out matching.Encrypted public key can widely issue correspondent related with oneself i.e. its
His node, encryption key then need to store fool proofly.In use, interdependent node is using private key to block broadcast message
It is signed and sends other nodes to, the public key that the interdependent node can be used in other nodes completes the body to the interdependent node
Part certification.
Step 102, other original nodes receive the update intelligence contract by changing original node private key signature, and apply
The node public key verifying of the original node of the change obtained in advance is changed original node private key signature and is parsed more if being verified
New intelligence contract obtains the second block chain modification information, if the second block chain modification information of confirmation, to the first block chain network
Update intelligence contract of the broadcast by itself original node private key signature, when knowing other all original nodes all to updating intelligence
After energy contract carries out private key signature, the contract establishment message for updating intelligent contract is broadcasted to the second block chain network.
Understandable to be, current application scene may not adapted to by changing the update intelligence contract that original node generates
Real change, for example, without the objective real change etc. for reacting original node, it is then desired to which other original nodes are tested jointly
Whether legitimate demonstrate,prove the update intelligence contract.
Specifically, other original nodes receive the update intelligence contract by changing original node private key signature, right first
The node public key verifying of the original node of the change that the legitimate verification of the sender of the update intelligence contract, i.e. application obtain in advance
Original node private key signature is changed, if unanimously, showing that sender's legitimate verification passes through, thus, parsing updates intelligent contract
The second block chain modification information is obtained, whether legitimate, if by grinding if further verifying the second block chain modification information
The real change for confirming that the second block chain modification information adapts to current application environment is studied carefully, for example, objective react original node
Real change, then confirm the second block chain modification information.
Confirm that the original node of the second block chain modification information originates section by itself to the broadcast of the first block chain network
The update intelligence contract of point private key signature, to launch oneself affirmative vote, when knowing other all original nodes all to update
After intelligent contract carries out private key signature, then show that all original nodes have all launched affirmative vote, thus to the first block link network
The contract that network broadcast updates intelligent contract sets up message.
Wherein, the node that the contract establishment message for updating intelligent contract is broadcasted to the first block chain network can be alliance's chain
In any one original node, for example be any one node changed in original node or other original nodes,
This is with no restriction.
Certainly, in some possible examples, possible second block chain modification information can not obtain all original nodes
Approval, in this case, the original node that do not approve can improve the second block chain modification information, with make up change wound
The mistake of beginning node, specifically, the second block chain modification information, the original node not confirmed can be to the secondth areas if not confirming
Block chain modification information is modified, for example, the information for including in initial second block chain modification information is that " original node 1 moves back
Out ", and original node that the discovery of original node that this does not confirm is exited further includes original node 2, at this point, the original section not confirmed
Modification intelligence contract o'clock to the broadcast of the first block chain network by itself original node private key signature, for example, to the first block
Chain network broadcast is the modification intelligence of " original node 1 and 2 exits " comprising modification information by itself original node private key signature
It can contract.
Certainly, in this example, intelligent contract is modified to be also required to obtain the approval that other in alliance's chain originate node, other
Original node receives the modification intelligence contract by other original node private key signatures, and the node public key that application obtains in advance is tested
It demonstrate,proves other original node private key signatures and shows the original node that the modification intelligence contract does not confirm strictly if being verified
What itself sent, thus, analytic modification intelligence contract obtains block chain modification information, tests the block chain modification information
Card, the modification if confirmation block chain modification information, to the broadcast of the first block chain network by itself original node private key signature
Intelligent contract, as the block chain modification information appear affirmative vote, when knowing the original nodes of all other all to modification intelligence
After contract carries out private key signature, then show that all original nodes are recognized the block chain modification information, block chain modification
Information is legitimate, to broadcast the contract establishment message for modifying intelligent contract to the second block chain network.
Step 103, accounting nodes, which receive, updates the contract of intelligent contract and sets up message, and parsing updates intelligent contract and obtains the
Two block chain modification informations, and determine the corresponding change type of the second block chain modification information, if knowing, the second block chain is changed
The corresponding change type of information is the format change type of new block, then acquisition and new block from the second block chain modification information
The corresponding block chain client downloads information of format, and according to the installation of block chain client downloads information and the format of new block
Corresponding block chain client, to generate new block content according to the format of new block by block chain client, so that other
Node is charged in block chain account book after judging that new block content meets the intelligent contract of update.
Specifically, after the contract for updating intelligent contract sets up message, block chain will provide service, note according to new contract
Account node receives the contract establishment message for updating intelligent contract, and parsing updates intelligent contract and obtains the second block chain modification information,
And determine the corresponding change type of the second block chain modification information, it is serviced in order to be adjusted according to change type.
In one embodiment of the invention, if when knowing that the corresponding change type of the second block chain modification information is new district
The format change type of block, for example, the format of the common recognition mechanism of new block by calculating the note for striving for answer of stochastic problem at first
Account node obtains book keeping operation power, changes to obtain book keeping operation power by the accounting nodes for being initially completed game, then has clearly a need for new client
End obtains block chain client corresponding with the format of new block to adapt to this format change from the second block chain modification information
Download information is held, which can be where block chain client installation kit or block chain client installation kit
Download address etc. generates new block content according to the format of new block by block chain client, so that other nodes in turn
Chain enters in block chain account book after judging that new block content meets the intelligent contract of update.
In another embodiment of the present invention, if knowing, the corresponding change type of the second block chain modification information is new district
The Parameters variation type of block, for example, in new block generating algorithm some parameter variation, then from the second block chain modification information
Block adjusting parameter is obtained, and new block content is generated according to block adjusting parameter, so that other nodes are judging in new block
Appearance is charged in block chain account book after meeting the intelligent contract of update.
In another embodiment of the present invention, if knowing, the corresponding change type of the second block chain modification information is original
Node change type, for example, increasing newly and exiting for original node, then generate new block according to currently employed block create-rule
Content, so that other nodes are charged in block chain account book.
To sum up, the contract of the block chain of the embodiment of the present invention adjusts processing method, changes original node and generates for modifying
The update intelligence contract of second block chain treaty content, and broadcast to the first block chain network by changing original node private key label
The update intelligence contract of name, other original node verification update intelligence contracts, to the first block chain network if being verified
Update intelligence contract of the broadcast by itself original node private key signature, when knowing other all original nodes all to updating intelligence
After energy contract carries out private key signature, the contract establishment message for updating intelligent contract is broadcasted to the second block chain network;Accounting nodes
The contract establishment message for updating intelligent contract is received, the generation of block is carried out according to the intelligent contract of update.One kind is provided as a result,
Block generates the flexible evolutionary mechanism of contract, provides support for the variation of adaptation business and the variation of original node, improves area
The stability and flexibility of block chain.
In order to realize above-described embodiment, the invention also provides a kind of computer equipment, including memory, processor and deposit
The computer program that can be run on a memory and on a processor is stored up, it is real when the processor executes the computer program
Now the contract of the block chain as described in previous embodiment adjusts processing method.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon
Computer program is contained, can be realized the block chain as described in previous embodiment when the computer program is executed by processor
Contract adjust processing method.
In the present invention, term " first ", " second " are used for description purposes only, and are not understood to indicate or imply opposite
Importance or the quantity for implicitly indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be bright
Show or implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two
It is a, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (10)
1. a kind of contract of block chain adjusts processing method, which is characterized in that the method is applied to the first block chain and second
In block chain, wherein the first block chain is used to record the change scheme of the second block chain, so that second block
Accounting nodes in chain generate new block according to the change scheme of the first block chained record, and the contract adjusts processing side
Method includes:
It changes original node and generates the update intelligence contract for modifying the second block chain treaty content, and to described first
The update intelligence contract of node private key signature is originated in the broadcast of block chain network by changing;
Other original nodes receive the update intelligence contract by changing original node private key signature, and application obtains in advance
The change originate the node public key verifying of node and described change original node private key signature and parse institute if being verified
It states the intelligent contract of update and obtains the second block chain modification information, if confirmation the second block chain modification information, to institute
Update intelligence contract of the first block chain network broadcast by itself original node private key signature is stated, when knowing other all wounds
After beginning node all carries out private key signature to the intelligent contract of the update, Xiang Suoshu the second block chain network broadcasts the update intelligence
The contract of contract sets up message;
Accounting nodes receive the contract for updating intelligent contract and set up message, parse the intelligent contract acquisition of updates described the
Two block chain modification informations, and determine the corresponding change type of the second block chain modification information, if knowing secondth area
The corresponding change type of block chain modification information is the format change type of new block, then from the second block chain modification information
Block chain client downloads information corresponding with the format of the new block is obtained, and is believed according to the block chain client downloads
Breath installs corresponding with the format of new block block chain client, with by the block chain client according to the new district
The format of block generates new block content, so that other nodes are after judging that the new block content meets the intelligent contract of the update
It charges in block chain account book.
2. the method as described in claim 1, which is characterized in that corresponding in the determination the second block chain modification information
After change type, further includes:
If knowing, the corresponding change type of the second block chain modification information is the Parameters variation type of new block, from described
Block adjusting parameter is obtained in second block chain modification information, and new block content is generated according to the block adjusting parameter, with
Charge to other nodes in block chain account book after judging that the new block content meets the intelligent contract of the update.
3. the method as described in claim 1, which is characterized in that corresponding in the determination the second block chain modification information
After change type, further includes:
If knowing, the corresponding change type of the second block chain modification information is original node change type, and basis is currently adopted
Block create-rule generates new block content, so that other nodes are charged in block chain account book.
4. the method as described in claim 1, which is characterized in that obtain the second block in the intelligent contract of the parsing update
After chain modification information, further includes:
If not confirming the second block chain modification information, modify to the second block chain modification information, and to institute
State modification intelligence contract of the first block chain network broadcast by itself original node private key signature.
5. method as claimed in claim 4, which is characterized in that further include:
Other original nodes receive the modification intelligence contract that node private key signature is originated by other, and application obtains in advance
Other described original node private key signatures of node public key verifying parse the intelligent contract acquisition of the modification if being verified
Block chain modification information is created to the first block chain network broadcast by itself if confirming the block chain modification information
The modification intelligence contract of beginning node private key signature, when knowing the original nodes of all other all to the intelligent contract progress of the modification
After private key signature, Xiang Suoshu the second block chain network broadcasts the contract for modifying intelligent contract and sets up message;
Accounting nodes receive the contract for modifying intelligent contract and set up message, parse the intelligent contract of the modification and obtain the secondth area
Block chain modification information, and determine the corresponding change type of the second block chain modification information, it is carried out according to the change type
The generation of new block is handled.
6. a kind of contract of block chain adjusts processing system characterized by comprising change original node, other original nodes
And accounting nodes, wherein the node changed when originating node and other described original nodes in the first block chain, the note
Account node is the node in the second block chain, wherein the first block chain is used to record the change side of the second block chain
Case, so that the accounting nodes in the second block chain generate new area according to the change scheme of the first block chained record
Block, wherein
It is described to change original node, for generating the update intelligence contract for modifying the second block chain treaty content, and
The update intelligence contract by changing original node private key signature is broadcasted to the first block chain network;
Other described original nodes, it is described by changing the update intelligence contract of original node private key signature for receiving, and answer
The node public key verifying for originating node with the change obtained in advance is described to change original node private key signature, if verifying is logical
It crosses, then parses the intelligent contract of the update and obtain the second block chain modification information, if confirmation the second block chain change
Information, then the update intelligence contract to the first block chain network broadcast by itself original node private key signature, when knowing
After other all original nodes all carry out private key signature to the intelligent contract of the update, the broadcast of Xiang Suoshu the second block chain network
The contract for updating intelligent contract sets up message;
The accounting nodes set up message for receiving the contract for updating intelligent contract, parse the intelligent contract of the update
The second block chain modification information is obtained, and determines the corresponding change type of the second block chain modification information, if knowing
The corresponding change type of the second block chain modification information is the format change type of new block, then from the second block chain
Block chain client downloads information corresponding with the format of the new block is obtained in modification information, and according to the block chain visitor
Family end download information installs block chain client corresponding with the format of the new block, to pass through the block chain client root
New block content is generated according to the format of the new block, so that other nodes are judging that the new block content meets the update
It is charged to after intelligent contract in block chain account book.
7. system as claimed in claim 6, which is characterized in that
The accounting nodes, if being also used to know, the corresponding change type of the second block chain modification information is the ginseng of new block
Number change type then obtains block adjusting parameter from the second block chain modification information, and is adjusted and joined according to the block
Number generates new block content, so that other nodes charge to area after judging that the new block content meets the intelligent contract of the update
In block chain account book.
8. system as claimed in claim 6, which is characterized in that
The accounting nodes, if being also used to know, the corresponding change type of the second block chain modification information is that original node becomes
Change type, then new block content is generated according to currently employed block create-rule, so that other nodes charge to block chain account book
In.
9. a kind of computer equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage
The computer program of upper operation when the processor executes the computer program, is realized as described in any in claim 1-5
Block chain contract adjust processing method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Realize that the contract such as block chain as claimed in any one of claims 1 to 5 adjusts processing method when being executed by processor.
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 true CN109451061A (en) | 2019-03-08 |
CN109451061B 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) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110009362A (en) * | 2019-04-02 | 2019-07-12 | 北京众享比特科技有限公司 | Block chain intelligence contract amending method, device and computer readable storage medium |
CN110266501A (en) * | 2019-07-08 | 2019-09-20 | 中国联合网络通信集团有限公司 | Block chain node device and block chain network system |
CN110751483A (en) * | 2019-10-14 | 2020-02-04 | 四川长虹电器股份有限公司 | Financial accounting and sales rushing method and device based on block chain and electronic equipment |
CN110914857A (en) * | 2019-04-08 | 2020-03-24 | 阿里巴巴集团控股有限公司 | Product promotion using intelligent contracts in blockchain networks |
CN111444215A (en) * | 2020-06-12 | 2020-07-24 | 支付宝(杭州)信息技术有限公司 | Blocking method, device and equipment in block chain type account book |
CN111639127A (en) * | 2020-05-11 | 2020-09-08 | 支付宝实验室(新加坡)有限公司 | Method, system, device and equipment for updating intelligent contract |
WO2021066954A1 (en) * | 2019-10-04 | 2021-04-08 | Microsoft Technology Licensing, Llc | Subscription to dependencies in smart contracts |
US20220393879A1 (en) * | 2021-05-25 | 2022-12-08 | Zhejiang University | Decentralized mechanism for collaboratively governing multi-agent trade ecosystem |
US11606442B2 (en) | 2019-06-07 | 2023-03-14 | Microsoft Technology Licensing, Llc | Subscription to edits of blockchain transaction |
CN117172913A (en) * | 2023-10-12 | 2023-12-05 | 广州保德来小额贷款有限公司 | 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 |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110009362A (en) * | 2019-04-02 | 2019-07-12 | 北京众享比特科技有限公司 | Block chain intelligence contract amending method, device and computer readable storage medium |
CN110914857B (en) * | 2019-04-08 | 2023-12-12 | 创新先进技术有限公司 | Product promotions using intelligent contracts in blockchain networks |
CN110914857A (en) * | 2019-04-08 | 2020-03-24 | 阿里巴巴集团控股有限公司 | Product promotion using intelligent contracts in blockchain networks |
US11606442B2 (en) | 2019-06-07 | 2023-03-14 | Microsoft Technology Licensing, Llc | Subscription to edits of blockchain transaction |
CN110266501A (en) * | 2019-07-08 | 2019-09-20 | 中国联合网络通信集团有限公司 | Block chain node device and block chain network system |
CN110266501B (en) * | 2019-07-08 | 2022-02-11 | 中国联合网络通信集团有限公司 | Block chain node device and block chain network system |
WO2021066954A1 (en) * | 2019-10-04 | 2021-04-08 | Microsoft Technology Licensing, Llc | Subscription to dependencies in smart contracts |
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 |
CN111639127A (en) * | 2020-05-11 | 2020-09-08 | 支付宝实验室(新加坡)有限公司 | Method, system, device and equipment for updating intelligent contract |
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 |
US20220393879A1 (en) * | 2021-05-25 | 2022-12-08 | Zhejiang University | Decentralized mechanism for collaboratively governing multi-agent trade ecosystem |
CN117172913A (en) * | 2023-10-12 | 2023-12-05 | 广州保德来小额贷款有限公司 | Intelligent contract-based contract change procedure execution method and system |
CN117172913B (en) * | 2023-10-12 | 2024-02-13 | 广州保德来小额贷款有限公司 | Intelligent contract-based contract change procedure execution method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109451061B (en) | 2021-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109451061A (en) | The contract of block chain adjusts processing method and system | |
CN102301767B (en) | Through the book keeping operation based on equipment of authentication | |
CN107194694B (en) | Offline payment method based on two-dimension code | |
CN103067914B (en) | Be present in the mobile confidence platform (MTP) on WTRU | |
CN102405630A (en) | System of multiple domains and domain ownership | |
CN113194469A (en) | 5G unmanned aerial vehicle cross-domain identity authentication method, system and terminal based on block chain | |
CN107276765A (en) | The processing method and processing device known together in block chain | |
CN102017573A (en) | Method and device for dynamic deployment of trust bridges in an ad hoc wireless network | |
KR20210010506A (en) | Spectrum Management Device and Method, Wireless Network Management Device and Method, and Media | |
CN105191210B (en) | Method for policy control and charge for D2D service | |
CN101541002A (en) | Web server-based method for downloading software license of mobile terminal | |
CN110381447B (en) | Wireless spectrum access method and system based on block chain | |
CN111800410B (en) | Block chain-based data access control method, electronic device and storage medium | |
CN111786817B (en) | Safe high-speed data channel in block chain wireless access network and design method thereof | |
JP2019004263A (en) | Gateway device, usage management system, usage control method, and usage control program | |
Ryu et al. | PayGo: Incentive-comparable payment routing based on contract theory | |
CN109150807A (en) | Voucher distribution method, user terminal, user's signing authentication management unit and medium | |
CN106162646A (en) | The motivational techniques of a kind of cooperation interference realizing safety of physical layer and device | |
KR20190082620A (en) | Method for Providing Asynchronous Reverse Direction Payment by using Affiliated Store's Mobile Device with Radio Signal Sending and Cryptocurrency | |
CN101977299A (en) | Method and system for protecting mobile TV contents | |
Cheung et al. | A secure electronic payment protocol for wireless mesh networks | |
Barnickel et al. | Security and Privacy for WLAN Roaming with per-connection Tariff Negotiation | |
CN115550918A (en) | Security data updating method, USIM, terminal, device and medium | |
KR20190082639A (en) | Method for Providing Asynchronous Reverse Direction Payment by using Affiliated Store's Mobile Device with Radio Signal Sending and Cryptocurrency | |
KR20190082626A (en) | Method for Providing Asynchronous Reverse Direction Payment by using Affiliated Store's Mobile Device with Sound Signal Sending and Cryptocurrency |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |