CN109815289A - Block generation method, calculating equipment, storage medium for block chain network - Google Patents

Block generation method, calculating equipment, storage medium for block chain network Download PDF

Info

Publication number
CN109815289A
CN109815289A CN201811479031.4A CN201811479031A CN109815289A CN 109815289 A CN109815289 A CN 109815289A CN 201811479031 A CN201811479031 A CN 201811479031A CN 109815289 A CN109815289 A CN 109815289A
Authority
CN
China
Prior art keywords
block chain
node
public key
block
chain 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.)
Pending
Application number
CN201811479031.4A
Other languages
Chinese (zh)
Inventor
郝红飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Point Information Technology Co Ltd
Original Assignee
Shanghai Point Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Point Information Technology Co Ltd filed Critical Shanghai Point Information Technology Co Ltd
Priority to CN201811479031.4A priority Critical patent/CN109815289A/en
Publication of CN109815289A publication Critical patent/CN109815289A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A kind of block generation method for block chain network calculates equipment, storage medium, which comprises A. receives the first intelligent contract, the public key Hash of recipient's node and the signature of the first block chain node from the first block chain node;B. the public key Hash of present node is compared with the public key Hash of recipient's node;C. it indicates that the public key Hash of the present node is consistent with the public key Hash of recipient's node in response to comparison result, utilizes the signature of public key verifications the first block chain node of the first block chain node;D. in response to being verified, the first intelligent contract is executed, at least to generate contractual requirement, contractual requirement is used to trigger target block chain node and executes the intelligent contract of second received from the first block chain node;E. block data is added in contractual requirement, block data is for generating block.The present invention program can be managed the operation of present node and target block chain node by contractual requirement.

Description

