CN110992178A - Verification method and device for block chain node, computer equipment and storage medium - Google Patents

Verification method and device for block chain node, computer equipment and storage medium Download PDF

Info

Publication number
CN110992178A
CN110992178A CN201911064497.2A CN201911064497A CN110992178A CN 110992178 A CN110992178 A CN 110992178A CN 201911064497 A CN201911064497 A CN 201911064497A CN 110992178 A CN110992178 A CN 110992178A
Authority
CN
China
Prior art keywords
intelligent contract
verification
party
transaction
transaction party
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
CN201911064497.2A
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.)
Liannong Shenzhen Information Technology Co Ltd
Original Assignee
Liannong Shenzhen 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 Liannong Shenzhen Information Technology Co Ltd filed Critical Liannong Shenzhen Information Technology Co Ltd
Priority to CN201911064497.2A priority Critical patent/CN110992178A/en
Publication of CN110992178A publication Critical patent/CN110992178A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a verification method and device of a block chain node, computer equipment and a storage medium, relates to the technical field of block chains, and is used for improving the safety of block chain node verification. The main technical scheme of the invention is as follows: a verification node in the block chain system receives an intelligent contract broadcasted by a transaction party; after receiving a verification request which is sent by a first trading party and used for triggering the execution of the intelligent contract, verifying the signature of the first trading party; if the signature passes the verification, running a verification service intelligent contract corresponding to the first transaction party; when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-consensus set, and executing things of the intelligent contract when the second trading party achieves consensus; judging the state of the intelligent contract through a state machine corresponding to the intelligent contract; and when all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in the state machine, and removing the intelligent contract from the to-be-consensus set.

Description

Verification method and device for block chain node, computer equipment and storage medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method and an apparatus for verifying blockchain nodes, a computer device, and a storage medium.
Background
The block chain is a recording technology different from the traditional centralized accounting mode, participates in nodes on the block chain system, possibly does not belong to the same organization and does not need to trust each other; the blockchain data is maintained by all nodes together, and each node participating in maintenance can obtain a copy of a complete record. Compared with the traditional accounting technology, the method has the characteristics that: maintaining a chain which grows continuously, only adding records possibly, and the records which occur cannot be tampered; the consensus can be achieved without centralized control, and the realization adopts the distributed mode as much as possible; the cryptology mechanism is used for ensuring that the transaction cannot be repudiated and destroyed, and protecting the privacy of user information and records as much as possible.
The block chain bottom layer system is responsible for the basic functions of creating and verifying transaction blocks, achieving consensus of an bookkeeper and the like, and what the transaction per se does can be defined by a secondary programming mode. Therefore, by designing a virtual environment for executing transaction codes, a user can develop customized transaction logic to be issued to the chain, and when a transaction is carried out, all nodes on the chain execute the same codes, so that the state of data on the chain is changed synchronously, and the safety of the existing block chain verification node is low.
Disclosure of Invention
The invention provides a verification method and device of a blockchain node, computer equipment and a storage medium, which are used for improving the security of blockchain node verification.
The embodiment of the invention provides a verification method of a block chain node, which comprises the following steps:
a verification node in the block chain system receives an intelligent contract broadcasted by a transaction party;
after receiving a verification request which is sent by a first trading party and used for triggering the execution of an intelligent contract, verifying the signature of the first trading party;
if the signature of the first trading party passes verification, running a verification service intelligent contract corresponding to the first trading party, wherein the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to run;
when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-agreed set, and executing things of the intelligent contract when a second trading party agrees;
judging the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and after all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in a state machine, and removing the intelligent contract from the to-be-consensus set.
The embodiment of the invention provides a verification device for block link points, which comprises:
the receiving module is used for receiving the intelligent contract broadcasted by the transaction party by the verification node in the blockchain system;
the verification module is used for verifying the signature of the first trading party after receiving a verification request which is sent by the first trading party and used for triggering the execution of the intelligent contract;
the operation module is used for operating a verification service intelligent contract corresponding to the first trading party if the signature of the first trading party passes verification, and the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to be operated or not;
the operation module is further used for putting the intelligent contract into a to-be-consensus set when the intelligent contract corresponding to the verification service of the first trading party is operated successfully, and executing things of the intelligent contract when a second trading party achieves consensus;
the judging module is used for judging the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and the removing module is used for marking the state of the intelligent contract to be finished in a state machine and removing the intelligent contract from the to-be-consensus set after all things of the intelligent contract are executed in sequence.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of authentication of a blockchain node as described above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, realizes the above-mentioned block chain node authentication apparatus.
The invention provides a verification method, a verification device, computer equipment and a storage medium for a block chain node, wherein the verification node in a block chain system receives an intelligent contract broadcasted by a transaction party; after receiving a verification request which is sent by a first transaction party and used for triggering the execution of the intelligent contract, verifying the signature of the first transaction party; if the signature of the first transaction party passes the verification, running a verification service intelligent contract corresponding to the first transaction party; when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-consensus set, and executing things of the intelligent contract when the second trading party achieves consensus; judging the state of the intelligent contract through a state machine corresponding to the intelligent contract; and when all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in the state machine, and removing the intelligent contract from the to-be-consensus set. According to the invention, after the signature of the first trading party passes verification, the verification service intelligent contract corresponding to the first trading party needs to be operated, whether the first trading party is allowed to operate the intelligent contract is further verified by the verification service intelligent contract, if the verification service intelligent contract corresponding to the first trading party is operated successfully, the intelligent contract is put into the to-be-identified set, and the intelligent contract is executed after the second trading party achieves consensus, so that the security of block chain node verification can be improved through the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a method for verifying a block link point according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for verifying a block link point according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a block link point verification device in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making an invasive task, are within the scope of the present invention.
In an embodiment, as shown in fig. 1, there is provided a verification method for blockchain nodes, including the following steps:
s10, the verification node in the blockchain system receives the intelligent contract broadcast by the transaction party.
In an embodiment of the present invention, before the verification node in the blockchain system receives the intelligent contract broadcasted by the transaction party, the method further includes: after receiving a registration account application sent by the transaction party, generating a public key and a private key corresponding to the account, and sending the public key and the private key to the transaction party; the block chain system acquires contract records generated between the transaction parties, signs the contract records and encrypts the contract records to produce the intelligent contract; and sending the generated intelligent contract to the trading party.
It should be noted that before the intelligent contract is broadcast by the transaction direction blockchain system, the user who needs to participate in the intelligent contract must first register as the user of the blockchain, that is, after the transaction direction blockchain sends a registration account number application, the blockchain returns a pair of public key and private key to the transaction party. The public key is used as an account address of the user on the block chain, and the private key is used as a unique key for operating the account. Then, two users in the trading party agree a promise contract according to the needs, the contract comprises the rights and obligations of both parties, the rights and obligations are designed and recorded in an electronic mode, the participants sign with respective private keys respectively to ensure the validity of the contract, and the signed intelligent contract is broadcasted in the block chain network.
And S20, after receiving a verification request which is sent by the first trading party and triggers the execution of the intelligent contract, verifying the signature of the first trading party.
It should be noted that the first transaction party is any party in the intelligent contract, after the first transaction party sends the verification request for triggering the execution of the intelligent contract to the blockchain, the verification node in the blockchain verifies the signature of the intelligent contract, that is, the signature is verified by the private key of the first transaction party, and after the signature passes the verification, the operation proceeds to step S30 to run the verification service intelligent contract corresponding to the first transaction party.
And S30, if the signature of the first transaction party passes the verification, running a verification service intelligent contract corresponding to the first transaction party.
Wherein the verification service smart contract is for verifying whether the first transaction part is allowed to run the smart contract. Specifically, the verification service intelligent contract may be set according to actual requirements, for example, the endorsement policy of the verification server intelligent contract is set as the endorsement signature of all nodes in the block chain system required for the transfer transaction, or the endorsement policy of the verification service intelligent contract is set as the verification information sent to the first transaction party, the confirmation information of the first transaction party needs to be obtained, or the endorsement policy of the verification service intelligent contract is set as the identity information of the first transaction party needs to be sent, and the like.
And S40, when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-consensus set, and executing the affair of the intelligent contract when the second trading party agrees.
Specifically, after the two parties of the transaction contract, the intelligent contract is broadcast in the block chain whole network by means of P2P, and each node receives a contract. The verification node in the block chain receives the broadcasted intelligent contract, stores the received intelligent contract in a memory and waits for the arrival of the consensus time. After the consensus time comes, the verification node packs all the intelligent contracts received in the time interval into a contract Set; calculating the Hash value of the Set; the contract set Hash value is encapsulated in a block structure, which is then broadcast.
The newly agreed contract set is spread across the network in blocks, each block containing the following information: the Hash value of the current block, the Hash value of the previous block, the timestamp when consensus is achieved, and other description information; the most important information of the block chain in the same time is a set of contracts with agreed consensus; and the nodes receiving the contract set verify each contract, and the verified contract is written into the block chain finally, wherein the verified content is mainly whether the private key signature of the contract participant is matched with the account.
And S50, judging the state of the intelligent contract through the state machine corresponding to the intelligent contract.
And S60, when all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in a state machine, and removing the intelligent contract from the to-be-consensus set.
The intelligent contracts periodically check the state of the state machine, and traverse the state machine, the affairs and the triggering conditions contained in each contract one by one; pushing the transaction meeting the condition to a queue to be verified, and waiting for consensus; transactions that do not meet the trigger condition will continue to be deposited on the blockchain. The latest round of verified transactions can be diffused to each verification node, and the verification nodes firstly carry out signature verification to ensure the validity of the transactions as common block chain transactions or transactions; the transaction passing the verification enters a to-be-consensus set, and after most verification nodes achieve consensus, the transaction is successfully executed and the user is informed.
After the transaction is successfully executed, the state opportunity of the intelligent contract judges the state of the contract, and when all the transactions included in the contract are sequentially executed, the state opportunity marks the state of the contract as complete and removes the contract from the latest block; otherwise, marking the block as in progress, continuously storing the block in the latest block for waiting for the next round of processing until the processing is finished; the whole transaction and state processing is automatically completed by an intelligent contract system built in the bottom layer of the block chain, and the whole process is transparent and cannot be tampered.
The invention provides a verification method of a block chain node.A verification node in a block chain system receives an intelligent contract broadcasted by a transaction party; after receiving a verification request which is sent by a first trading party and used for triggering the execution of the intelligent contract, verifying the signature of the first trading party; if the signature of the first transaction party passes the verification, running a verification service intelligent contract corresponding to the first transaction party; when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-consensus set, and executing things of the intelligent contract when the second trading party achieves consensus; judging the state of the intelligent contract through a state machine corresponding to the intelligent contract; and when all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in the state machine, and removing the intelligent contract from the to-be-consensus set. According to the invention, after the signature of the first trading party passes the verification, the verification service intelligent contract corresponding to the first trading party needs to be operated, whether the first trading party allows the operation of the intelligent contract is further verified by the verification service intelligent contract, if the verification service intelligent contract corresponding to the first trading party is operated successfully, the intelligent contract is put into the to-be-identified set, and the things of the intelligent contract are executed after the second trading party achieves the consensus, so that the safety of block chain node verification can be improved through the invention.
As shown in fig. 2, in one embodiment of the present invention, step S30: if the signature of the first transaction party passes the verification, running a verification service intelligent contract corresponding to the first transaction party, wherein the verification service intelligent contract comprises the following steps:
s301, obtaining a verification trading party corresponding to the first trading party through a preset trading party mapping table.
The preset transaction mapping table stores verification transaction parties corresponding to different transaction parties respectively, wherein the verification transaction party is any one transaction party and is used for verifying whether the first transaction party allows the intelligent contract to run or not. It should be noted that, a verification transaction party corresponding to each transaction party in the preset transaction mapping table may be configured according to actual requirements, and the first transaction party and the verification transaction party may perform mutual verification, that is, when the verification transaction party is used as the first transaction party, the first transaction party is used as the verification transaction party of the verification transaction party.
S302, when the verification transaction party transfers the preset amount to the first transaction party successfully, the verification service intelligent contract corresponding to the transaction party is confirmed to be operated successfully.
And the endorsement policy of the verification service intelligent contract is that the transfer transaction needs endorsement signatures of all nodes in the blockchain system. In an embodiment of the present invention, the confirming that the running of the verification service intelligent contract corresponding to the transaction party is successful includes: after the verification transaction party transfers preset amount to the first transaction party, checking whether the account amount of the verification transaction party and the account amount of the first transaction party are the same as the expected amount through the verification service intelligent contract; and if the account amount of the verification transaction party is the same as the expected amount, confirming that the verification service corresponding to the transaction party is operated to be successfully intelligently contracted.
In another embodiment provided by the present invention, after obtaining the verified transaction part corresponding to the first transaction part through the preset transaction part mapping table, the method further includes: after the verification transaction party sends verification information to the transaction party, if information returned by the transaction party for the verification information is received within preset time, the success of running a verification service intelligent contract corresponding to the transaction party is confirmed, and the endorsement policy of the verification service intelligent contract is that the information returned by sending the verification information for the verification transaction party is received within the preset time.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a verification apparatus for a block link node is provided, and the verification apparatus for the block link node corresponds to the verification method for the block link node in the above embodiments one to one. As shown in fig. 3, the apparatus for verifying a blockchain node includes a receiving module 10, a verifying module 20, an executing module 30, a determining module 40, and a removing module 50. The functional modules are explained in detail as follows:
a receiving module 10, configured to receive, by a verification node in the blockchain system, an intelligent contract broadcasted by a transaction party;
the verification module 20 is configured to verify a signature of a first transaction party after receiving a verification request that triggers execution of an intelligent contract and is sent by the first transaction party;
the running module 30 is configured to run a verification service smart contract corresponding to the first transaction party if the signature of the first transaction party passes verification, where the verification service smart contract is used to verify whether the first transaction party allows running the smart contract;
the operation module 30 is further configured to, when the verification service corresponding to the first transaction party is successfully operated, put the intelligent contract into a to-be-agreed set, and execute the things of the intelligent contract when a second transaction party agrees;
the judging module 40 is configured to judge the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and the removing module 50 is used for marking the state of the intelligent contract to be completed in a state machine and removing the intelligent contract from the to-be-identified set after all things of the intelligent contract are executed in sequence.
Further, the operation module 30 includes:
an obtaining unit 31, configured to obtain a verification transaction party corresponding to the first transaction party through a preset transaction party mapping table, where the preset transaction mapping table stores verification transaction parties corresponding to different transaction parties respectively, and the verification transaction party is any one transaction party and is used to verify whether the first transaction party allows the intelligent contract to run;
and the confirming unit 32 is configured to confirm that the verification service intelligent contract corresponding to the first transaction party is successfully operated when the verification transaction party successfully transfers the preset amount to the first transaction party, where an endorsement policy of the verification service intelligent contract is that an endorsement signature of all nodes in the block chain system is required for the transfer transaction.
The confirmation unit 32 is configured to check whether account amounts of the verified transaction party and the first transaction party are the same as an expected amount through the verification service smart contract after the verified transaction party transfers a preset amount to the first transaction party; and if the account amount of the verification transaction party is the same as the expected amount, the verification service intelligent contract corresponding to the first transaction party is confirmed to be operated successfully.
The determining unit 32 is further configured to, after the transaction party sends the verification information to the verification transaction party, if the information returned by the transaction party for the verification information is received within the preset time, determine that the running of the verification service intelligent contract corresponding to the first transaction party is successful, and receive the information returned by the verification information sent for the verification transaction party within the preset time as the endorsement policy of the verification service intelligent contract.
Further, the apparatus further comprises:
the receiving module 10 is further configured to generate a public key and a private key corresponding to the account after receiving a registration account application sent by the transaction party, and send the public key and the private key to the transaction party;
the generation encryption module 60 is used for acquiring a contract record generated between the transaction parties by the blockchain system, signing the contract record and encrypting the contract record to produce the intelligent contract;
a sending module 70, configured to send the generated intelligent contract to the trading party.
For specific limitations of the verification apparatus for blockchain nodes, reference may be made to the above limitations on the verification method for blockchain nodes, which are not described herein again. The modules in the verification device of the blockchain node can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a method of verifying a block link point.
In one embodiment, there is provided a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
a verification node in the block chain system receives an intelligent contract broadcasted by a transaction party;
after receiving a verification request which is sent by a first trading party and used for triggering the execution of an intelligent contract, verifying the signature of the first trading party;
if the signature of the first trading party passes verification, running a verification service intelligent contract corresponding to the first trading party, wherein the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to run;
when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-agreed set, and executing things of the intelligent contract when a second trading party agrees;
judging the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and after all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in a state machine, and removing the intelligent contract from the to-be-consensus set.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
a verification node in the block chain system receives an intelligent contract broadcasted by a transaction party;
after receiving a verification request which is sent by a first trading party and used for triggering the execution of an intelligent contract, verifying the signature of the first trading party;
if the signature of the first trading party passes verification, running a verification service intelligent contract corresponding to the first trading party, wherein the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to run;
when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-agreed set, and executing things of the intelligent contract when a second trading party agrees;
judging the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and after all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in a state machine, and removing the intelligent contract from the to-be-consensus set.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by the relevant hardware instructed by a computer program stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above described functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (12)