Block generation method, calculating equipment, storage medium for block chain network
Technical field
The present invention relates to block chain technical field, more particularly to a kind of block generation method for block chain network, Calculate equipment, storage medium.
Background technique
Block chain (Blockchain) network is the intelligence equity with distributed data base identification, propagation and information-recording Network, also referred to as value internet.Block chain technology includes guaranteeing transmission and access using cryptography with block structure storing data Safety etc., can be realized data consistency storage, tamper-resistant, the technical system for going to center.
Intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract, can Show as the computer program accurately run on block chain.User terminal can be traded by using intelligent contract, be shared Data, establish trust and by the characteristic of block chain technology ensure the storages of data, reading, execute whole process it is transparent it is traceable, It can not distort.
In appropriation, participant is numerous for large-scale group, and the actual use situation of appropriation can not be effectively supervised after appropriation, It makes troubles to appropriation side the supervision of appropriation purposes.
Summary of the invention
The embodiment of the invention provides a kind of block generation methods for block chain network, calculating equipment, storage medium.
The embodiment of the present invention provides a kind of block generation method for block chain network, which comprises A. is received The public key Hash of the first intelligent contract, recipient's node from the first block chain node and the first block chain node Signature;B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result; C. indicate that the public key Hash of the present node is consistent with the public key Hash of recipient's node in response to the comparison result, The signature of first block chain node described in public key verifications using the first block chain node;D. it in response to being verified, holds The intelligent contract of row described first, at least to generate contractual requirement, the contractual requirement is for triggering the execution of target block chain node The intelligent contract of second received from the first block chain node;E. block data, the area is added in the contractual requirement Block number is according to for generating block.
Scheme described in the present embodiment can generate contract by executing the first intelligent contract from the first block chain node It is required that execute the second intelligent contract for triggering target block chain node;That is, contractual requirement is target block chain link Point executes the necessary condition of the second intelligent contract, so that the first block chain node can be by contractual requirement to present node And the operation of target block chain node is managed.Specifically in appropriation scene, appropriation side is used as the first block chain node, dials It money side can be effectively to the practical appropriation for appropriating funds user (present node) and acceptance of the bid participant (target block chain node) Purposes is supervised.
The embodiment of the present invention also provides a kind of calculating equipment, including processor and memory, is stored on the memory The computer instruction that can be run on the processor, the processor execute following step when running the computer instruction Rapid: A. receives the first intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area The signature of block chain node;B. the public key Hash of present node is compared with the public key Hash of recipient's node, with To comparison result;C. the public key Hash of the present node and the public affairs of recipient's node are indicated in response to the comparison result Key Hash is consistent, the signature of the first block chain node described in the public key verifications using the first block chain node;D. in response to It is verified, executes the described first intelligent contract, at least to generate contractual requirement, the contractual requirement is for triggering target block Chain node executes the intelligent contract of second received from the first block chain node;E. block counts are added in the contractual requirement According to the block data is for generating block.
The embodiment of the present invention also provides a kind of block generation method for block chain network, which comprises A. connects Receive the public key Hash and the first block chain node of the second intelligent contract from the first block chain node, recipient's node Signature;B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparing knot Fruit;C. the public key Hash of the present node and the public key Hash one of recipient's node are indicated in response to the comparison result It causes, the signature of the first block chain node described in the public key verifications using the first block chain node;D. in response to being verified, And there is the contractual requirement for being directed toward the present node in block chain account book, the described second intelligent contract is executed, to generate affairs Data;E. block data is added in the Transaction Information, the block data is for generating block;Wherein, the contractual requirement It is generated after executing the receive from the first block chain link point first intelligent contract by initiation block chain node and the area is written Block chain account book.
Scheme described in the present embodiment needs to have direction described current in block chain account book when executing the second intelligent contract Otherwise the contractual requirement of node will not execute the second intelligent contract, so that the first block chain node can be wanted by contract The operation to present node and initiation block chain node is asked to be managed.
The embodiment of the present invention also provides a kind of calculating equipment, including processor and memory, is stored on the memory The computer instruction that can be run on the processor, the processor execute following step when running the computer instruction Rapid: A. receives the second intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area The signature of block chain node;B. the public key Hash of present node is compared with the public key Hash of recipient's node, with To comparison result;C. the public key Hash of the present node and the public affairs of recipient's node are indicated in response to the comparison result Key Hash is consistent, the signature of the first block chain node described in the public key verifications using the first block chain node;D. in response to It is verified, and there is the contractual requirement for being directed toward the present node in block chain account book, execute the described second intelligent contract, with Generate Transaction Information;E. block data is added in the Transaction Information, the block data is for generating block;Wherein, described Contractual requirement is generated and is write after executing the receive from the first block chain link point first intelligent contract by initiation block chain node Enter the block chain account book.
The embodiment of the present invention also provides a kind of storage medium, is stored thereon with computer instruction, the computer instruction fortune The step of block generation method is executed when row.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the block generation method for block chain network of the embodiment of the present invention;
Fig. 2 is flow chart of the another kind of the embodiment of the present invention for the block generation method of block chain network;
Fig. 3 is the schematic diagram of inventive embodiments one typical application scenarios.
Specific embodiment
The embodiment of the present invention provides a kind of block generation method for block chain network, which comprises A. is received The public key Hash of the first intelligent contract, recipient's node from the first block chain node and the first block chain node Signature;B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result; C. indicate that the public key Hash of the present node is consistent with the public key Hash of recipient's node in response to the comparison result, The signature of first block chain node described in public key verifications using the first block chain node;D. it in response to being verified, holds The intelligent contract of row described first, at least to generate contractual requirement, the contractual requirement is for triggering the execution of target block chain node The intelligent contract of second received from the first block chain node;E. block data, the area is added in the contractual requirement Block number is according to for generating block.
It will be appreciated by those skilled in the art that scheme described in the present embodiment is by executing the first intelligence from the first block chain node Energy contract can generate contractual requirement, to execute the second intelligent contract for triggering target block chain node;That is, contract It is required that being the necessary condition that target block chain node executes the second intelligent contract, so that the first block chain node can pass through Contractual requirement is managed the operation of present node and target block chain node.Specifically in appropriation scene, appropriation side makees For the first block chain node, appropriation side can be effectively to appropriation user (present node) and acceptance of the bid participant (target area Block chain node) practical appropriation purposes supervised.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
Below with reference to each exemplary embodiment disclosed in attached drawing the present invention is described in detail.Flow chart and block diagram in attached drawing Show the architecture, function and operation in the cards of the method and system of disclosed various embodiments according to the present invention. It should be noted that each box in flowchart or block diagram can represent a part of a module, section or code, the mould A part of block, program segment or code may include one or more logic functions for realizing defined in each embodiment Executable instruction.It should also be noted that in some alternative implementations, function marked in the box can also be according to not It is same as the sequence marked in attached drawing generation.For example, two boxes succeedingly indicated can actually be basically executed in parallel, Or they can also execute in a reverse order sometimes, this depends on related function.It should also be noted that stream The combination of each box in journey figure and/or block diagram and the box in flowchart and or block diagram, can be used and execute regulation The dedicated hardware based systems of functions or operations realize, or the group of specialized hardware and computer instruction can be used It closes to realize.
Term as used herein "comprising", " comprising " and similar terms are understood to open term, i.e., " including/including but not limited to ", expression can also include other content.In the disclosure of invention, term "based" is " extremely It is at least partly based on ";Term " one embodiment " expression " at least one embodiment ";Expression is " at least for term " another embodiment " One other embodiment ".
Herein presented " the first block chain node " refers to, can send the block chain node of intelligent contract.Specifically exist It appropriates funds in scene, the first block chain node can be set in appropriation side, and be safeguarded by appropriation side.
Herein presented " target block chain node " refers to, by the contractual requirement triggering of the first block chain node generation Execute the block chain node with the matched intelligent contract of the contractual requirement.Specifically in appropriation scene, target block chain node can By bid participant or acceptance of the bid participant maintenance.
Herein presented " the first intelligent contract " refers to, can be used in the intelligent contract for generating contractual requirement.
Herein presented " the second intelligent contract " refers to the intelligent contract different from the first intelligent contract.
Herein presented " contractual requirement " refers to, the phase of the second intelligent contract is executed for triggering target block chain node Close data.The contractual requirement can specifically include opening of bid notice, acceptance of the bid result or signing completion notice etc..
Herein presented " Transaction Information " refers to: the various data that affairs (transaction) generate during carrying out. Further, Transaction Information may include affairs carry out during generate various intermediate data and affairs carry out after the completion of Obtained various result datas.
It should be appreciated that provide these exemplary embodiments merely to make those skilled in the art can better understand that into And realize embodiment of the disclosure, and do not in any way limit the scope of the invention.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
Fig. 1 is a kind of flow chart of the block generation method for block chain network of the embodiment of the present invention.
Wherein, the block chain network may include multiple block chain nodes that can be communicated each other, the block chain link Point can be various calculating equipment appropriate, such as personal computer (PC), server, smart phone etc..As a non-limit The example of property processed, in the present embodiment, each step shown in Fig. 1 can be executed by present node, present node can be set in dial Money user, such as can be and equipment is calculated by appropriation user management and the server used etc..
Block generation method shown in Fig. 1 may comprise steps of:
At 101, the public affairs that step A. receives the first intelligent contract from the first block chain node, recipient's node are executed The signature of key Hash and the first block chain node;
At 102, executes step B. and carry out the public key Hash of the public key Hash of present node and recipient's node It compares, to obtain comparison result;
At 103, execute step C. in response to the comparison result indicate the public key Hash of the present node with it is described The public key Hash of recipient's node is consistent, the first block chain node described in the public key verifications using the first block chain node Signature;
At 104, step D. is executed in response to being verified, the described first intelligent contract is executed, at least to generate contract It is required that the contractual requirement, which is used to trigger target block chain node, executes the second intelligence received from the first block chain node It can contract;
At 105, step E. is executed by the contractual requirement, block data is added, the block data is used for generation area Block.
It should be pointed out that the serial number of each step does not represent the limit to the execution sequence of each step in the present embodiment It is fixed.
In a non-limiting embodiment of the invention, the first block chain node be can be set in appropriation side, such as can To be that server managed and used by appropriation square tube etc. calculates equipment.
In specific implementation, the first block chain node can send the first intelligent contract to present node, for present node Execute the described first intelligent contract.First block chain node can also be sent when sending the first intelligent contract to present node The signature of the public key Hash of recipient's node and the first block chain node.Wherein, the public key Hash of recipient's node is used In for present node verifying present node whether be the first intelligent contract legitimate receipt node;The signature of first block chain node For verifying the identity of the first block chain node.
In the specific implementation of step B and step C, present node can calculate the public key Hash of present node, and judge Whether it is consistent with the public key Hash of recipient's node from the first block chain node.If consistent, present node can benefit With the signature of public key verifications the first block chain node of the first block chain node.Specifically, the signature of the first block chain node can To be using the information of the private key encryption of the first block chain node, which can utilize the public key of the first block chain node Decryption.That is, if present node can sign described in the public key decryptions using the first block chain node, then it represents that verifying Pass through.
In the specific implementation of step D and step E, after being verified, present node is able to carry out the first intelligent contract, with Generate contractual requirement.It include the contractual requirement described in block data.Block data is for generating block.Block is able to record In block chain account book.
It will be apparent to a skilled person that can refer to about the detailed process for generating block using block data existing There is technology, details are not described herein again.
In the present embodiment, block data can be recorded in block chain account book, all block chains in block chain network Node can synchronize block chain account book, so as to obtain all block datas from block chain account book, so that each area Block chain node can supervise block data.In addition, the data in block chain account book all have can not tamper so that Block data has storage security.
Scheme described in the present embodiment can generate contract by executing the first intelligent contract from the first block chain node It is required that execute the second intelligent contract for triggering target block chain node;That is, contractual requirement is target block chain link Point executes the necessary condition of the second intelligent contract, so that the first block chain node can be by contractual requirement to present node And the operation of target block chain node is managed.Specifically in appropriation scene, appropriation side is used as the first block chain node, dials It money side can be effectively to the practical appropriation for appropriating funds user (present node) and acceptance of the bid participant (target block chain node) Purposes is supervised.
In a non-limiting embodiment of the invention, step D shown in FIG. 1 further includes steps of execution Described first intelligent contract, to generate the contractual requirement and Transaction Information.
In the present embodiment, present node other than it can generate contractual requirement, may be used also when executing the first intelligent contract To generate Transaction Information.Block data includes Transaction Information and contractual requirement.That is, may include Transaction Information in block And contractual requirement.Other block chain nodes in block chain network, which pass through synchronous block chain account book, can read Transaction Information and conjunction About require.
Further, the block data can also include: the public key Hash, described current of the target block chain node The signature of node.
Wherein, the public key Hash of target block chain node can serve to indicate that the reception address of contractual requirement.It is described current The signature of node can be used for the identity of target block chain node verification present node.Other block chain links in block chain network Point can read the public key Hash of target block chain node and the signature of the present node by synchronous block chain account book, and The public key Hash of itself is compared with the public key Hash of target block chain node, to determine whether being target block chain link Point.
In a non-limiting embodiment of the invention, method shown in Fig. 1 can be the following steps are included: F. receives institute State the digital token of the first block chain node transmission.
It is understood that step F can be performed simultaneously with step A, can also be held before step A or after step A Row.
In specific implementation, present node receive from the first block chain digital token (be referred to as ideal money, Token etc.) when, it needs for the public key Hash of present node to be compared with the public key Hash of recipient's node, in response to Comparison result is consistent, the signature of the first block chain node described in the public key verifications using the first block chain node;In response to It is verified, digital token is transferred from the first block chain node to present node.
In a non-limiting embodiment of the invention, the contractual requirement includes: opening of bid notice, the target block Chain node executes the described second intelligent contract, to complete operation of submitting a tender.
In the present embodiment, present node be can be set in appropriation user, and target block chain node can be set in bid Participant.Present node, which executes the first intelligent contract, can be generated opening of bid notice.Opening of bid notice can trigger target block chain link Point executes the second intelligent contract, to complete operation of submitting a tender.
In another non-limiting embodiment of the invention, the contractual requirement includes acceptance of the bid as a result, the target area Block chain node executes the described second intelligent contract, to complete signing operation.
In the present embodiment, present node be can be set in appropriation user, and target block chain node can be set in acceptance of the bid Participant.Present node, which executes the first intelligent contract, can be generated acceptance of the bid result.Specifically, acceptance of the bid result may include acceptance of the bid at The information of the target block chain node of function, such as the public key Hash of target block chain node.Acceptance of the bid result can trigger target area Block chain node executes the second intelligent contract, to complete signing operation.
In another non-limiting embodiment of the invention, the contractual requirement includes signing completion notice, the mesh It marks block chain node and executes the described second intelligent contract, to complete the operation set in signing.
In the present embodiment, present node be can be set in appropriation user, and target block chain node can be set in acceptance of the bid Participant.Present node, which executes the first intelligent contract, can be generated signing completion notice.Signing completion notice can trigger target Block chain node executes the second intelligent contract, to complete the operation set in signing.Specifically, the operation set in signing can be with It is the operation for appropriating funds user and acceptance of the bid participant to arrange in signing.
In a typical case scene of the invention, appropriation side node can send the first intelligence contract to appropriating funds user To appropriation user's node, appropriation side's node can send the second intelligent contract extremely for node and transmission digital token (token) Participant node.It appropriates funds user's node after the identity of verifying appropriation side's node, executes the first intelligent contract, generate contract and want It asks, such as opening of bid notice.Appropriate funds user's node by the target block chain node write area of contractual requirement and the contractual requirement Block chain account book.Bid participant node obtains the contractual requirement from block chain account book, and executes the in response to the contractual requirement Two intelligent contracts, to complete operation of submitting a tender.In another example contractual requirement is acceptance of the bid as a result, acceptance of the bid participant node is from block chain account The contractual requirement is obtained in this, and executes the second intelligent contract in response to the contractual requirement, to complete signing operation.In response in It marks participant node and completes signing operation, appropriation user's node can send digital token (token) to acceptance of the bid participant section Point.In another example contractual requirement is signing completion notice, acceptance of the bid participant node executes the described second intelligent contract, to complete to sign The operation set in about.
The embodiment of the present invention also provides a kind of calculating equipment, for implementing method described in above-mentioned embodiment illustrated in fig. 1 Technical solution.
Specifically, in the present embodiment, it includes processor and storage that the calculating equipment, which may include: the calculating equipment, Device, the computer instruction that can be run on the processor is stored on the memory, and the processor runs the meter Calculation machine executes following steps when instructing: A. receives the public affairs of the first intelligent contract from the first block chain node, recipient's node The signature of key Hash and the first block chain node;B. by the public affairs of the public key Hash of present node and recipient's node Key Hash is compared, to obtain comparison result;C. the public key Hash of the present node is indicated in response to the comparison result It is consistent with the public key Hash of recipient's node, the first block chain described in the public key verifications using the first block chain node The signature of node;D. in response to being verified, the described first intelligent contract is executed, at least to generate contractual requirement, the contract It is required that executing the receive from the first block chain node second intelligent contract for triggering target block chain node;E. by institute It states contractual requirement and block data is added, the block data is for generating block.
In a non-limiting embodiment of the invention, the processor further performs the step of when executing step D: The described first intelligent contract is executed, to generate the contractual requirement and Transaction Information.
Further, the block data further include: public key Hash, the present node of the target block chain node Signature and the Transaction Information.
It is also executed in a non-limiting embodiment of the invention, when the processor runs the computer instruction following Step: F. receives the digital token that the first block chain node is sent.
About working principle, the more contents of working method for calculating equipment, the correlation being referred in above-mentioned Fig. 1 Description, which is not described herein again.
Fig. 2 is flow chart of the another kind of the embodiment of the present invention for the block generation method of block chain network.Wherein, described Block chain network can be made of multiple block chain nodes communicated, and the scheme of the present embodiment can be by target block chain node It executes.As a non-limiting embodiment, target block chain node be can be set in participant, for example, bid participant or Acceptance of the bid participant management and the server used etc. calculate equipment.
Referring to figure 2., it may comprise steps of for the block generation method of block chain network:
At 201, the public affairs that step A. receives the second intelligent contract from the first block chain node, recipient's node are executed The signature of key Hash and the first block chain node;
At 202, executes step B. and carry out the public key Hash of the public key Hash of present node and recipient's node It compares, to obtain comparison result;
At 203, execute step C. in response to the comparison result indicate the public key Hash of the present node with it is described The public key Hash of recipient's node is consistent, the first block chain node described in the public key verifications using the first block chain node Signature;
At 204, step D. is executed in response to being verified, and have in block chain account book and be directed toward the present node Contractual requirement executes the described second intelligent contract, to generate Transaction Information;
At 205, step E. is executed by the Transaction Information, block data is added, the block data is used for generation area Block;Wherein, the contractual requirement executes the receive from the first block chain link point first intelligence by initiation block chain node and closes It about generates afterwards and the block chain account book is written.
In the present embodiment, public key Hash of the target block chain node in addition to comparing its public key Hash Yu recipient's node And except the signature of verifying the first block chain node, it is also necessary to which determining in block chain account book has direction is described to work as prosthomere The contractual requirement of point.Wherein, in block chain account book there is the contractual requirement for being directed toward the present node to refer to connecing for contractual requirement The public key Hash of debit's node is the public key Hash of present node.
That is, the signature verification of the first block chain node, which passes through and has in block chain account book, is directed toward present node When contractual requirement, present node is able to carry out the second intelligent contract;Otherwise, present node can not execute the second intelligent contract, So as to realize that the situation for executing intelligent contract to present node is constrained and supervised.
In a non-limiting embodiment of the invention, method shown in Fig. 2 can be the following steps are included: F. receives institute It states and initiates the digital token that block chain node is sent.
In the present embodiment, step F can be executed after step E.In other words, it is complete to execute the second intelligent contract for present node Cheng Hou, digital token can be sent to present node by initiating block chain node, and present node is received from initiation block chain node Digital token.
In a non-limiting embodiment of the invention, the contractual requirement includes: opening of bid notice, step D shown in Fig. 2 Further comprise: the described second intelligent contract is executed, to complete operation of submitting a tender.
In another non-limiting embodiment of the invention, the contractual requirement includes acceptance of the bid as a result, step shown in Fig. 2 D further comprises: the described second intelligent contract is executed, to complete signing operation.
In another of the invention non-limiting embodiment, the contractual requirement includes signing completion notice, step D into One step includes: to execute the described second intelligent contract, to complete the operation set in signing.
About more contents of the embodiment of the present invention, the associated description being referred in above-mentioned Fig. 1, which is not described herein again.
Referring to figure 3., in a typical application scenarios of the invention, block chain node A be can be set in appropriation side, area Block chain node B can be set in appropriation user, and block chain node C can be set in participant.
For block chain node A, the first intelligent contract can be sent to block chain node B, send the second intelligent contract To block chain node C.Send the opportunity of the first intelligent contract and send the second intelligent contract opportunity can be it is also possible to With sequencing.
For block chain node B, after the signature of verifying block chain node A passes through, the first intelligent contract is executed,
It is understood that the quantity of block chain node B and block chain node C can be multiple, the embodiment of the present invention is only It is illustrated by taking single block chain node B and single block chain node C as an example, does not constitute the limitation to the embodiment of the present invention.
The embodiment of the present invention also provides a kind of calculating equipment, for implementing method described in above-mentioned embodiment illustrated in fig. 2 Technical solution.
Specifically, in the present embodiment, it includes processor and storage that the calculating equipment, which may include: the calculating equipment, Device, the computer instruction that can be run on the processor is stored on the memory, and the processor runs the meter Calculation machine executes following steps when instructing: A. receives the public affairs of the second intelligent contract from the first block chain node, recipient's node The signature of key Hash and the first block chain node;B. by the public affairs of the public key Hash of present node and recipient's node Key Hash is compared, to obtain comparison result;C. the public key Hash of the present node is indicated in response to the comparison result It is consistent with the public key Hash of recipient's node, the first block chain described in the public key verifications using the first block chain node The signature of node;D. in response to being verified, and there is the contractual requirement for being directed toward the present node in block chain account book, executes Described second intelligent contract, to generate Transaction Information;E. block data is added in the Transaction Information, the block data is used for Generate block;Wherein, the contractual requirement executes receive from the first block chain link point first by initiation block chain node It is generated after intelligent contract and the block chain account book is written.
It is also executed in a non-limiting embodiment of the invention, when the processor runs the computer instruction following Step: F. receives the digital token that the initiation block chain node is sent.
In a specific embodiment of the invention, the contractual requirement includes: opening of bid notice, and the processor executes step D When further perform the step of: the described second intelligent contract is executed, to complete operation of submitting a tender.
In another specific embodiment of the invention, the contractual requirement includes acceptance of the bid as a result, the processor executes step D When further perform the step of: the described second intelligent contract is executed, to complete signing operation.
In another specific embodiment of the invention, the contractual requirement includes signing completion notice, and the processor executes It is further performed the step of when step D: the described second intelligent contract is executed, to complete the operation set in signing.
About working principle, the more contents of working method for calculating equipment, the correlation being referred in above-mentioned Fig. 2 Description, which is not described herein again.
The embodiment of the invention also discloses a kind of storage mediums, are stored thereon with computer instruction, the computer instruction Can be executed when operation can connection control method shown in fig. 1 or fig. 2 the step of.The storage medium may include ROM, RAM, disk or CD etc..The storage medium can also include non-volatility memorizer (non-volatile) or non-transient (non-transitory) memory etc..
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute Subject to the range of restriction.

Claims (25)

1. a kind of block generation method for block chain network characterized by comprising
A. the first intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area are received The signature of block chain node;
B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result;
C. the public key Hash of the present node and the public key Hash of recipient's node are indicated in response to the comparison result Unanimously, the signature of the first block chain node described in the public key verifications using the first block chain node;
D. in response to being verified, the described first intelligent contract is executed, at least to generate contractual requirement, the contractual requirement is used for Triggering target block chain node executes the intelligent contract of second received from the first block chain node;
E. block data is added in the contractual requirement, the block data is for generating block.
2. block generation method according to claim 1, which is characterized in that step D further comprises: executing described first Intelligent contract, to generate the contractual requirement and Transaction Information.
3. block generation method according to claim 2, which is characterized in that the block data further include: the target The public key Hash of block chain node, the signature of the present node and the Transaction Information.
4. block generation method according to claim 1, which is characterized in that further include:
F. the digital token that the first block chain node is sent is received.
5. block generation method according to any one of claims 1 to 4, which is characterized in that the contractual requirement includes: out Mark notice, the target block chain node executes the described second intelligent contract, to complete operation of submitting a tender.
6. block generation method according to any one of claims 1 to 4, which is characterized in that during the contractual requirement includes Mark is as a result, the target block chain node executes the described second intelligent contract, to complete signing operation.
7. block generation method according to any one of claims 1 to 4, which is characterized in that the contractual requirement includes label About completion notice, the target block chain node executes the described second intelligent contract, to complete the operation set in signing.
8. a kind of calculating equipment, which is characterized in that including processor and memory, being stored on the memory can be described The computer instruction run on processor, the processor execute following steps when running the computer instruction:
A. the first intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area are received The signature of block chain node;
B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result;
C. the public key Hash of the present node and the public key Hash of recipient's node are indicated in response to the comparison result Unanimously, the signature of the first block chain node described in the public key verifications using the first block chain node;
D. in response to being verified, the described first intelligent contract is executed, at least to generate contractual requirement, the contractual requirement is used for Triggering target block chain node executes the intelligent contract of second received from the first block chain node;
E. block data is added in the contractual requirement, the block data is for generating block.
9. calculating equipment according to claim 8, which is characterized in that the processor further executes when executing step D Following steps:
The described first intelligent contract is executed, to generate the contractual requirement and Transaction Information.
10. calculating equipment according to claim 9, which is characterized in that the block data further include: the target block The public key Hash of chain node, the signature of the present node and the Transaction Information.
11. calculating equipment according to claim 8, which is characterized in that when the processor runs the computer instruction Also execute following steps:
F. the digital token that the first block chain node is sent is received.
12. calculating equipment according to any one of claims 8 to 11, which is characterized in that the contractual requirement includes: opening of bid Notice, the target block chain node executes the described second intelligent contract, to complete operation of submitting a tender.
13. calculating equipment according to any one of claims 8 to 11, which is characterized in that the contractual requirement includes acceptance of the bid As a result, the target block chain node executes the described second intelligent contract, to complete signing operation.
14. calculating equipment according to any one of claims 8 to 11, which is characterized in that the contractual requirement includes signing Completion notice, the target block chain node executes the described second intelligent contract, to complete the operation set in signing.
15. a kind of block generation method for block chain network characterized by comprising
A. the second intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area are received The signature of block chain node;
B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result;
C. the public key Hash of the present node and the public key Hash of recipient's node are indicated in response to the comparison result Unanimously, the signature of the first block chain node described in the public key verifications using the first block chain node;
D. in response to being verified, and there is the contractual requirement for being directed toward the present node in block chain account book, executes described the Two intelligent contracts, to generate Transaction Information;
E. block data is added in the Transaction Information, the block data is for generating block;
Wherein, the contractual requirement executes the receive from the first block chain link point first intelligence by initiation block chain node and closes It about generates afterwards and the block chain account book is written.
16. block generation method according to claim 15, which is characterized in that further include:
F. the digital token that the initiation block chain node is sent is received.
17. 5 described in any item block generation methods according to claim 1, which is characterized in that the contractual requirement includes: out Mark notice, step D further comprises:
The described second intelligent contract is executed, to complete operation of submitting a tender.
18. 5 described in any item block generation methods according to claim 1, which is characterized in that the contractual requirement includes acceptance of the bid As a result, step D further comprises:
The described second intelligent contract is executed, to complete signing operation.
19. 5 described in any item block generation methods according to claim 1, which is characterized in that the contractual requirement includes signing Completion notice, step D further comprises:
The described second intelligent contract is executed, to complete the operation set in signing.
20. a kind of calculating equipment, which is characterized in that including processor and memory, being stored on the memory can be in institute The computer instruction run on processor is stated, the processor executes following steps when running the computer instruction:
A. the second intelligent contract from the first block chain node, the public key Hash of recipient's node and firstth area are received The signature of block chain node;
B. the public key Hash of present node is compared with the public key Hash of recipient's node, to obtain comparison result;
C. the public key Hash of the present node and the public key Hash of recipient's node are indicated in response to the comparison result Unanimously, the signature of the first block chain node described in the public key verifications using the first block chain node;
D. in response to being verified, and there is the contractual requirement for being directed toward the present node in block chain account book, executes described the Two intelligent contracts, to generate Transaction Information;
E. block data is added in the Transaction Information, the block data is for generating block;
Wherein, the contractual requirement executes the receive from the first block chain link point first intelligence by initiation block chain node and closes It about generates afterwards and the block chain account book is written.
21. calculating equipment according to claim 20, which is characterized in that when the processor runs the computer instruction Also execute following steps:
F. the digital token that the initiation block chain node is sent is received.
22. calculating equipment according to claim 20, which is characterized in that the contractual requirement includes: opening of bid notice, described Processor further performs the step of when executing step D:
The described second intelligent contract is executed, to complete operation of submitting a tender.
23. calculating equipment according to claim 20, which is characterized in that the contractual requirement includes acceptance of the bid as a result, described Processor further performs the step of when executing step D:
The described second intelligent contract is executed, to complete signing operation.
24. calculating equipment according to claim 20, which is characterized in that the contractual requirement includes signing completion notice, The processor further performs the step of when executing step D:
The described second intelligent contract is executed, to complete the operation set in signing.
25. a kind of storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction executes when running Described in any one of claims 1 to 7 the step of block generation method or any one of claim 15 to 19 block is raw The step of at method.
CN201811479031.4A 2018-12-05 2018-12-05 Block generation method, calculating equipment, storage medium for block chain network Pending CN109815289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811479031.4A CN109815289A (en) 2018-12-05 2018-12-05 Block generation method, calculating equipment, storage medium for block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811479031.4A CN109815289A (en) 2018-12-05 2018-12-05 Block generation method, calculating equipment, storage medium for block chain network