1. A method of validating a blockchain node, the method comprising:
a verification node in the block chain system receives an intelligent contract broadcasted by a transaction party;
after receiving a verification request which is sent by a first trading party and used for triggering the execution of an intelligent contract, verifying the signature of the first trading party;
if the signature of the first trading party passes verification, running a verification service intelligent contract corresponding to the first trading party, wherein the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to run;
when the verification service intelligent contract corresponding to the first trading party is operated successfully, putting the intelligent contract into a to-be-agreed set, and executing things of the intelligent contract when a second trading party agrees;
judging the state of the intelligent contract through a state machine corresponding to the intelligent contract;
and after all things of the intelligent contract are executed in sequence, marking the state of the intelligent contract to be finished in a state machine, and removing the intelligent contract from the to-be-consensus set.
2. The method of validating a blockchain node according to claim 1, wherein the running a validation service intelligent contract corresponding to the first transaction party includes:
obtaining a verification transaction party corresponding to the first transaction party through a preset transaction party mapping table, wherein the preset transaction mapping table stores verification transaction parties corresponding to different transaction parties respectively, and the verification transaction party is any one transaction party and is used for verifying whether the first transaction party allows the intelligent contract to run or not;
and when the verification transaction party successfully transfers the preset amount to the first transaction party, confirming that the verification service intelligent contract corresponding to the first transaction party is successfully operated, wherein the endorsement policy of the verification service intelligent contract is that the transfer transaction requires the endorsement signatures of all nodes in the block chain system.
3. The method for verifying the blockchain node according to claim 2, wherein the confirming that the running of the verification service smart contract corresponding to the first transaction party is successful comprises:
after the verification transaction party transfers a preset amount to the first transaction party, checking whether the account amounts of the verification transaction party and the first transaction party are the same as an expected amount through the verification service intelligent contract;
and if the account amount of the verification transaction party is the same as the expected amount, the verification service intelligent contract corresponding to the first transaction party is confirmed to be operated successfully.
4. The method for verifying a blockchain node according to claim 2, wherein after the verifying transaction part corresponding to the first transaction part is obtained through a preset transaction part mapping table, the method further comprises:
after the verification transaction party sends verification information to the transaction party, if information returned by the transaction party for the verification information is received within preset time, the verification service intelligent contract corresponding to the first transaction party is confirmed to be operated successfully, and the endorsement policy of the verification service intelligent contract is that the information returned by the verification information sent for the verification first transaction party is received within preset time.
5. The method for verifying blockchain nodes according to claim 1, wherein before the verifying node in the blockchain system receives the intelligent contract broadcasted by the transaction party, the method further comprises:
after receiving a registration account application sent by the transaction party, generating a public key and a private key corresponding to the account, and sending the public key and the private key to the transaction party;
the block chain system acquires contract records generated between the transaction parties, signs the contract records and encrypts the contract records to produce the intelligent contract;
and sending the generated intelligent contract to the trading party.
6. An apparatus for validating a block link point, the apparatus comprising:
the receiving module is used for receiving the intelligent contract broadcasted by the transaction party by the verification node in the blockchain system;
the verification module is used for verifying the signature of the first trading party after receiving a verification request which is sent by the first trading party and used for triggering the execution of the intelligent contract;
the operation module is used for operating a verification service intelligent contract corresponding to the first trading party if the signature of the first trading party passes verification, and the verification service intelligent contract is used for verifying whether the first trading party allows the intelligent contract to be operated or not;
the operation module is further used for putting the intelligent contract into a to-be-consensus set when the intelligent contract corresponding to the verification service of the first trading party is operated successfully, and executing things of the intelligent contract when a second trading party achieves consensus;
the judging module is used for judging the state of the intelligent contract through the state machine corresponding to the intelligent contract;
and the removing module is used for marking the state of the intelligent contract to be finished in a state machine and removing the intelligent contract from the to-be-consensus set after all things of the intelligent contract are executed in sequence.
7. The block link point verification device of claim 6, wherein the run module comprises:
the acquiring unit is used for acquiring a verification transaction party corresponding to the first transaction party through a preset transaction party mapping table, the preset transaction mapping table stores verification transaction parties corresponding to different transaction parties respectively, and the verification transaction party is any one transaction party and is used for verifying whether the first transaction party allows the intelligent contract to run or not;
and the confirmation unit is used for confirming that the verification service intelligent contract corresponding to the first transaction party is operated successfully when the verification transaction party transfers the preset amount of money to the first transaction party successfully, and the endorsement policy of the verification service intelligent contract is that the transfer transaction requires endorsement signatures of all nodes in the block chain system.
8. The device for verifying blockchain nodes according to claim 7, wherein the confirming unit is configured to check whether the account amounts of the verification transaction party and the first transaction party are the same as an expected amount through the verification service smart contract after the verification transaction party transfers a preset amount to the first transaction party; and if the account amount of the verification transaction party is the same as the expected amount, the verification service intelligent contract corresponding to the first transaction party is confirmed to be operated successfully.
9. The apparatus according to claim 7, wherein the determining unit is further configured to, after the verifying transaction party sends the verification information to the transaction party, if information returned by the first transaction party for the verification information is received within a preset time, confirm that the running of the intelligent contract for the verification service corresponding to the first transaction party is successful, and an endorsement policy of the intelligent contract for the verification service is that information returned by the verification transaction party for the sending of the verification information is received within the preset time.
10. A block link point verification device according to claim 6, further comprising:
the receiving module is further configured to generate a public key and a private key corresponding to the account after receiving a registration account application sent by the transaction party, and send the public key and the private key to the transaction party;
the generation encryption module is used for acquiring contract records generated between the transaction parties by the blockchain system, signing the contract records and encrypting the contract records to produce the intelligent contract;
and the sending module is used for sending the generated intelligent contract to the trading party.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of authentication of a blockchain node according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out a method of authentication of a blockchain node according to any one of claims 1 to 5.
CN201911064497.2A 2019-10-30 2019-10-30 Verification method and device for block chain node, computer equipment and storage medium Pending CN110992178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911064497.2A CN110992178A (en) 2019-10-30 2019-10-30 Verification method and device for block chain node, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911064497.2A CN110992178A (en) 2019-10-30 2019-10-30 Verification method and device for block chain node, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110992178A true CN110992178A (en) 2020-04-10