Publications (1)

Publication Number Publication Date
CN109815289A true CN109815289A (en) 2019-05-28

Family

ID=66601953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811479031.4A Pending CN109815289A (en) 2018-12-05 2018-12-05 Block generation method, calculating equipment, storage medium for block chain network

Country Status (1)

Country Link
CN (1) CN109815289A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287257A (en) * 2019-03-25 2019-09-27 上海分布信息科技有限公司 A kind of token mapping method of chain external information to block chain
CN111045722A (en) * 2019-12-06 2020-04-21 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
CN111461851A (en) * 2020-05-22 2020-07-28 烟台大学 Double-blind bidding system and bidding method based on block chain
CN112131307A (en) * 2020-07-15 2020-12-25 北京天德科技有限公司 Novel multi-block chain and multi-intelligent contract interaction architecture
WO2022000482A1 (en) * 2020-07-03 2022-01-06 Alipay (Hangzhou) Information Technology Co., Ltd. System and method for providing privacy and security protection in blockchain-based private transactions
US11683173B2 (en) 2020-12-08 2023-06-20 International Business Machines Corporation Consensus algorithm for distributed ledger technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN108520402A (en) * 2018-04-09 2018-09-11 济南浪潮高新科技投资发展有限公司 A kind of method of commerce and transaction system based on block chain
US10121143B1 (en) * 2017-03-31 2018-11-06 Vijay K. Madisetti Method and system for blockchain-based combined identity, ownership, integrity and custody management
CN108804096A (en) * 2017-05-05 2018-11-13 中思博安科技(北京)有限公司 A kind of task scheduling execution method and apparatus based on intelligent contract
CN108805573A (en) * 2018-04-21 2018-11-13 深圳市元征科技股份有限公司 A kind of Information Authentication method, server and storage medium
CN108848063A (en) * 2018-05-24 2018-11-20 中链科技有限公司 Data processing method, system and computer readable storage medium based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10121143B1 (en) * 2017-03-31 2018-11-06 Vijay K. Madisetti Method and system for blockchain-based combined identity, ownership, integrity and custody management
CN108804096A (en) * 2017-05-05 2018-11-13 中思博安科技(北京)有限公司 A kind of task scheduling execution method and apparatus based on intelligent contract
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN108520402A (en) * 2018-04-09 2018-09-11 济南浪潮高新科技投资发展有限公司 A kind of method of commerce and transaction system based on block chain
CN108805573A (en) * 2018-04-21 2018-11-13 深圳市元征科技股份有限公司 A kind of Information Authentication method, server and storage medium
CN108848063A (en) * 2018-05-24 2018-11-20 中链科技有限公司 Data processing method, system and computer readable storage medium based on block chain

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287257A (en) * 2019-03-25 2019-09-27 上海分布信息科技有限公司 A kind of token mapping method of chain external information to block chain
CN111045722A (en) * 2019-12-06 2020-04-21 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
CN111045722B (en) * 2019-12-06 2023-08-25 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
CN111461851A (en) * 2020-05-22 2020-07-28 烟台大学 Double-blind bidding system and bidding method based on block chain
CN111461851B (en) * 2020-05-22 2023-04-14 烟台大学 Double-blind bidding system and bidding method based on block chain
WO2022000482A1 (en) * 2020-07-03 2022-01-06 Alipay (Hangzhou) Information Technology Co., Ltd. System and method for providing privacy and security protection in blockchain-based private transactions
US11265162B2 (en) 2020-07-03 2022-03-01 Alipay (Hangzhou) Information Technology Co., Ltd. System and method for providing privacy and security protection in blockchain-based private transactions
CN112131307A (en) * 2020-07-15 2020-12-25 北京天德科技有限公司 Novel multi-block chain and multi-intelligent contract interaction architecture
US11683173B2 (en) 2020-12-08 2023-06-20 International Business Machines Corporation Consensus algorithm for distributed ledger technology

Similar Documents

Publication Publication Date Title
CN109815289A (en) Block generation method, calculating equipment, storage medium for block chain network
CN110046996B (en) Data processing method and device
US11295303B2 (en) Method, apparatus and electronic device for blockchain transactions
CN110472201B (en) Text similarity detection method and device based on block chain and electronic equipment
CN110442652B (en) Cross-chain data processing method and device based on block chain
US11562451B1 (en) Apparatus for proportional calculation regarding non-fungible tokens
CN111539731A (en) Block chain-based federal learning method and device and electronic equipment
CN109359974A (en) Block chain method of commerce and device, electronic equipment
CN108985772A (en) A kind of verification method, device, equipment and the storage medium of block chain
CN109583887A (en) A kind of method of commerce and device of block chain
CN108171601B (en) Block chain source tracing method, device and system
CN112789824A (en) Block chain system, information transmission method, system, device and computer medium
CN111818095B (en) Tax refunding method and device based on block chain and electronic equipment
CN111026789A (en) Block chain-based electronic bill query method and device and electronic equipment
US11443307B2 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
CN109118230A (en) Information processing method and device based on block chain
WO2021204044A1 (en) Correction of blockchain data
CN110378755A (en) Electronic invoice generation method, device, computer equipment and storage medium
CN112200569B (en) Digital seal using method and device based on block chain and electronic equipment
CN111553792A (en) Data verification method and device based on block chain
CN111770198A (en) Information sharing method, device and equipment
CN109727039A (en) Transaction Information recording method and device, node, storage medium
CN110750329A (en) Method and device for realizing operation of virtual machine based on FPGA
CN111461881A (en) Data management method and device, computer equipment and storage medium
US20230198785A1 (en) Computer-implemented digital communication using cryptography

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190528