Family

ID=70083060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911064497.2A Pending CN110992178A (en) 2019-10-30 2019-10-30 Verification method and device for block chain node, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110992178A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724153A (en) * 2020-06-08 2020-09-29 交通银行股份有限公司 Prepaid consumption supervision system and method based on block chain and storage medium
CN112104606A (en) * 2020-08-12 2020-12-18 北京智融云河科技有限公司 Credible execution method and system based on random multiple nodes
CN112214552A (en) * 2020-11-05 2021-01-12 深圳市瀚兰区块链地产有限公司 Construction engineering construction intelligent contract execution method and device and electronic equipment
CN112488836A (en) * 2020-11-30 2021-03-12 成都质数斯达克科技有限公司 Transaction sending method and device, electronic equipment and readable storage medium
CN112990903A (en) * 2021-03-10 2021-06-18 中国联合网络通信集团有限公司 Telephone charge transfer method based on block chain, transfer node and demand node
CN113542405A (en) * 2021-07-14 2021-10-22 广东卓启云链科技有限公司 Block chain-based network communication system, method, device and storage medium
CN113592646A (en) * 2021-07-02 2021-11-02 中国人民银行数字货币研究所 Intelligent contract execution method, device and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724153A (en) * 2020-06-08 2020-09-29 交通银行股份有限公司 Prepaid consumption supervision system and method based on block chain and storage medium
CN111724153B (en) * 2020-06-08 2023-02-03 交通银行股份有限公司 Prepaid consumption supervision system and method based on block chain and storage medium
CN112104606A (en) * 2020-08-12 2020-12-18 北京智融云河科技有限公司 Credible execution method and system based on random multiple nodes
CN112104606B (en) * 2020-08-12 2022-06-17 北京智融云河科技有限公司 Credible execution method and system based on random multiple nodes
CN112214552A (en) * 2020-11-05 2021-01-12 深圳市瀚兰区块链地产有限公司 Construction engineering construction intelligent contract execution method and device and electronic equipment
CN112488836A (en) * 2020-11-30 2021-03-12 成都质数斯达克科技有限公司 Transaction sending method and device, electronic equipment and readable storage medium
CN112488836B (en) * 2020-11-30 2023-06-02 成都质数斯达克科技有限公司 Transaction transmitting method, device, electronic equipment and readable storage medium
CN112990903A (en) * 2021-03-10 2021-06-18 中国联合网络通信集团有限公司 Telephone charge transfer method based on block chain, transfer node and demand node
CN112990903B (en) * 2021-03-10 2023-06-09 中国联合网络通信集团有限公司 Block chain-based telephone charge transfer method, transferable node and demand node
CN113592646A (en) * 2021-07-02 2021-11-02 中国人民银行数字货币研究所 Intelligent contract execution method, device and system
CN113542405A (en) * 2021-07-14 2021-10-22 广东卓启云链科技有限公司 Block chain-based network communication system, method, device and storage medium
CN113542405B (en) * 2021-07-14 2023-10-17 广东卓启云链科技有限公司 Block chain-based network communication system, method, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110992178A (en) Verification method and device for block chain node, computer equipment and storage medium
CN107231351B (en) Electronic certificate management method and related equipment
CN112311735B (en) Credible authentication method, network equipment, system and storage medium
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
CN112003858B (en) Block chain-based platform docking method, electronic device and storage medium
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN111600908A (en) Data processing method, system, computer device and readable storage medium
CN110569251A (en) Data processing method, related equipment and computer readable storage medium
CN111368340A (en) Block chain-based evidence-based security verification method and device and hardware equipment
CN113141259B (en) Method and device for replacing identity certificate in block chain network
CN112069550B (en) Electronic contract evidence-storing system based on intelligent contract mode
CN111080455A (en) Cross-border transaction method and device based on block chain and hardware equipment
CN110011796B (en) Certificate updating method and device, computer equipment and storage medium
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN110851877B (en) Data processing method and device, block chain node equipment and storage medium
CN112035896B (en) Electronic contract evidence-storing system based on transaction mode
CN111314172A (en) Data processing method, device and equipment based on block chain and storage medium
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
CN112149077B (en) Supply chain billing method, system and computer equipment based on block chain technology
CN112307125A (en) Signing method and device for realizing encrypted electronic contract based on block chain intelligent contract
CN113255014A (en) Data processing method based on block chain and related equipment
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN115345618A (en) Block chain transaction verification method and system based on mixed quantum digital signature
CN113328854B (en) Service processing method and system based on block chain

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