WO2020173502A1 - Block chain-based transaction system and transaction method - Google Patents

Block chain-based transaction system and transaction method Download PDF

Info

Publication number
WO2020173502A1
WO2020173502A1 PCT/CN2020/078673 CN2020078673W WO2020173502A1 WO 2020173502 A1 WO2020173502 A1 WO 2020173502A1 CN 2020078673 W CN2020078673 W CN 2020078673W WO 2020173502 A1 WO2020173502 A1 WO 2020173502A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
node
verification
transaction request
request
Prior art date
Application number
PCT/CN2020/078673
Other languages
French (fr)
Chinese (zh)
Inventor
白杰
李冬云
吴先锋
Original Assignee
白杰
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 白杰 filed Critical 白杰
Publication of WO2020173502A1 publication Critical patent/WO2020173502A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment

Definitions

  • a blockchain-based transaction system and transaction method This application is required to be submitted to the Chinese Patent Office on February 26, 2019.
  • the application number is 201910141898.7.
  • the title of the invention is "Blockchain-based high-concurrency fast transaction and verification method” and The priority of a Chinese patent application filed with the Chinese Patent Office on August 8, 2019, the application number is 201910730034.9, and the invention title is "a blockchain-based transaction system and transaction method", the entire content of which is incorporated herein by reference Applying.
  • This application relates to the field of blockchain technology, in particular to a blockchain-based transaction system and transaction method. Background technique
  • Blockchain is a chain data structure that combines data blocks in sequence in chronological order, and is a distributed ledger that cannot be tampered with or forged that is guaranteed by cryptography.
  • the first step is used to verify whether the transaction is legal; the second step is used to verify that the transaction is legal.
  • the transactions are accounted for and synchronized across the entire network, and the consensus of the entire network is finally completed.
  • Verification and accounting belong to two different processes, and achieving “simultaneous” in a “parallel” manner is conducive to improving efficiency.
  • the function of the block is to keep accounts, and the premise of keeping accounts is verification.
  • This application provides a blockchain-based transaction system and transaction method, which can be used to solve the technical problems that the transaction mechanism in the prior art tends to cause a long waiting time and more transaction queues when there are too many transactions to be verified.
  • an embodiment of the present application provides a blockchain-based transaction system, in which nodes in the system establish a network connection with each other; some nodes in the system are configured as transaction verification nodes, except for the transaction verification node Some other nodes are configured as transaction accounting nodes;
  • the transaction verification node is further configured to: obtain a first transaction request from a first preset database, and perform legality verification on the first transaction request, if the first transaction request passes the legality verification, Adding the signature of the transaction verification node to the first transaction request, and storing the first transaction request with the added signature in a second preset database;
  • the transaction accounting node is further configured to: obtain a second transaction request from a second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the The first blockchain data corresponding to the second transaction request is stored in the first blockchain data.
  • the transaction verification node is further configured to: receive a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and store the transaction request in a first preset database .
  • the transaction verification node is further configured to: obtain the historical verification times of the first transaction request from the first preset database, if the historical verification times of the first transaction request are greater than the first Threshold, abandoning the legality verification of the first transaction request, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to the first threshold , Perform legality verification on the first transaction request.
  • the transaction verification node is further configured to: after verifying the validity of the first transaction request, update the number of historical verifications of the first transaction request.
  • the transaction verification node is further configured to: if the first transaction request fails the legality verification, ignore the first transaction request, and return to obtain from the first preset database The steps of 0T transaction request.
  • the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is greater than a second threshold, determine that the second transaction request is a legal transaction.
  • the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is less than or equal to a second threshold, determine that the second transaction request is illegal transaction.
  • the transaction accounting node is further configured to: after generating the blockchain data corresponding to the second transaction request, delete the second transaction from a second preset database request.
  • nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
  • the transaction participating node is further configured to: generate summary information corresponding to the first block chain data, and generate second block chain data according to the summary information, and store the second block chain data.
  • an embodiment of the present application provides a blockchain-based transaction method, which is applied to a blockchain-based transaction system, and some nodes in the system are configured as transaction verification nodes, except for the transaction Some nodes other than the verification node are configured as transaction accounting nodes; the method includes:
  • the transaction verification node obtains the first transaction request from the first preset database, and performs legality verification on the first transaction request. If the first transaction request passes the legality verification, the first transaction request Attaching the signature of the transaction verification node to the transaction verification node, and storing the first transaction request with the additional signature in the second preset database;
  • the transaction accounting node obtains the second transaction request from the second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the corresponding second transaction request
  • the first blockchain data is stored in the first blockchain data.
  • the method further includes: The transaction verification node receives a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and stores the transaction request in a first preset database.
  • the method before the transaction verification node verifies the legality of the first transaction request, the method further includes:
  • the transaction verification node obtains the number of historical verifications of the first transaction request from the first preset database, and if the number of historical verifications of the first transaction request is greater than a first threshold, the legality of the first transaction request is abandoned Verifying, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to a first threshold, verify the validity of the first transaction request.
  • the method further includes:
  • the transaction verification node updates the historical verification times of the first transaction request.
  • the method further includes:
  • the transaction verification node ignores the first transaction request and returns to the step of obtaining a new transaction request from the first preset database.
  • the determination by the transaction accounting node that the second transaction request is a legal transaction includes:
  • the transaction accounting node determines that the second transaction request is a legal transaction.
  • the method further includes:
  • the transaction accounting node determines that the second transaction request is an illegal transaction.
  • the method further includes:
  • the transaction accounting node deletes the second transaction request from the second preset database.
  • nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
  • the method also includes:
  • the transaction participating node generates summary information corresponding to the first block chain data, and generates second block chain data according to the summary information, and stores the second block chain data.
  • the transaction verification node can obtain the first transaction request from the first preset database, and verify the legality of the first transaction request. If the first transaction request passes the legality verification, Add the signature of the transaction verification node to the transaction request, and store the first transaction request with the additional signature in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to The signature attached to the second transaction request can be generated if it is determined that the second transaction request is a legal transaction
  • the first block chain data corresponding to the second transaction request, and the first block chain data is stored.
  • the transaction verification node is responsible for verifying transactions
  • the transaction accounting node is responsible for accounting
  • the two have a clear division of labor.
  • the transaction verification node there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database.
  • the transaction request without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting.
  • the use of the transaction system provided by this application can effectively avoid the situation of long waiting and more transaction queues when there are too many transactions to be verified.
  • Figure 1 is a schematic structural diagram of a blockchain-based transaction system provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a process of processing transactions in a blockchain-based transaction system provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a process of transactions occurring in a blockchain-based transaction system provided by an embodiment of the present application
  • FIG. 4 is The process corresponding to the method for a transaction verification node to perform legality verification provided by the embodiment of the application is not intended;
  • FIG. 5 is a schematic flow diagram corresponding to a method for processing transactions by a transaction accounting node according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of the overall flow of processing transactions by a transaction system provided by an embodiment of the present application.
  • the blockchain refers to the accounting data generated by transactions in the network system on the one hand, and refers to the network running blockchain technology, that is, the blockchain network.
  • the blockchain network refers to a peer-to-peer (P2P) network with a decentralized application architecture.
  • the blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. It is a trading platform that covers distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied.
  • Blockchain or blockchain information is accounting information generated based on transaction data when transactions occur in the blockchain network, that is, multiple specific transactions form a block, and multiple blocks form a blockchain.
  • each node is equipped with a corresponding consensus mechanism, such as a smart contract, and has sufficient computing power to perform transaction verification and accounting procedures.
  • the nodes also have interface specifications that comply with a certain unified standard to realize access to more nodes or other types of blockchain networks through the interface specifications.
  • FIG. 1 exemplarily shows a schematic structural diagram of a blockchain-based transaction system provided by an embodiment of the present application.
  • the nodes in the transaction system provided by this application establish a network connection with each other. among them, Some nodes in the transaction system may be configured as transaction verification nodes, and some nodes other than the transaction verification nodes may be configured as transaction accounting nodes.
  • node 1, node 2, node 3, and node 4 can be configured as transaction verification nodes, and node 5, node 6, node 7, and node 8 can be configured as Transaction accounting nodes, node 9, node 10, and node 11 may be configured as transaction participating nodes.
  • FIG. 1 is only an exemplary illustration, and this application does not limit the respective numbers of transaction verification nodes, transaction accounting nodes, and transaction participating nodes.
  • Figure 1 shows only the configuration of each node in the trading system in one time period. In another time period, the configuration of each node in the trading system can be changed. For example, it was originally a node in the transaction verification node. 1. In the next time period, it may be configured as a transaction accounting node (or transaction participating node). Similarly, it was originally the node 5 in the transaction accounting node. In the next time period, it may be configured as a transaction verification node (or transaction participating node). Node); or, the configuration of each node in the transaction system may not be changed, which is not specifically limited.
  • FIG. 2 exemplarily shows a schematic diagram of a transaction processing flow of a blockchain-based transaction system provided by an embodiment of the present application.
  • the transaction verification node may be further configured to: obtain the first transaction request from the first preset database, and then perform legality verification on the first transaction request, If the first transaction request passes the legality verification, the signature of the transaction verification node is added to the first transaction request, and the first transaction request with the added signature is stored in the second preset database.
  • the transaction verification node may be further configured to: if the first transaction request fails the legality verification, ignore the first transaction request, and return to the step of obtaining a new transaction request from the first preset database (not shown in FIG. 2 ).
  • the transaction accounting node (node 5 shown in Figure 2) is further configured to: obtain a second transaction request from a second preset database, and according to the signature attached to the second transaction request, if the second transaction request is determined If it is a legal transaction, the first block chain data corresponding to the second transaction request is generated, and the first block chain data is stored.
  • the transaction verification node can obtain the first transaction request from the first preset database, and verify the legality of the first transaction request. If the first transaction request passes the legality verification, Add the signature of the transaction verification node to the transaction request, and store the first transaction request with the additional signature in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to For the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request may be generated, and the first blockchain data may be stored.
  • the nodes in the system by configuring the nodes in the system as transaction verification nodes and transaction accounting nodes, different roles are assigned to the nodes in the system.
  • the transaction verification node is responsible for verifying transactions
  • the transaction accounting node is responsible for accounting
  • the two have a clear division of labor.
  • the transaction verification node there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database.
  • the transaction request without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting.
  • the use of the transaction system provided by this application can effectively avoid waiting for a long time when there are too many transactions to be verified When there are too many queues for transactions.
  • the first preset database may be presented in the form of a table, or may also be presented in the form of a queue, which is not specifically limited, and the first preset database may include multiple transactions to be verified.
  • the second preset database may be presented in the form of a table, or may also be presented in the form of a queue, which is not specifically limited, and the second preset database may include multiple verified transactions.
  • the first preset database and the second preset database may be two independent databases, or may also be the same database; when the first preset database and the second preset database are the same In the case of a database, the transaction verification node can directly add the signature of the transaction verification node to the first transaction request, and the transaction accounting node can directly obtain the second transaction request with the additional oil signature.
  • Both the first preset database and the second preset database can process transaction requests in the database on a first-in first-out principle.
  • FIG. 3 a schematic diagram of a transaction process in a blockchain-based transaction system is provided for this embodiment of the application.
  • the transaction verification node (node 1 shown in FIG. 3) is further configured to: receive a transaction request, and store the transaction request in a first preset database.
  • the transaction request received by the transaction verification node comes from node 0.
  • Node 0 can be the transaction initiating node or the neighboring node of the transaction verification node (ie, node 1).
  • the transaction verification node (node 1 as shown in Figure 3) can be further configured to: receive the transaction request sent by the transaction initiating node or the neighboring node of the transaction verification node.
  • the transaction form between the transaction initiation point and the transaction verification node is also different. There may be two situations in which the transaction verification node receives the transaction request sent by the transaction initiation node.
  • the transaction initiation node can conduct a transaction or information interaction with the direct transaction verification node, it can directly send a transaction request to the transaction verification node through the transaction initiation node.
  • This method is most suitable for transactions where the transaction initiating node and the transaction verification node are in the same blockchain network, that is, the transaction initiating node is also a node in the transaction system.
  • the transaction initiating node cannot directly conduct a transaction or information interaction with the transaction verification node, the transaction request can be broadcast through the transaction initiating node. Specifically, it can first broadcast the transaction request to the neighboring nodes, and then the neighboring nodes combine their own roles to determine whether to complete the transaction or continue broadcasting until the transaction verification node receives the transaction request.
  • the situation corresponding to the transaction verification node receiving the transaction data sent by its neighboring nodes may be that the transaction initiating node does not know the location information of the transaction verification node, and sends the transaction request in the blockchain through broadcast. In this way, as the information spreads, the transaction The verification node can receive the transaction request through its neighboring nodes.
  • the transaction initiating node is a neighboring node of the transaction verification node
  • the transaction verification node can also be regarded as directly receiving the transaction initiation node The transaction request sent.
  • the verification node stores the same transaction request in the first preset database, so that if the transaction accounting node records multiple times, a consensus can be reached between the transaction verification nodes. For example, for the same transaction request, it is agreed to be stored as early as the first The transaction request in the preset database is valid; for another example, a decentralized method is adopted to determine whether to perform accounting according to the storage times of the transaction request.
  • a possible implementation manner is that after receiving the transaction request, the transaction verification node can query whether there are the same transaction requests in the first preset database. If there is no same transaction request in the first preset database, The transaction request is stored in the first preset database; if there is the same transaction request in the first preset database, the transaction request is ignored.
  • Another possible implementation manner is that, after the transaction verification node stores the received transaction request in the first preset database, it may also broadcast it in the transaction system, so as to notify other transaction verification nodes that it is not necessary to store the transaction request.
  • Another possible implementation manner is that after multiple transaction verification nodes all receive the transaction request, the multiple transaction verification nodes all verify the transaction request, and store the transaction request in the first preset database in a sequential order; further, the transaction record The accounting node can determine whether the accounting operation can be performed according to the number of times the transaction request is stored (that is, the number of verifications). Further, after the transaction accounting node completes the accounting operation, the transaction verification node can synchronize the data block To confirm that the transaction has been booked, and then delete the transaction request of the first preset database.
  • the transaction verification node when the transaction verification node verifies the legality of the first transaction request, in an example, after the transaction verification node determines that the first transaction request passes the legality verification, the transaction verification may be added to the first transaction request.
  • the signature of the node and the first transaction request with the additional signature are stored in the second preset database.
  • this application embodiment also provides another method for the transaction verification node to perform legality verification.
  • FIG. 4 it is a schematic diagram of a flow corresponding to a method for a transaction verification node to perform legality verification provided by an embodiment of this application.
  • the transaction verification node may be further configured to: obtain the historical verification times of the first transaction request from the first preset database, if the historical verification times of the first transaction request are greater than the first Threshold, abandon the legality verification of the first transaction request, and store the first transaction request in the second preset database; if the number of historical verifications of the first transaction request is less than or equal to the first threshold, the first transaction request Perform legality verification.
  • multiple transaction verification nodes can verify the same transaction request multiple times. Only when the number of historical verifications of the transaction request is greater than the first threshold, indicating that the transaction request is recognized by multiple transaction verification nodes (the number of historical verifications is greater than or equal to the number of transaction verification nodes), then the transaction verification node will have The signed transaction request is stored in the second preset database.
  • the first threshold may be determined by those skilled in the art based on experience and actual conditions, and is not specifically limited.
  • the signature of the transaction verification node is added to the first transaction request. Name; if the first transaction request is illegal, the first transaction request is ignored.
  • the transaction verification node may update the historical verification times of the first transaction request, and store the updated historical verification times in the first preset database.
  • the number of verifications for the transaction request in the first preset database can be limited. In this way, the verification efficiency of the transaction verification node can be further improved, and the verification waiting time of other transaction requests can be shortened.
  • the transaction verification node when the transaction verification node verifies the legality of the transaction request, only after determining that the transaction request passes the legality verification, the transaction verification node's signature is appended to the transaction request. In other words, for a transaction request that fails the legality verification, the transaction request will not be accompanied by the signature of the transaction verification node.
  • the transaction accounting node determines whether the second transaction request is a legal transaction, which can be determined according to the signature attached to the second transaction request.
  • FIG. 5 it is a schematic flow diagram corresponding to a method for processing transactions by a transaction accounting node provided in an embodiment of this application.
  • the transaction accounting node may be further configured to: if the number of additional signatures in the second transaction request is greater than the second threshold, determine that the second transaction request is a legal transaction; If the number of additional signatures in the transaction request is less than or equal to the second threshold, it is determined that the second transaction request is an illegal transaction.
  • the second threshold may be determined by those skilled in the art based on experience and actual conditions, and is not specifically limited.
  • the first block chain data corresponding to the second transaction request is generated, and the first block chain data is stored; if the second transaction request is an illegal transaction, then The second preset database deletes the second transaction request.
  • the transaction accounting node may be further configured to: after generating the blockchain data corresponding to the second transaction request, from the second The second transaction request is deleted from the preset database.
  • the transaction verification node when sending a transaction, the transaction verification node (node 1 shown in Figure 6) can receive the transaction from the transaction initiating node or the neighboring node of the transaction verification node (node 0 shown in Figure 6).
  • the transaction request, and the transaction request is stored in the second preset database.
  • the transaction verification node (node 1 shown in FIG. 6) can also obtain the first transaction request from the first preset database, and then verify the legality of the first transaction request. If the first transaction request passes the legality Verification, the signature of the transaction verification node is added to the first transaction request, and the first transaction request with the additional signature is stored in the second preset database; if the first transaction request fails the legality verification, the first transaction is ignored Request, and return to the step of obtaining a new transaction request from the first preset database.
  • the transaction accounting node (node 5 as shown in Figure 6) can obtain the second transaction from the second preset database Request, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request is generated, the first blockchain data is stored, and the second preset The database deletes the second transaction request.
  • the transaction accounting node deletes the second transaction request from the second preset database if it determines that the second transaction request is an illegal transaction according to the signature attached to the second transaction request.
  • Transaction participating nodes can generate summary information corresponding to the first blockchain data, and generate second blockchain data according to the summary information, and store the second blockchain data.
  • the transaction participating node is essentially a user of the network, and it completes its own business and transaction by querying the second preset database of the transaction verification node and synchronizing the first blockchain data with the transaction accounting node The closed loop.
  • the final confirmation can be made through the first blockchain data, and for those with high real-time requirements, the relevant confirmation can be quickly completed by querying the second preset database.
  • the transaction verification node can obtain the first transaction request from the first preset database and verify the legality of the first transaction request. If the first transaction request passes the legality verification, the transaction verification is appended to the first transaction request.
  • the signature of the node, and the first transaction request with the additional signature stored in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to the additional signature in the second transaction request Sign, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request can be generated, and the first blockchain data can be stored.
  • the transaction participating node can generate summary information corresponding to the first block chain data, and generate second block chain data according to the summary information, and store the second block chain data.
  • the transaction verification node is responsible for verifying transactions
  • the transaction accounting node is responsible for accounting
  • the two have a clear division of labor.
  • the transaction verification node there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database.
  • the transaction request without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting.
  • the use of the transaction system provided by this application can effectively avoid the situation where there are too many transactions to be verified, which will cause longer waiting times and more transaction queues.
  • the embodiments of the present application also provide a blockchain-based transaction method, which is applied to a blockchain-based transaction system, and some nodes in the system are configured as transaction verification nodes, except Some nodes other than the transaction verification node are configured as transaction accounting nodes; the method includes:
  • the transaction verification node obtains the first transaction request from the first preset database, and performs legality verification on the first transaction request. If the first transaction request passes the legality verification, the first transaction request Attaching the signature of the transaction verification node to the transaction verification node, and storing the first transaction request with the additional signature in the second preset database;
  • the transaction accounting node obtains the second transaction request from the second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the corresponding second transaction request
  • the first blockchain data is stored in the first blockchain data.
  • the method further includes:
  • the transaction verification node receives a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and stores the transaction request in a first preset database.
  • the method before the transaction verification node verifies the legality of the first transaction request, the method further includes:
  • the transaction verification node obtains the number of historical verifications of the first transaction request from the first preset database, and if the number of historical verifications of the first transaction request is greater than a first threshold, the legality of the first transaction request is abandoned Verifying, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to a first threshold, verify the validity of the first transaction request.
  • the method further includes:
  • the transaction verification node updates the historical verification times of the first transaction request.
  • the method further includes:
  • the transaction verification node ignores the first transaction request and returns to the step of obtaining a new transaction request from the first preset database.
  • the determination by the transaction accounting node that the second transaction request is a legal transaction includes:
  • the transaction accounting node determines that the second transaction request is a legal transaction.
  • the method further includes:
  • the transaction accounting node determines that the second transaction request is an illegal transaction.
  • the method further includes:
  • the transaction accounting node deletes the second transaction request from the second preset database.
  • nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
  • the method also includes:
  • the transaction participating node generates summary information corresponding to the first block chain data, and generates second block chain data according to the summary information, and stores the second block chain data.
  • the transaction verification node is responsible for verifying the transaction, and the transaction accounting node is responsible for bookkeeping, and the division of labor is clear.
  • the transaction verification node there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database.
  • Transaction request without the need to verify the transaction. All resources can be used
  • the competition for accounting rights and the synchronization of data can improve the efficiency of transaction accounting and shorten the time for transaction accounting.
  • the use of the transaction system provided by this application can effectively avoid the situation of long waiting and more transaction queues when there are too many transactions to be verified.
  • a computer-readable storage medium in which a computer program or smart contract is stored, and the computer program or smart contract is loaded and executed by a node to implement the above-mentioned embodiments.
  • Transaction processing method may be a read-only storage memory
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • CD-ROM compact disc-read only memory
  • magnetic tape magnetic tape
  • floppy disk magnetic tape
  • optical data storage device etc.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)
  • Small-Scale Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application provides a block chain-based transaction system and transaction method. Some nodes in the system are configured as transaction verification nodes, and some nodes other than the transaction verification nodes are configured as transaction accounting nodes. The transaction verification nodes may obtain a first transaction request from a first preset database and verify the validity of the first transaction request; the transaction accounting nodes may obtain a verified second transaction request from a second preset database, and perform accounting. In this way, the transaction verification nodes are responsible for verification of transactions, and the transaction accounting nodes are responsible for accounting. The two types of nodes have clear division of work. The efficiency of transaction verification is improved, and the time for transaction verification is shortened; the efficiency of transaction accounting is improved, and the time for transaction accounting is shortened; therefore, the situation of long-time waiting and a long transaction queue caused by too many transactions to be verified can be effectively avoided.

Description

一种基于区块链的交易系统及交易方法 本申请要求在 2019年 2月 26日提交中国专利局、 申请号为 201910141898.7、 发 明名称为“基于区块链的高并发快速交易及验证方法”以及在 2019年 8月 8日提交中 国专利局、 申请号为 201910730034.9、 发明名称为“一种基于区块链的交易系统及交 易方法” 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 A blockchain-based transaction system and transaction method. This application is required to be submitted to the Chinese Patent Office on February 26, 2019. The application number is 201910141898.7. The title of the invention is "Blockchain-based high-concurrency fast transaction and verification method" and The priority of a Chinese patent application filed with the Chinese Patent Office on August 8, 2019, the application number is 201910730034.9, and the invention title is "a blockchain-based transaction system and transaction method", the entire content of which is incorporated herein by reference Applying.
技术领域 Technical field
本申请涉及区块链技术领域, 特别涉及一种基于区块链的交易系统及交易方法。 背景技术 This application relates to the field of blockchain technology, in particular to a blockchain-based transaction system and transaction method. Background technique
区块链是一种按照时间顺序将数据区块以顺序相连的方式组合成的一种链式数据 结构, 并以密码学方式保证的不可篡改和不可伪造的分布式账本。 Blockchain is a chain data structure that combines data blocks in sequence in chronological order, and is a distributed ledger that cannot be tampered with or forged that is guaranteed by cryptography.
对于发生在区块链中的交易来说, 完成一笔交易至少需要两个步骤, 第一个步骤 用于验证该笔交易是否合法; 第二个步骤用于在交易合法的前提下, 将该笔交易进行 记账并全网同步, 最终完成全网共识。 例如, 比特币网络和以太坊网络处理交易时, 上述两个步骤是同步进行的, 也就是说在对交易进行验证的同时生成区块。 验证和记 账分属于两个不同的进程, 以“并行” 的方式实现“同时” , 有利于提高效率。 然而, 区块的作用在于记账, 记账的前提是验证, 因此, 必然产生由于 “验证与记账” 的时 序性和 “验证与记账” 的并行性之间的矛盾。 例如, 当待验证交易数量过多时, 这种 交易机制容易造成较长时间的等待和交易排队较多的情况。 For transactions that occur in the blockchain, at least two steps are required to complete a transaction. The first step is used to verify whether the transaction is legal; the second step is used to verify that the transaction is legal. The transactions are accounted for and synchronized across the entire network, and the consensus of the entire network is finally completed. For example, when the Bitcoin network and the Ethereum network process transactions, the above two steps are performed simultaneously, that is, the block is generated while verifying the transaction. Verification and accounting belong to two different processes, and achieving “simultaneous” in a “parallel” manner is conducive to improving efficiency. However, the function of the block is to keep accounts, and the premise of keeping accounts is verification. Therefore, there will inevitably be a contradiction between the timing of "verification and accounting" and the parallelism of "verification and accounting". For example, when there are too many transactions to be verified, this kind of transaction mechanism is likely to cause a longer waiting time and more transaction queues.
基于此, 目前亟需一种基于区块链的交易系统, 用于解决当待验证交易过多时, 现有技术中的交易机制容易造成较长时间的等待和交易排队较多的问题。 Based on this, there is an urgent need for a blockchain-based transaction system to solve the problems that the transaction mechanism in the prior art tends to cause a long wait and more transaction queues when there are too many transactions to be verified.
发明内容 Summary of the invention
本申请提供了一种基于区块链的交易系统及交易方法, 可用于解决当待验证交易 过多时,现有技术中的交易机制容易造成较长时间的等待和交易排队较多的技术问题。 This application provides a blockchain-based transaction system and transaction method, which can be used to solve the technical problems that the transaction mechanism in the prior art tends to cause a long waiting time and more transaction queues when there are too many transactions to be verified.
第一方面, 本申请实施例提供一种基于区块链的交易系统, 所述系统中的节点相 互建立网络连接; 所述系统中的部分节点被配置为交易验证节点, 除所述交易验证节 点以外的部分节点被配置为交易记账节点; In the first aspect, an embodiment of the present application provides a blockchain-based transaction system, in which nodes in the system establish a network connection with each other; some nodes in the system are configured as transaction verification nodes, except for the transaction verification node Some other nodes are configured as transaction accounting nodes;
所述交易验证节点进一步被配置为: 从第一预设数据库中获取第一交易请求, 以 及对所述第一交易请求进行合法性验证, 如果所述第一交易请求通过合法性验证, 在 所述第一交易请求中附加所述交易验证节点的签名, 以及将附加签名后的第一交易请 求存储至第二预设数据库中; The transaction verification node is further configured to: obtain a first transaction request from a first preset database, and perform legality verification on the first transaction request, if the first transaction request passes the legality verification, Adding the signature of the transaction verification node to the first transaction request, and storing the first transaction request with the added signature in a second preset database;
所述交易记账节点进一步被配置为: 从第二预设数据库中获取第二交易请求, 以 及根据第二交易请求中附加的签名, 如果确定所述第二交易请求为合法交易, 生成所 述第二交易请求对应的第一区块链数据, 存储所述第一区块链数据。 在一种可能的实现方式中, 所述交易验证节点进一步被配置为: 接收交易发起节 点或所述交易验证节点的邻近节点发送的交易请求, 将所述交易请求存储至第一预设 数据库中。 The transaction accounting node is further configured to: obtain a second transaction request from a second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the The first blockchain data corresponding to the second transaction request is stored in the first blockchain data. In a possible implementation manner, the transaction verification node is further configured to: receive a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and store the transaction request in a first preset database .
在一种可能的实现方式中, 所述交易验证节点进一步被配置为: 从第一预设数据 库中获取第一交易请求的历史验证次数, 如果所述第一交易请求的历史验证次数大于 第一阈值, 放弃对所述第一交易请求进行的合法性验证, 以及将所述第一交易请求存 储至第二预设数据库中;如果所述第一交易请求的历史验证次数小于或等于第一阈值, 对所述第一交易请求进行合法性验证。 In a possible implementation, the transaction verification node is further configured to: obtain the historical verification times of the first transaction request from the first preset database, if the historical verification times of the first transaction request are greater than the first Threshold, abandoning the legality verification of the first transaction request, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to the first threshold , Perform legality verification on the first transaction request.
在一种可能的实现方式中, 所述交易验证节点进一步被配置为: 在对所述第一交 易请求进行合法性验证之后, 更新所述第一交易请求的历史验证次数。 In a possible implementation manner, the transaction verification node is further configured to: after verifying the validity of the first transaction request, update the number of historical verifications of the first transaction request.
在一种可能的实现方式中, 所述交易验证节点进一步被配置为: 如果所述第一交 易请求未通过合法性验证, 忽略所述第一交易请求, 并返回从第一预设数据库中获取 0T的交易请求的步骤。 In a possible implementation manner, the transaction verification node is further configured to: if the first transaction request fails the legality verification, ignore the first transaction request, and return to obtain from the first preset database The steps of 0T transaction request.
在一种可能的实现方式中, 所述交易记账节点进一步被配置为: 如果所述第二交 易请求中附加的签名的数量大于第二阈值, 确定所述第二交易请求为合法交易。 In a possible implementation manner, the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is greater than a second threshold, determine that the second transaction request is a legal transaction.
在一种可能的实现方式中, 所述交易记账节点进一步被配置为: 如果所述第二交 易请求中附加的签名的数量小于或等于第二阈值, 确定所述第二交易请求为不合法交 易。 In a possible implementation, the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is less than or equal to a second threshold, determine that the second transaction request is illegal transaction.
在一种可能的实现方式中, 所述交易记账节点进一步被配置为: 在生成所述第二 交易请求所对应的区块链数据之后, 从第二预设数据库中删除所述第二交易请求。 In a possible implementation manner, the transaction accounting node is further configured to: after generating the blockchain data corresponding to the second transaction request, delete the second transaction from a second preset database request.
在一种可能的实现方式中, 所述系统中除所述交易验证节点和所述交易验证节点 以外的节点被配置为交易参与节点; In a possible implementation manner, nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
所述交易参与节点进一步被配置为: 生成所述第一区块链数据对应的摘要信息, 以及根据所述摘要信息生成第二区块链数据, 存储所述第二区块链数据。 The transaction participating node is further configured to: generate summary information corresponding to the first block chain data, and generate second block chain data according to the summary information, and store the second block chain data.
第二方面, 本申请实施例提供一种基于区块链的交易方法, 所述方法应用于基于 区块链的交易系统, 所述系统中的部分节点被配置为交易验证节点, 除所述交易验证 节点以外的部分节点被配置为交易记账节点; 所述方法包括: In the second aspect, an embodiment of the present application provides a blockchain-based transaction method, which is applied to a blockchain-based transaction system, and some nodes in the system are configured as transaction verification nodes, except for the transaction Some nodes other than the verification node are configured as transaction accounting nodes; the method includes:
所述交易验证节点从第一预设数据库中获取第一交易请求, 以及对所述第一交易 请求进行合法性验证, 如果所述第一交易请求通过合法性验证, 在所述第一交易请求 中附加所述交易验证节点的签名, 以及将附加签名后的第一交易请求存储至第二预设 数据库中; The transaction verification node obtains the first transaction request from the first preset database, and performs legality verification on the first transaction request. If the first transaction request passes the legality verification, the first transaction request Attaching the signature of the transaction verification node to the transaction verification node, and storing the first transaction request with the additional signature in the second preset database;
所述交易记账节点从第二预设数据库中获取第二交易请求, 以及根据第二交易请 求中附加的签名, 如果确定所述第二交易请求为合法交易, 生成所述第二交易请求对 应的第一区块链数据, 存储所述第一区块链数据。 The transaction accounting node obtains the second transaction request from the second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the corresponding second transaction request The first blockchain data is stored in the first blockchain data.
在一种可能的实现方式中, 所述方法还包括: 所述交易验证节点接收交易发起节点或所述交易验证节点的邻近节点发送的交易 请求, 将所述交易请求存储至第一预设数据库中。 In a possible implementation manner, the method further includes: The transaction verification node receives a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and stores the transaction request in a first preset database.
在一种可能的实现方式中, 所述交易验证节点在对所述第一交易请求进行合法性 验证之前, 所述方法还包括: In a possible implementation, before the transaction verification node verifies the legality of the first transaction request, the method further includes:
所述交易验证节点从第一预设数据库中获取第一交易请求的历史验证次数, 如果 所述第一交易请求的历史验证次数大于第一阈值, 放弃对所述第一交易请求进行的合 法性验证, 以及将所述第一交易请求存储至第二预设数据库中; 如果所述第一交易请 求的历史验证次数小于或等于第一阈值, 对所述第一交易请求进行合法性验证。 The transaction verification node obtains the number of historical verifications of the first transaction request from the first preset database, and if the number of historical verifications of the first transaction request is greater than a first threshold, the legality of the first transaction request is abandoned Verifying, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to a first threshold, verify the validity of the first transaction request.
在一种可能的实现方式中, 所述交易验证节在对所述第一交易请求进行合法性验 证之后, 所述方法还包括: In a possible implementation, after the transaction verification section verifies the legality of the first transaction request, the method further includes:
所述交易验证节点更新所述第一交易请求的历史验证次数。 The transaction verification node updates the historical verification times of the first transaction request.
在一种可能的实现方式中, 所述方法还包括: In a possible implementation manner, the method further includes:
如果所述第一交易请求未通过合法性验证, 所述交易验证节点忽略所述第一交易 请求, 并返回从第一预设数据库中获取新的交易请求的步骤。 If the first transaction request fails the legality verification, the transaction verification node ignores the first transaction request and returns to the step of obtaining a new transaction request from the first preset database.
在一种可能的实现方式中,所述交易记账节点确定所述第二交易请求为合法交易, 包括: In a possible implementation manner, the determination by the transaction accounting node that the second transaction request is a legal transaction includes:
如果所述第二交易请求中附加的签名的数量大于第二阈值, 所述交易记账节点确 定所述第二交易请求为合法交易。 If the number of additional signatures in the second transaction request is greater than the second threshold, the transaction accounting node determines that the second transaction request is a legal transaction.
在一种可能的实现方式中, 所述方法还包括: In a possible implementation manner, the method further includes:
如果所述第二交易请求中附加的签名的数量小于或等于第二阈值, 所述交易记账 节点确定所述第二交易请求为不合法交易。 If the number of additional signatures in the second transaction request is less than or equal to the second threshold, the transaction accounting node determines that the second transaction request is an illegal transaction.
在一种可能的实现方式中, 所述交易记账节点在生成所述第二交易请求所对应的 区块链数据之后, 所述方法还包括: In a possible implementation, after the transaction accounting node generates the blockchain data corresponding to the second transaction request, the method further includes:
所述交易记账节点从第二预设数据库中删除所述第二交易请求。 The transaction accounting node deletes the second transaction request from the second preset database.
在一种可能的实现方式中, 所述系统中除所述交易验证节点和所述交易验证节点 以外的节点被配置为交易参与节点; In a possible implementation manner, nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
所述方法还包括: The method also includes:
所述交易参与节点生成所述第一区块链数据对应的摘要信息, 以及根据所述摘要 信息生成第二区块链数据, 存储所述第二区块链数据。 The transaction participating node generates summary information corresponding to the first block chain data, and generates second block chain data according to the summary information, and stores the second block chain data.
上述基于区块的交易系统中, 交易验证节点可以从第一预设数据库中获取第一交 易请求, 以及对第一交易请求进行合法性验证, 如果第一交易请求通过合法性验证, 在第一交易请求中附加该交易验证节点的签名, 以及将附加签名后的第一交易请求存 储至第二预设数据库中; 交易记账节点可以从第二预设数据库中获取第二交易请求, 以及根据第二交易请求中附加的签名, 如果确定第二交易请求为合法交易, 可以生成 第二交易请求对应的第一区块链数据, 并存储第一区块链数据。 采用上述交易系统, 通过将系统中的节点配置为交易验证节点和交易记账节点, 为系统中的节点赋予不同 的角色, 如此, 交易验证节点负责对交易进行验证, 交易记账节点负责记账, 两者分 工明确。 对于交易验证节点而言, 无需依赖交易记账节点的完成状态, 可以提高交易 验证的效率, 缩短交易验证的时间; 对于交易记账节点而言, 可以直接从第二预设数 据库中获取已验证的交易请求, 而无需再进行交易的验证, 可以把资源都用在记账权 的争夺和数据的同步上, 从而提高交易记账的效率, 缩短交易记账的时间。 综上, 采 用本申请提供的交易系统, 能够有效避免当待验证交易过多时, 造成较长时间的等待 和交易排队较多的情况。 In the above block-based transaction system, the transaction verification node can obtain the first transaction request from the first preset database, and verify the legality of the first transaction request. If the first transaction request passes the legality verification, Add the signature of the transaction verification node to the transaction request, and store the first transaction request with the additional signature in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to The signature attached to the second transaction request can be generated if it is determined that the second transaction request is a legal transaction The first block chain data corresponding to the second transaction request, and the first block chain data is stored. Using the above transaction system, by configuring the nodes in the system as transaction verification nodes and transaction accounting nodes, different roles are assigned to the nodes in the system. In this way, the transaction verification node is responsible for verifying transactions, and the transaction accounting node is responsible for accounting , The two have a clear division of labor. For the transaction verification node, there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database. The transaction request, without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting. In summary, the use of the transaction system provided by this application can effectively avoid the situation of long waiting and more transaction queues when there are too many transactions to be verified.
附图说明 Description of the drawings
图 1是本申请实施例提供的一种基于区块链的交易系统的结构示意图; Figure 1 is a schematic structural diagram of a blockchain-based transaction system provided by an embodiment of the present application;
图 2是本申请实施例提供一种基于区块链的交易系统处理交易的流程示意图; 图 3是本申请实施例提供一种基于区块链的交易系统中发生交易的流程示意图; 图 4是本申请实施例提供的一种交易验证节点进行合法性验证的方法所对应的流 程不意图; FIG. 2 is a schematic diagram of a process of processing transactions in a blockchain-based transaction system provided by an embodiment of the present application; FIG. 3 is a schematic diagram of a process of transactions occurring in a blockchain-based transaction system provided by an embodiment of the present application; FIG. 4 is The process corresponding to the method for a transaction verification node to perform legality verification provided by the embodiment of the application is not intended;
图 5是本申请实施例提供的一种交易记账节点处理交易的方法所对应的流程示意 图; FIG. 5 is a schematic flow diagram corresponding to a method for processing transactions by a transaction accounting node according to an embodiment of the present application;
图 6是本申请实施例提供的一种交易系统处理交易的整体性流程的示意图。 FIG. 6 is a schematic diagram of the overall flow of processing transactions by a transaction system provided by an embodiment of the present application.
具体实施方式 detailed description
为使本申请的目的、 技术方案和优点更加清楚, 下面将结合附图对本申请实施方 式作进一步地详细描述。 In order to make the purpose, technical solutions, and advantages of the present application clearer, the implementation of the present application will be described in further detail below in conjunction with the accompanying drawings.
在本申请提供的技术方案中, 所述区块链一方面指网络系统中交易产生的记账数 据, 另一方面指运行区块链技术的网络, 即区块链网络。 其中, 区块链网络是指具有 去中心化应用架构的点对点 (P2P) 网络, 所述区块链网络能够进行分布式存储、 公共 共识、 数字加密、 交易记账以及验证。 即涵盖了分布式技术、 密码学、 P2P 网络架构 以及各种可能被应用的共识算法的交易平台。 In the technical solution provided by this application, the blockchain refers to the accounting data generated by transactions in the network system on the one hand, and refers to the network running blockchain technology, that is, the blockchain network. Among them, the blockchain network refers to a peer-to-peer (P2P) network with a decentralized application architecture. The blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. It is a trading platform that covers distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied.
区块链或区块链信息是在区块链网络中发生交易时, 根据交易数据生成的记账信 息, 即多笔具体的交易组成一个区块, 多个区块形成一条区块链。 区块链网络中, 包 括相互建立点对点网络连接的节点, 每一个节点都配置有相应的共识机制, 如智能合 约, 并且具有足够的运算能力, 以进行交易验证和记账程序。 节点上还具有符合某种 统一标准的接口规范, 以实现通过接口规范接入更多的节点或者其他类型的区块链网 络。 Blockchain or blockchain information is accounting information generated based on transaction data when transactions occur in the blockchain network, that is, multiple specific transactions form a block, and multiple blocks form a blockchain. In the blockchain network, including nodes that establish a peer-to-peer network connection with each other, each node is equipped with a corresponding consensus mechanism, such as a smart contract, and has sufficient computing power to perform transaction verification and accounting procedures. The nodes also have interface specifications that comply with a certain unified standard to realize access to more nodes or other types of blockchain networks through the interface specifications.
下面首先结合图 1对本申请实施例适用的可能的系统架构进行介绍。 The following first introduces a possible system architecture applicable to the embodiment of the present application in conjunction with FIG. 1.
请参考图 1, 其示例性示出了本申请实施例提供的一种基于区块链的交易系统的 结构示意图。 由图 1可知, 本申请提供的交易系统中的节点相互建立网络连接。 其中, 该交易系统中的部分节点可以被配置为交易验证节点, 除交易验证节点以外的部分节 点可以被配置为交易记账节点。 Please refer to FIG. 1, which exemplarily shows a schematic structural diagram of a blockchain-based transaction system provided by an embodiment of the present application. It can be seen from Figure 1 that the nodes in the transaction system provided by this application establish a network connection with each other. among them, Some nodes in the transaction system may be configured as transaction verification nodes, and some nodes other than the transaction verification nodes may be configured as transaction accounting nodes.
以图 1示出的示意图为例, 在当前时间段内, 节点 1、 节点 2、 节点 3和节点 4 可以被配置为交易验证节点, 节点 5、 节点 6、 节点 7和节点 8可以被配置为交易记账 节点, 节点 9、 节点 10和节点 11可以被配置为交易参与节点。 Taking the schematic diagram shown in Figure 1 as an example, in the current time period, node 1, node 2, node 3, and node 4 can be configured as transaction verification nodes, and node 5, node 6, node 7, and node 8 can be configured as Transaction accounting nodes, node 9, node 10, and node 11 may be configured as transaction participating nodes.
需要说明的是, 图 1仅为一种示例性说明, 本申请不对交易验证节点、 交易记账 节点和交易参与节点各自的数量进行限定。 此外, 图 1示出的仅为一个时间段内交易 系统中各节点的配置情况, 在另一时间段内, 交易系统中各节点的配置情况可以发送 改变, 比如原来是交易验证节点中的节点 1, 在下一时间段可能被配置为交易记账节 点 (或交易参与节点) , 类似地, 原来是交易记账节点中的节点 5, 在下一时间段可 能被配置为交易验证节点 (或交易参与节点) ; 或者, 交易系统中各节点的配置情况 也可以不发生改变, 具体不做限定。 It should be noted that Fig. 1 is only an exemplary illustration, and this application does not limit the respective numbers of transaction verification nodes, transaction accounting nodes, and transaction participating nodes. In addition, Figure 1 shows only the configuration of each node in the trading system in one time period. In another time period, the configuration of each node in the trading system can be changed. For example, it was originally a node in the transaction verification node. 1. In the next time period, it may be configured as a transaction accounting node (or transaction participating node). Similarly, it was originally the node 5 in the transaction accounting node. In the next time period, it may be configured as a transaction verification node (or transaction participating node). Node); or, the configuration of each node in the transaction system may not be changed, which is not specifically limited.
基于图 1所示的系统架构, 图 2示例性示出了本申请实施例提供一种基于区块链 的交易系统处理交易的流程示意图。 Based on the system architecture shown in FIG. 1, FIG. 2 exemplarily shows a schematic diagram of a transaction processing flow of a blockchain-based transaction system provided by an embodiment of the present application.
如图 2所示, 交易验证节点 (如图 2中示出的节点 1) 可以进一步被配置为: 从 第一预设数据库中获取第一交易请求, 然后对第一交易请求进行合法性验证, 如果第 一交易请求通过合法性验证, 则在第一交易请求中附加交易验证节点的签名, 以及将 附加签名后的第一交易请求存储至第二预设数据库中。 As shown in FIG. 2, the transaction verification node (node 1 shown in FIG. 2) may be further configured to: obtain the first transaction request from the first preset database, and then perform legality verification on the first transaction request, If the first transaction request passes the legality verification, the signature of the transaction verification node is added to the first transaction request, and the first transaction request with the added signature is stored in the second preset database.
交易验证节点还可以进一步被配置为: 如果第一交易请求未通过合法性验证, 忽 略第一交易请求, 并返回从第一预设数据库中获取新的交易请求的步骤 (图 2中未示 出) 。 The transaction verification node may be further configured to: if the first transaction request fails the legality verification, ignore the first transaction request, and return to the step of obtaining a new transaction request from the first preset database (not shown in FIG. 2 ).
交易记账节点 (如图 2 中示出的节点 5) 进一步被配置为: 从第二预设数据库中 获取第二交易请求, 以及根据第二交易请求中附加的签名, 如果确定第二交易请求为 合法交易, 则生成第二交易请求对应的第一区块链数据, 以及存储第一区块链数据。 The transaction accounting node (node 5 shown in Figure 2) is further configured to: obtain a second transaction request from a second preset database, and according to the signature attached to the second transaction request, if the second transaction request is determined If it is a legal transaction, the first block chain data corresponding to the second transaction request is generated, and the first block chain data is stored.
上述基于区块的交易系统中, 交易验证节点可以从第一预设数据库中获取第一交 易请求, 以及对第一交易请求进行合法性验证, 如果第一交易请求通过合法性验证, 在第一交易请求中附加该交易验证节点的签名, 以及将附加签名后的第一交易请求存 储至第二预设数据库中; 交易记账节点可以从第二预设数据库中获取第二交易请求, 以及根据第二交易请求中附加的签名, 如果确定第二交易请求为合法交易, 可以生成 第二交易请求对应的第一区块链数据, 并存储第一区块链数据。 采用上述交易系统, 通过将系统中的节点配置为交易验证节点和交易记账节点, 为系统中的节点赋予不同 的角色, 如此, 交易验证节点负责对交易进行验证, 交易记账节点负责记账, 两者分 工明确。 对于交易验证节点而言, 无需依赖交易记账节点的完成状态, 可以提高交易 验证的效率, 缩短交易验证的时间; 对于交易记账节点而言, 可以直接从第二预设数 据库中获取已验证的交易请求, 而无需再进行交易的验证, 可以把资源都用在记账权 的争夺和数据的同步上, 从而提高交易记账的效率, 缩短交易记账的时间。 综上, 采 用本申请提供的交易系统, 能够有效避免当待验证交易过多时, 造成较长时间的等待 和交易排队较多的情况。 In the above block-based transaction system, the transaction verification node can obtain the first transaction request from the first preset database, and verify the legality of the first transaction request. If the first transaction request passes the legality verification, Add the signature of the transaction verification node to the transaction request, and store the first transaction request with the additional signature in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to For the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request may be generated, and the first blockchain data may be stored. Using the above transaction system, by configuring the nodes in the system as transaction verification nodes and transaction accounting nodes, different roles are assigned to the nodes in the system. In this way, the transaction verification node is responsible for verifying transactions, and the transaction accounting node is responsible for accounting , The two have a clear division of labor. For the transaction verification node, there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database. The transaction request, without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting. In summary, the use of the transaction system provided by this application can effectively avoid waiting for a long time when there are too many transactions to be verified When there are too many queues for transactions.
具体来说, 第一预设数据库可以是以表格的形式呈现, 或者也可以是以队列的形 式呈现, 具体不做限定, 第一预设数据库中可以包括多个待验证交易。 相应地, 第二 预设数据库可以是以表格的形式呈现, 或者也可以是以队列的形式呈现, 具体不做限 定, 第二预设数据库中可以包括多个已验证交易。 Specifically, the first preset database may be presented in the form of a table, or may also be presented in the form of a queue, which is not specifically limited, and the first preset database may include multiple transactions to be verified. Correspondingly, the second preset database may be presented in the form of a table, or may also be presented in the form of a queue, which is not specifically limited, and the second preset database may include multiple verified transactions.
需要说明的是: (1)第一预设数据库和第二预设数据库可以是两个独立的数据库, 或者也可以是同一个数据库;当第一预设数据库和第二预设数据库是同一个数据库时, 交易验证节点可以直接在第一交易请求中附加交易验证节点的签名, 交易记账节点可 以直接获取附加油签名的第二交易请求。 (2)第一预设数据库和第二预设数据库可以 均以先进先出的原则, 处理数据库中的交易请求。 It should be noted that: (1) The first preset database and the second preset database may be two independent databases, or may also be the same database; when the first preset database and the second preset database are the same In the case of a database, the transaction verification node can directly add the signature of the transaction verification node to the first transaction request, and the transaction accounting node can directly obtain the second transaction request with the additional oil signature. (2) Both the first preset database and the second preset database can process transaction requests in the database on a first-in first-out principle.
具体实施过程中, 如图 3所示, 为本申请实施例提供一种基于区块链的交易系统 中发生交易的流程示意图。 In the specific implementation process, as shown in FIG. 3, a schematic diagram of a transaction process in a blockchain-based transaction system is provided for this embodiment of the application.
所述交易验证节点 (如图 3 中示出的节点 1) 进一步被配置为: 接收交易请求, 以及将交易请求存储至第一预设数据库中。 The transaction verification node (node 1 shown in FIG. 3) is further configured to: receive a transaction request, and store the transaction request in a first preset database.
从图 3中可以看出, 交易验证节点 (即节点 1) 接收到的交易请求来源于节点 0。 节点 0可以是交易发起节点, 也可以是交易验证节点 (即节点 1) 的邻近节点。 也就 是说, 交易验证节点 (如图 3 中示出的节点 1) 可以进一步被配置为: 接收交易发起 节点或交易验证节点的邻近节点发送的交易请求。 It can be seen from Figure 3 that the transaction request received by the transaction verification node (ie node 1) comes from node 0. Node 0 can be the transaction initiating node or the neighboring node of the transaction verification node (ie, node 1). In other words, the transaction verification node (node 1 as shown in Figure 3) can be further configured to: receive the transaction request sent by the transaction initiating node or the neighboring node of the transaction verification node.
根据实际应用环境的不同, 交易发起点与交易验证节点之间的交易形式也不同。 交易验证节点接收交易发起节点发送的交易请求的情形可能有以下两种。 Depending on the actual application environment, the transaction form between the transaction initiation point and the transaction verification node is also different. There may be two situations in which the transaction verification node receives the transaction request sent by the transaction initiation node.
一种情形是, 如果交易发起节点可以与直接交易验证节点进行交易或信息交互, 则可以直接通过交易发起节点向交易验证节点发送交易请求。 这种方式最适合于交易 发起节点与交易验证节点处于同一个区块链网络内的交易, 即交易发起节点也是该交 易系统内的节点。 In one situation, if the transaction initiation node can conduct a transaction or information interaction with the direct transaction verification node, it can directly send a transaction request to the transaction verification node through the transaction initiation node. This method is most suitable for transactions where the transaction initiating node and the transaction verification node are in the same blockchain network, that is, the transaction initiating node is also a node in the transaction system.
另一种情形是,如果交易发起节点不能直接与交易验证节点进行交易或信息交互, 则可以通过交易发起节点广播交易请求。 具体可以为先向邻近节点广播该交易请求, 邻近节点再结合自身的角色, 确定是完成交易还是继续广播, 直到交易验证节点接收 到该交易请求。 Another situation is that if the transaction initiating node cannot directly conduct a transaction or information interaction with the transaction verification node, the transaction request can be broadcast through the transaction initiating node. Specifically, it can first broadcast the transaction request to the neighboring nodes, and then the neighboring nodes combine their own roles to determine whether to complete the transaction or continue broadcasting until the transaction verification node receives the transaction request.
交易验证节点接收其邻近节点发送的交易数据对应的情形可以是, 交易发起节点 未知交易验证节点的位置信息, 通过广播的形式在区块链中发送交易请求, 如此, 随 着信息的扩散, 交易验证节点可以通过其邻近节点接受到交易请求。 The situation corresponding to the transaction verification node receiving the transaction data sent by its neighboring nodes may be that the transaction initiating node does not know the location information of the transaction verification node, and sends the transaction request in the blockchain through broadcast. In this way, as the information spreads, the transaction The verification node can receive the transaction request through its neighboring nodes.
需要说明的是, 上述两种情形仅为示例性说明, 在其他可能的示例中, 如果交易 发起节点是交易验证节点的邻近节点, 那么, 交易验证节点也可以看作是直接接收到 交易发起节点发送的交易请求。 It should be noted that the above two situations are only illustrative. In other possible examples, if the transaction initiating node is a neighboring node of the transaction verification node, then the transaction verification node can also be regarded as directly receiving the transaction initiation node The transaction request sent.
本申请实施例中, 同为交易验证节点的节点数量可能有多个, 那么, 在发生交易 时, 可能存在多个交易验证节点都接收到交易请求的情况。 此时, 为了避免多个交易 验证节点将相同的交易请求存储至第一预设数据库, 以致交易记账节点多次记账的情 况, 交易验证节点之间可以达成共识, 比如, 针对相同的交易请求, 约定最早存储到 第一预设数据库中的交易请求是有效的; 又比如, 采用去中心的方式, 根据交易请求 的存储次数来决定是否进行记账。 In the embodiment of the present application, there may be multiple nodes that are also transaction verification nodes. Then, when a transaction occurs, there may be a situation in which multiple transaction verification nodes all receive the transaction request. At this time, in order to avoid multiple transactions The verification node stores the same transaction request in the first preset database, so that if the transaction accounting node records multiple times, a consensus can be reached between the transaction verification nodes. For example, for the same transaction request, it is agreed to be stored as early as the first The transaction request in the preset database is valid; for another example, a decentralized method is adopted to determine whether to perform accounting according to the storage times of the transaction request.
具体实施过程中, 一种可能的实施方式为, 交易验证节点接收到交易请求后, 可 以查询第一预设数据库中是否有相同的交易请求, 如果第一预设数据库中没有相同的 交易请求, 则将该交易请求存储至第一预设数据库; 如果第一预设数据库中有相同的 交易请求, 则忽略该交易请求。 In the specific implementation process, a possible implementation manner is that after receiving the transaction request, the transaction verification node can query whether there are the same transaction requests in the first preset database. If there is no same transaction request in the first preset database, The transaction request is stored in the first preset database; if there is the same transaction request in the first preset database, the transaction request is ignored.
另一种可能的实施方式为, 交易验证节点在将接收到的交易请求存储至第一预设 数据库之后, 还可以在交易系统中广播, 从而可以通知其它交易验证节点不必再存储 该交易请求。 Another possible implementation manner is that, after the transaction verification node stores the received transaction request in the first preset database, it may also broadcast it in the transaction system, so as to notify other transaction verification nodes that it is not necessary to store the transaction request.
又一种可能的实现方式为, 多个交易验证节点都接收到交易请求后, 多个交易验 证节点都对该交易请求进行验证, 并按照先后顺序存储至第一预设数据库; 进而, 交 易记账节点可以根据该交易请求被存储的次数 (即被验证的次数) 来判断是否可以进 行记账操作, 进一步地, 当交易记账节点完成记账操作后, 交易验证节点可以通过同 步数据区块来确认交易已经完成记账, 再删除第一预设数据库的交易请求。 Another possible implementation manner is that after multiple transaction verification nodes all receive the transaction request, the multiple transaction verification nodes all verify the transaction request, and store the transaction request in the first preset database in a sequential order; further, the transaction record The accounting node can determine whether the accounting operation can be performed according to the number of times the transaction request is stored (that is, the number of verifications). Further, after the transaction accounting node completes the accounting operation, the transaction verification node can synchronize the data block To confirm that the transaction has been booked, and then delete the transaction request of the first preset database.
本申请实施例中, 交易验证节点对第一交易请求进行合法性验证时, 一个示例中, 当交易验证节点确定第一交易请求通过合法性验证后, 就可以在第一交易请求中附加 交易验证节点的签名, 以及将附加签名后的第一交易请求存储至第二预设数据库中。 In the embodiment of this application, when the transaction verification node verifies the legality of the first transaction request, in an example, after the transaction verification node determines that the first transaction request passes the legality verification, the transaction verification may be added to the first transaction request. The signature of the node and the first transaction request with the additional signature are stored in the second preset database.
另一个示例中, 考虑到交易验证节点可能会出现验证出错的情况, 如果只有一个 交易验证节点对第一交易请求进行验证的话, 验证结果可能会出现错误。 因此, 本申 请实施例还提供另一种交易验证节点进行合法性验证的方法。 In another example, considering that the transaction verification node may have verification errors, if only one transaction verification node verifies the first transaction request, the verification result may be incorrect. Therefore, this application embodiment also provides another method for the transaction verification node to perform legality verification.
如图 4所示, 为本申请实施例提供的一种交易验证节点进行合法性验证的方法所 对应的流程示意图。 As shown in FIG. 4, it is a schematic diagram of a flow corresponding to a method for a transaction verification node to perform legality verification provided by an embodiment of this application.
交易验证节点 (如图 4 中示出的节点 1) 还可以进一步被配置为: 从第一预设数 据库中获取第一交易请求的历史验证次数, 如果第一交易请求的历史验证次数大于第 一阈值, 放弃对第一交易请求进行的合法性验证, 以及将第一交易请求存储至第二预 设数据库中; 如果第一交易请求的历史验证次数小于或等于第一阈值, 对第一交易请 求进行合法性验证。 The transaction verification node (node 1 as shown in Figure 4) may be further configured to: obtain the historical verification times of the first transaction request from the first preset database, if the historical verification times of the first transaction request are greater than the first Threshold, abandon the legality verification of the first transaction request, and store the first transaction request in the second preset database; if the number of historical verifications of the first transaction request is less than or equal to the first threshold, the first transaction request Perform legality verification.
也就是说, 在图 4示出的方法中, 多个交易验证节点可以对同一个交易请求进行 多次验证。 只有当该交易请求的历史验证次数大于第一阈值时, 说明该交易请求被多 个交易验证节点 (历史验证次数大于或等于交易验证节点的数量) 认可, 此时交易验 证节点才会将附加有签名的该交易请求存储至第二预设数据库中。 That is, in the method shown in Figure 4, multiple transaction verification nodes can verify the same transaction request multiple times. Only when the number of historical verifications of the transaction request is greater than the first threshold, indicating that the transaction request is recognized by multiple transaction verification nodes (the number of historical verifications is greater than or equal to the number of transaction verification nodes), then the transaction verification node will have The signed transaction request is stored in the second preset database.
需要说明的是, 第一阈值可以是本领域技术人员根据经验和实际情况确定的, 具 体不做限定。 It should be noted that the first threshold may be determined by those skilled in the art based on experience and actual conditions, and is not specifically limited.
进一步地, 如果第一交易请求合法, 则在第一交易请求中附加交易验证节点的签 名; 如果第一交易请求不合法, 则忽略第一交易请求。 Further, if the first transaction request is legal, the signature of the transaction verification node is added to the first transaction request. Name; if the first transaction request is illegal, the first transaction request is ignored.
更进一步地, 当交易验证节点完成对第一交易请求的合法性验证之后, 可以更新 第一交易请求的历史验证次数,并将更新后的历史验证次数存储至第一预设数据库中。 Furthermore, after the transaction verification node completes the legality verification of the first transaction request, it may update the historical verification times of the first transaction request, and store the updated historical verification times in the first preset database.
采用上述方法, 对于第一预设数据库中的交易请求, 其验证次数是可以限定的。 如此, 可以进一步提高交易验证节点的验证效率, 缩短其它交易请求的验证等待时间。 Using the above method, the number of verifications for the transaction request in the first preset database can be limited. In this way, the verification efficiency of the transaction verification node can be further improved, and the verification waiting time of other transaction requests can be shortened.
本申请实施例中, 交易验证节点在对交易请求进行合法性验证时, 只有在确定该 交易请求通过合法性验证之后, 才会在该交易请求中附加该交易验证节点的签名。 也 就是说, 对于未通过合法性验证的交易请求而言, 该交易请求中不会附加有交易验证 节点的签名。 In the embodiment of the present application, when the transaction verification node verifies the legality of the transaction request, only after determining that the transaction request passes the legality verification, the transaction verification node's signature is appended to the transaction request. In other words, for a transaction request that fails the legality verification, the transaction request will not be accompanied by the signature of the transaction verification node.
基于此, 交易记账节点判断第二交易请求是否为合法交易, 可以根据第二交易请 求中附加的签名来确定。 Based on this, the transaction accounting node determines whether the second transaction request is a legal transaction, which can be determined according to the signature attached to the second transaction request.
具体地, 如图 5所示, 为本申请实施例提供的一种交易记账节点处理交易的方法 所对应的流程示意图。 交易记账节点 (如图 5中示出的节点 5) 可以进一步被配置为: 如果第二交易请求中附加的签名的数量大于第二阈值, 则确定第二交易请求为合法交 易; 如果第二交易请求中附加的签名的数量小于或等于第二阈值, 则确定第二交易请 求为不合法交易。 Specifically, as shown in FIG. 5, it is a schematic flow diagram corresponding to a method for processing transactions by a transaction accounting node provided in an embodiment of this application. The transaction accounting node (node 5 shown in Figure 5) may be further configured to: if the number of additional signatures in the second transaction request is greater than the second threshold, determine that the second transaction request is a legal transaction; If the number of additional signatures in the transaction request is less than or equal to the second threshold, it is determined that the second transaction request is an illegal transaction.
需要说明的是, 第二阈值可以是本领域技术人员根据经验和实际情况确定的, 具 体不做限定。 It should be noted that the second threshold may be determined by those skilled in the art based on experience and actual conditions, and is not specifically limited.
进一步地, 如果确定第二交易请求为合法交易, 则生成第二交易请求对应的第一 区块链数据, 存储所述第一区块链数据; 如果第二交易请求为不合法交易, 则从第二 预设数据库删除第二交易请求。 Further, if it is determined that the second transaction request is a legal transaction, the first block chain data corresponding to the second transaction request is generated, and the first block chain data is stored; if the second transaction request is an illegal transaction, then The second preset database deletes the second transaction request.
更进一步地, 如图 5所示, 交易记账节点 (如图 5中示出的节点 5) 还可以进一 步被配置为: 在生成第二交易请求所对应的区块链数据之后, 从第二预设数据库中删 除第二交易请求。 Furthermore, as shown in FIG. 5, the transaction accounting node (node 5 shown in FIG. 5) may be further configured to: after generating the blockchain data corresponding to the second transaction request, from the second The second transaction request is deleted from the preset database.
为了更加清楚地描述本申请实施例提供的一种基于区块链的交易系统, 下面结合 图 6, 对本申请中的交易系统处理交易的整体性流程进行描述。 In order to more clearly describe a blockchain-based transaction system provided by an embodiment of the present application, the overall flow of the transaction system in the present application for processing transactions will be described below with reference to FIG. 6.
如图 6所示, 在发送交易时, 交易验证节点 (如图 6中示出的节点 1) 可以接收 交易发起节点或交易验证节点的邻近节点 (如图 6中示出的节点 0) 发送的交易请求, 以及将交易请求存储至第二预设数据库中。 As shown in Figure 6, when sending a transaction, the transaction verification node (node 1 shown in Figure 6) can receive the transaction from the transaction initiating node or the neighboring node of the transaction verification node (node 0 shown in Figure 6). The transaction request, and the transaction request is stored in the second preset database.
并且, 交易验证节点 (如图 6 中示出的节点 1) 还可以从第一预设数据库中获取 第一交易请求, 然后对第一交易请求进行合法性验证, 如果第一交易请求通过合法性 验证, 则在第一交易请求中附加交易验证节点的签名, 以及将附加签名后的第一交易 请求存储至第二预设数据库中; 如果第一交易请求未通过合法性验证, 忽略第一交易 请求, 并返回从第一预设数据库中获取新的交易请求的步骤。 In addition, the transaction verification node (node 1 shown in FIG. 6) can also obtain the first transaction request from the first preset database, and then verify the legality of the first transaction request. If the first transaction request passes the legality Verification, the signature of the transaction verification node is added to the first transaction request, and the first transaction request with the additional signature is stored in the second preset database; if the first transaction request fails the legality verification, the first transaction is ignored Request, and return to the step of obtaining a new transaction request from the first preset database.
交易记账节点 (如图 6 中示出的节点 5) 可以从第二预设数据库中获取第二交易 请求, 以及根据第二交易请求中附加的签名, 如果确定第二交易请求为合法交易, 生 成第二交易请求对应的第一区块链数据, 存储第一区块链数据并从第二预设数据库删 除第二交易请求。 The transaction accounting node (node 5 as shown in Figure 6) can obtain the second transaction from the second preset database Request, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request is generated, the first blockchain data is stored, and the second preset The database deletes the second transaction request.
交易记账节点 (如图 6 中示出的节点 5) 根据第二交易请求中附加的签名, 如果 确定第二交易请求为不合法交易, 则从第二预设数据库删除第二交易请求。 The transaction accounting node (node 5 shown in Figure 6) deletes the second transaction request from the second preset database if it determines that the second transaction request is an illegal transaction according to the signature attached to the second transaction request.
交易参与节点 (如图 6 中示出的节点 9) 可以生成第一区块链数据对应的摘要信 息, 以及根据摘要信息生成第二区块链数据, 存储第二区块链数据。 Transaction participating nodes (node 9 as shown in Figure 6) can generate summary information corresponding to the first blockchain data, and generate second blockchain data according to the summary information, and store the second blockchain data.
需要说明的是, 交易参与节点本质上是网络的使用者, 其通过查询交易验证节点 的第二预设数据库, 向交易记账节点同步第一区块链数据, 来完成其自身的业务和交 易的闭环。 这个过程中, 对于实时性要求并不高的场景, 可以通过第一区块链数据进 行最终确认, 而对于那些实时性高要求, 就可以通过查询第二预设数据库快速完成相 关的确认工作。 It should be noted that the transaction participating node is essentially a user of the network, and it completes its own business and transaction by querying the second preset database of the transaction verification node and synchronizing the first blockchain data with the transaction accounting node The closed loop. In this process, for scenarios with low real-time requirements, the final confirmation can be made through the first blockchain data, and for those with high real-time requirements, the relevant confirmation can be quickly completed by querying the second preset database.
如此, 交易验证节点可以从第一预设数据库中获取第一交易请求, 以及对第一交 易请求进行合法性验证, 如果第一交易请求通过合法性验证, 在第一交易请求中附加 该交易验证节点的签名,以及将附加签名后的第一交易请求存储至第二预设数据库中; 交易记账节点可以从第二预设数据库中获取第二交易请求, 以及根据第二交易请求中 附加的签名, 如果确定第二交易请求为合法交易, 可以生成第二交易请求对应的第一 区块链数据, 并存储第一区块链数据。 交易参与节点可以生成第一区块链数据对应的 摘要信息, 以及根据摘要信息生成第二区块链数据, 存储第二区块链数据。 采用上述 交易系统, 通过将系统中的节点配置为交易验证节点和交易记账节点, 为系统中的节 点赋予不同的角色, 如此, 交易验证节点负责对交易进行验证, 交易记账节点负责记 账, 两者分工明确。 对于交易验证节点而言, 无需依赖交易记账节点的完成状态, 可 以提高交易验证的效率, 缩短交易验证的时间; 对于交易记账节点而言, 可以直接从 第二预设数据库中获取已验证的交易请求, 而无需再进行交易的验证, 可以把资源都 用在记账权的争夺和数据的同步上, 从而提高交易记账的效率, 缩短交易记账的时间。 综上, 采用本申请提供的交易系统, 能够有效避免当待验证交易过多时, 造成较长时 间的等待和交易排队较多的情况。 In this way, the transaction verification node can obtain the first transaction request from the first preset database and verify the legality of the first transaction request. If the first transaction request passes the legality verification, the transaction verification is appended to the first transaction request. The signature of the node, and the first transaction request with the additional signature stored in the second preset database; the transaction accounting node can obtain the second transaction request from the second preset database, and according to the additional signature in the second transaction request Sign, if it is determined that the second transaction request is a legal transaction, the first blockchain data corresponding to the second transaction request can be generated, and the first blockchain data can be stored. The transaction participating node can generate summary information corresponding to the first block chain data, and generate second block chain data according to the summary information, and store the second block chain data. Using the above transaction system, by configuring the nodes in the system as transaction verification nodes and transaction accounting nodes, different roles are assigned to the nodes in the system. In this way, the transaction verification node is responsible for verifying transactions, and the transaction accounting node is responsible for accounting , The two have a clear division of labor. For the transaction verification node, there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database. The transaction request, without the need for transaction verification, can use resources for the contention of accounting rights and data synchronization, thereby improving the efficiency of transaction accounting and shortening the time of transaction accounting. In summary, the use of the transaction system provided by this application can effectively avoid the situation where there are too many transactions to be verified, which will cause longer waiting times and more transaction queues.
基于同样的发明构思, 本申请实施例还提供一种基于区块链的交易方法, 所述方 法应用于基于区块链的交易系统, 所述系统中的部分节点被配置为交易验证节点, 除 所述交易验证节点以外的部分节点被配置为交易记账节点; 所述方法包括: Based on the same inventive concept, the embodiments of the present application also provide a blockchain-based transaction method, which is applied to a blockchain-based transaction system, and some nodes in the system are configured as transaction verification nodes, except Some nodes other than the transaction verification node are configured as transaction accounting nodes; the method includes:
所述交易验证节点从第一预设数据库中获取第一交易请求, 以及对所述第一交易 请求进行合法性验证, 如果所述第一交易请求通过合法性验证, 在所述第一交易请求 中附加所述交易验证节点的签名, 以及将附加签名后的第一交易请求存储至第二预设 数据库中; The transaction verification node obtains the first transaction request from the first preset database, and performs legality verification on the first transaction request. If the first transaction request passes the legality verification, the first transaction request Attaching the signature of the transaction verification node to the transaction verification node, and storing the first transaction request with the additional signature in the second preset database;
所述交易记账节点从第二预设数据库中获取第二交易请求, 以及根据第二交易请 求中附加的签名, 如果确定所述第二交易请求为合法交易, 生成所述第二交易请求对 应的第一区块链数据, 存储所述第一区块链数据。 在一种可能的实现方式中, 所述方法还包括: The transaction accounting node obtains the second transaction request from the second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the corresponding second transaction request The first blockchain data is stored in the first blockchain data. In a possible implementation manner, the method further includes:
所述交易验证节点接收交易发起节点或所述交易验证节点的邻近节点发送的交易 请求, 将所述交易请求存储至第一预设数据库中。 The transaction verification node receives a transaction request sent by a transaction initiation node or a neighboring node of the transaction verification node, and stores the transaction request in a first preset database.
在一种可能的实现方式中, 所述交易验证节点在对所述第一交易请求进行合法性 验证之前, 所述方法还包括: In a possible implementation, before the transaction verification node verifies the legality of the first transaction request, the method further includes:
所述交易验证节点从第一预设数据库中获取第一交易请求的历史验证次数, 如果 所述第一交易请求的历史验证次数大于第一阈值, 放弃对所述第一交易请求进行的合 法性验证, 以及将所述第一交易请求存储至第二预设数据库中; 如果所述第一交易请 求的历史验证次数小于或等于第一阈值, 对所述第一交易请求进行合法性验证。 The transaction verification node obtains the number of historical verifications of the first transaction request from the first preset database, and if the number of historical verifications of the first transaction request is greater than a first threshold, the legality of the first transaction request is abandoned Verifying, and storing the first transaction request in a second preset database; if the number of historical verifications of the first transaction request is less than or equal to a first threshold, verify the validity of the first transaction request.
在一种可能的实现方式中, 所述交易验证节在对所述第一交易请求进行合法性验 证之后, 所述方法还包括: In a possible implementation, after the transaction verification section verifies the legality of the first transaction request, the method further includes:
所述交易验证节点更新所述第一交易请求的历史验证次数。 The transaction verification node updates the historical verification times of the first transaction request.
在一种可能的实现方式中, 所述方法还包括: In a possible implementation manner, the method further includes:
如果所述第一交易请求未通过合法性验证, 所述交易验证节点忽略所述第一交易 请求, 并返回从第一预设数据库中获取新的交易请求的步骤。 If the first transaction request fails the legality verification, the transaction verification node ignores the first transaction request and returns to the step of obtaining a new transaction request from the first preset database.
在一种可能的实现方式中,所述交易记账节点确定所述第二交易请求为合法交易, 包括: In a possible implementation manner, the determination by the transaction accounting node that the second transaction request is a legal transaction includes:
如果所述第二交易请求中附加的签名的数量大于第二阈值, 所述交易记账节点确 定所述第二交易请求为合法交易。 If the number of additional signatures in the second transaction request is greater than the second threshold, the transaction accounting node determines that the second transaction request is a legal transaction.
在一种可能的实现方式中, 所述方法还包括: In a possible implementation manner, the method further includes:
如果所述第二交易请求中附加的签名的数量小于或等于第二阈值, 所述交易记账 节点确定所述第二交易请求为不合法交易。 If the number of additional signatures in the second transaction request is less than or equal to the second threshold, the transaction accounting node determines that the second transaction request is an illegal transaction.
在一种可能的实现方式中, 所述交易记账节点在生成所述第二交易请求所对应的 区块链数据之后, 所述方法还包括: In a possible implementation, after the transaction accounting node generates the blockchain data corresponding to the second transaction request, the method further includes:
所述交易记账节点从第二预设数据库中删除所述第二交易请求。 The transaction accounting node deletes the second transaction request from the second preset database.
在一种可能的实现方式中, 所述系统中除所述交易验证节点和所述交易验证节点 以外的节点被配置为交易参与节点; In a possible implementation manner, nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
所述方法还包括: The method also includes:
所述交易参与节点生成所述第一区块链数据对应的摘要信息, 以及根据所述摘要 信息生成第二区块链数据, 存储所述第二区块链数据。 The transaction participating node generates summary information corresponding to the first block chain data, and generates second block chain data according to the summary information, and stores the second block chain data.
采用上述交易方法, 交易验证节点负责对交易进行验证, 交易记账节点负责记账, 两者分工明确。 对于交易验证节点而言, 无需依赖交易记账节点的完成状态, 可以提 高交易验证的效率, 缩短交易验证的时间; 对于交易记账节点而言, 可以直接从第二 预设数据库中获取已验证的交易请求, 而无需再进行交易的验证, 可以把资源都用在 记账权的争夺和数据的同步上, 从而提高交易记账的效率, 缩短交易记账的时间。 综 上, 采用本申请提供的交易系统, 能够有效避免当待验证交易过多时, 造成较长时间 的等待和交易排队较多的情况。 Using the above transaction method, the transaction verification node is responsible for verifying the transaction, and the transaction accounting node is responsible for bookkeeping, and the division of labor is clear. For the transaction verification node, there is no need to rely on the completion status of the transaction accounting node, which can improve the efficiency of transaction verification and shorten the transaction verification time; for the transaction accounting node, the verified data can be obtained directly from the second preset database. Transaction request without the need to verify the transaction. All resources can be used The competition for accounting rights and the synchronization of data can improve the efficiency of transaction accounting and shorten the time for transaction accounting. In summary, the use of the transaction system provided by this application can effectively avoid the situation of long waiting and more transaction queues when there are too many transactions to be verified.
在示例性实施例中, 还提供了一种计算机可读存储介质, 所述存储介质中存储有 计算机程序或智能合约, 所述计算机程序或智能合约被节点加载并执行以实现上述实 施例提供的事务处理方法。 可选地, 上述计算机可读存储介质可以是只读存储记忆体 In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program or smart contract is stored, and the computer program or smart contract is loaded and executed by a node to implement the above-mentioned embodiments. Transaction processing method. Optionally, the aforementioned computer-readable storage medium may be a read-only storage memory
(Read-Only Memory , ROM)、 随机存储记忆体 (Random Access Memory , RAM)、(Read-Only Memory, ROM), Random Access Memory (RAM),
CD-ROM、 磁带、 软盘和光数据存储设备等。 CD-ROM, magnetic tape, floppy disk and optical data storage device etc.
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的 通用硬件平台的方式来实现。 基于这样的理解, 本申请实施例中的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品 可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台 计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行本申请各个实施例或 者实施例的某些部分所述的方法。 Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., include a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or some parts of the embodiment of the present application.
本领域技术人员在考虑说明书及实践这里公开的发明后, 将容易想到本公开的其 它实施方案。 本申请旨在涵盖本公开的任何变型、 用途或者适应性变化, 这些变型、 用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的 公知常识或惯用技术手段。 说明书和实施例仅被视为示例性的, 本公开的真正范围和 精神由下面的权利要求指出。 Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure, and these variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not disclosed in the present disclosure. . The description and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
应当理解的是, 本公开并不局限于上面已经描述并在附图中示出的精确结构, 并 且可以在不脱离其范围进行各种修改和改变。 本公开的范围仅由所附的权利要求来限 制。 It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

权 利 要 求 书 Claims
1、 一种基于区块链的交易系统, 所述系统中的节点相互建立网络连接; 其特征在 于, 所述系统中的部分节点被配置为交易验证节点, 除所述交易验证节点以外的部分 节点被配置为交易记账节点; 1. A blockchain-based transaction system, in which nodes in the system establish a network connection with each other; characterized in that, some nodes in the system are configured as transaction verification nodes, except for the transaction verification nodes The node is configured as a transaction accounting node;
所述交易验证节点进一步被配置为: 从第一预设数据库中获取第一交易请求, 以 及对所述第一交易请求进行合法性验证, 如果所述第一交易请求通过合法性验证, 在 所述第一交易请求中附加所述交易验证节点的签名, 以及将附加签名后的第一交易请 求存储至第二预设数据库中; The transaction verification node is further configured to: obtain a first transaction request from a first preset database, and perform legality verification on the first transaction request, if the first transaction request passes the legality verification, Adding the signature of the transaction verification node to the first transaction request, and storing the first transaction request with the added signature in a second preset database;
所述交易记账节点进一步被配置为: 从第二预设数据库中获取第二交易请求, 以 及根据第二交易请求中附加的签名, 如果确定所述第二交易请求为合法交易, 生成所 述第二交易请求对应的第一区块链数据, 存储所述第一区块链数据。 The transaction accounting node is further configured to: obtain a second transaction request from a second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the The first blockchain data corresponding to the second transaction request is stored in the first blockchain data.
2、根据权利要求 1所述的系统,其特征在于,所述交易验证节点进一步被配置为: 接收交易发起节点或所述交易验证节点的邻近节点发送的交易请求, 将所述交易请求 存储至第一预设数据库中。 2. The system according to claim 1, wherein the transaction verification node is further configured to: receive a transaction request sent by a transaction initiating node or a neighboring node of the transaction verification node, and store the transaction request in The first preset database.
3、根据权利要求 1所述的系统,其特征在于,所述交易验证节点进一步被配置为: 从第一预设数据库中获取第一交易请求的历史验证次数, 如果所述第一交易请求的历 史验证次数大于第一阈值, 放弃对所述第一交易请求进行的合法性验证, 以及将所述 第一交易请求存储至第二预设数据库中; 如果所述第一交易请求的历史验证次数小于 或等于第一阈值, 对所述第一交易请求进行合法性验证。 3. The system according to claim 1, wherein the transaction verification node is further configured to: obtain the historical verification times of the first transaction request from the first preset database, if the If the number of historical verification times is greater than the first threshold, the legality verification of the first transaction request is abandoned, and the first transaction request is stored in a second preset database; if the historical verification times of the first transaction request If it is less than or equal to the first threshold, verify the validity of the first transaction request.
4、根据权利要求 3所述的系统,其特征在于,所述交易验证节点进一步被配置为: 在对所述第一交易请求进行合法性验证之后,更新所述第一交易请求的历史验证次数。 4. The system according to claim 3, wherein the transaction verification node is further configured to: after verifying the validity of the first transaction request, update the number of historical verifications of the first transaction request .
5、根据权利要求 1所述的系统,其特征在于,所述交易验证节点进一步被配置为: 如果所述第一交易请求未通过合法性验证, 忽略所述第一交易请求, 并返回从第一预 设数据库中获取新的交易请求的步骤。 5. The system according to claim 1, wherein the transaction verification node is further configured to: if the first transaction request fails the legality verification, ignore the first transaction request, and return the slave A step of obtaining a new transaction request in a preset database.
6、根据权利要求 1所述的系统,其特征在于,所述交易记账节点进一步被配置为: 如果所述第二交易请求中附加的签名的数量大于第二阈值, 确定所述第二交易请求为 合法交易。 6. The system according to claim 1, wherein the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is greater than a second threshold, determine the second transaction The request is a legitimate transaction.
7、根据权利要求 6所述的系统,其特征在于,所述交易记账节点进一步被配置为: 如果所述第二交易请求中附加的签名的数量小于或等于第二阈值, 确定所述第二交易 请求为不合法交易。 7. The system according to claim 6, wherein the transaction accounting node is further configured to: if the number of additional signatures in the second transaction request is less than or equal to a second threshold, determine the first 2. The transaction request is an illegal transaction.
8、根据权利要求 1所述的系统,其特征在于,所述交易记账节点进一步被配置为: 在生成所述第二交易请求所对应的区块链数据之后, 从第二预设数据库中删除所述第 二交易请求。 8. The system according to claim 1, wherein the transaction accounting node is further configured to: after generating the blockchain data corresponding to the second transaction request, from a second preset database Delete the second transaction request.
9、 根据权利要求 1所述的系统, 其特征在于, 所述系统中除所述交易验证节点和 所述交易验证节点以外的节点被配置为交易参与节点; 9. The system according to claim 1, wherein nodes other than the transaction verification node and the transaction verification node in the system are configured as transaction participating nodes;
所述交易参与节点进一步被配置为: 生成所述第一区块链数据对应的摘要信息, 以及根据所述摘要信息生成第二区块链数据, 存储所述第二区块链数据。 The transaction participating node is further configured to: generate summary information corresponding to the first block chain data, and generate second block chain data according to the summary information, and store the second block chain data.
10、 一种基于区块链的交易方法, 其特征在于, 所述方法应用于基于区块链的交 易系统, 所述系统中的部分节点被配置为交易验证节点, 除所述交易验证节点以外的 部分节点被配置为交易记账节点; 所述方法包括: 10. A blockchain-based transaction method, characterized in that the method is applied to a blockchain-based transaction system, and some nodes in the system are configured as transaction verification nodes, except for the transaction verification nodes Some nodes of are configured as transaction accounting nodes; the method includes:
所述交易验证节点从第一预设数据库中获取第一交易请求, 以及对所述第一交易 请求进行合法性验证, 如果所述第一交易请求通过合法性验证, 在所述第一交易请求 中附加所述交易验证节点的签名, 以及将附加签名后的第一交易请求存储至第二预设 数据库中; The transaction verification node obtains the first transaction request from the first preset database, and performs legality verification on the first transaction request. If the first transaction request passes the legality verification, the first transaction request Attaching the signature of the transaction verification node to the transaction verification node, and storing the first transaction request with the additional signature in the second preset database;
所述交易记账节点从第二预设数据库中获取第二交易请求, 以及根据第二交易请 求中附加的签名, 如果确定所述第二交易请求为合法交易, 生成所述第二交易请求对 应的第一区块链数据, 存储所述第一区块链数据。 The transaction accounting node obtains the second transaction request from the second preset database, and according to the signature attached to the second transaction request, if it is determined that the second transaction request is a legal transaction, generate the corresponding second transaction request The first blockchain data is stored in the first blockchain data.
PCT/CN2020/078673 2019-02-26 2020-03-10 Block chain-based transaction system and transaction method WO2020173502A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910141898.7 2019-02-26
CN201910141898 2019-02-26
CN201910730034.9A CN111614707A (en) 2019-02-26 2019-08-08 Transaction system and transaction method based on block chain
CN201910730034.9 2019-08-08

Publications (1)

Publication Number Publication Date
WO2020173502A1 true WO2020173502A1 (en) 2020-09-03

Family

ID=72197581

Family Applications (3)

Application Number Title Priority Date Filing Date
PCT/CN2020/078672 WO2020173501A1 (en) 2019-02-26 2020-03-10 Block chain-based transaction system
PCT/CN2020/078666 WO2020173498A1 (en) 2019-02-26 2020-03-10 Blockchain-based subnet transaction method and system
PCT/CN2020/078673 WO2020173502A1 (en) 2019-02-26 2020-03-10 Block chain-based transaction system and transaction method

Family Applications Before (2)

Application Number Title Priority Date Filing Date
PCT/CN2020/078672 WO2020173501A1 (en) 2019-02-26 2020-03-10 Block chain-based transaction system
PCT/CN2020/078666 WO2020173498A1 (en) 2019-02-26 2020-03-10 Blockchain-based subnet transaction method and system

Country Status (3)

Country Link
JP (1) JP7041993B2 (en)
CN (3) CN111614708B (en)
WO (3) WO2020173501A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017051B (en) * 2020-10-29 2021-02-12 北京易真学思教育科技有限公司 Block chain system, related method, user node and storage medium
CN112232823B (en) * 2020-12-10 2021-04-23 腾讯科技(深圳)有限公司 Transaction processing method, device, medium and electronic equipment of block chain system
CN112688790B (en) * 2020-12-23 2021-09-28 网易(杭州)网络有限公司 Data processing method and device of alliance chain, electronic equipment and storage medium
CN112991058B (en) * 2021-02-19 2023-09-22 区块动力(广州)科技有限公司 Verification method and system for conducting transaction based on blockchain
CN112990895A (en) * 2021-03-11 2021-06-18 杭州复杂美科技有限公司 Method, equipment and storage medium for accelerating parallel execution of block chain transaction
CN113067895B (en) * 2021-06-02 2021-08-31 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113886124B (en) * 2021-10-04 2023-05-30 杭州复杂美科技有限公司 Illegal node identification method, computer device, and storage medium
CN117591303B (en) * 2024-01-18 2024-05-07 腾讯科技(深圳)有限公司 Business processing method based on block chain, block chain system, medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106446067A (en) * 2016-09-06 2017-02-22 联动优势科技有限公司 Transaction data acquisition method and apparatus
CN107464117A (en) * 2017-08-04 2017-12-12 平安科技(深圳)有限公司 Data managing method and block catenary system based on block chain
KR20180010467A (en) * 2016-07-21 2018-01-31 주식회사 케이티 Method for managing virtual currency and apparatus therefor
CN108665359A (en) * 2017-03-29 2018-10-16 中国移动通信有限公司研究院 Block chain processing method, accounting nodes and verification node

Family Cites Families (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101467131A (en) * 2005-07-20 2009-06-24 美国唯美安视国际有限公司 Network user authentication system and method
US10762504B2 (en) * 2016-02-22 2020-09-01 Bank Of America Corporation System for external secure access to process data network
US10097344B2 (en) * 2016-07-15 2018-10-09 Mastercard International Incorporated Method and system for partitioned blockchains and enhanced privacy for permissioned blockchains
US10565570B2 (en) * 2016-09-27 2020-02-18 The Toronto-Dominion Bank Processing network architecture with companion database
CN106682984B (en) * 2016-10-27 2019-09-10 深圳壹账通智能科技有限公司 Transaction business process method and system based on block chain
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN107767134A (en) * 2017-01-22 2018-03-06 平安医疗健康管理股份有限公司 Medical care cost method and system based on block chain
US11107048B2 (en) 2017-04-17 2021-08-31 International Business Machines Corporation Providing out-of-band verification for blockchain transactions
CN107392040B (en) * 2017-04-28 2019-08-09 阿里巴巴集团控股有限公司 A kind of method and device of common recognition verifying
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107450981B (en) * 2017-05-31 2020-04-24 创新先进技术有限公司 Block chain consensus method and equipment
CN107528886B (en) * 2017-07-25 2020-07-31 中国科学院计算技术研究所 Block chain full-network splitting method and system
CN107507005B (en) * 2017-08-01 2020-09-11 众安信息技术服务有限公司 Off-link data access method and system based on alliance chain
CN107679848B (en) * 2017-09-22 2021-02-26 郑州大学 Petty transaction time delay control method based on time delay control Petri network
CN107888562B (en) 2017-10-13 2019-12-27 布比(北京)网络技术有限公司 Data verification and transceiving method, node and system for parallel link access to interconnection chain
CN108023729B (en) * 2017-10-13 2020-06-23 中国银联股份有限公司 Block chain network and transaction method thereof
CN107766540A (en) * 2017-10-31 2018-03-06 上海分布信息科技有限公司 A kind of block chain network of subregion and its method for realizing partitioned storage
CN108256859B (en) * 2018-01-02 2021-02-23 中国工商银行股份有限公司 Financial product transaction consensus method, node and system based on block chain
CN108596619B (en) * 2018-04-26 2022-11-01 深圳怡化电脑股份有限公司 Transaction method, device, central node and system for blockchain system
CN108615153A (en) * 2018-04-28 2018-10-02 百度在线网络技术(北京)有限公司 Processing method, device, system, equipment and the storage medium of block chain data
CN108647967B (en) * 2018-05-10 2021-09-14 北京京东尚科信息技术有限公司 Method and device for selecting block chain consensus mechanism and consensus node
CN108964905A (en) * 2018-07-18 2018-12-07 胡祥义 A kind of safe and efficient block chain implementation method
CN109033422B (en) * 2018-08-08 2020-05-22 云南天之游科技股份有限公司 Method and device for generating block chain and block chain
CN109240900A (en) * 2018-08-16 2019-01-18 北京京东尚科信息技术有限公司 Block chain network service platform and its intelligent contract detection method, storage medium
CN109447649A (en) * 2018-09-03 2019-03-08 深圳壹账通智能科技有限公司 The processing method and system of transaction request
CN109493223B (en) * 2018-11-07 2021-12-21 联动优势科技有限公司 Accounting method and device
CN109274692B (en) * 2018-11-14 2021-03-16 众安信息技术服务有限公司 Method and device for identifying malicious nodes of block chain network
CN109710627A (en) * 2018-12-29 2019-05-03 中国银联股份有限公司 A kind of Transaction Inquiries method and device based on block chain network
CN109949160A (en) * 2019-03-27 2019-06-28 上海优扬新媒信息技术有限公司 A kind of sharding method and device of block chain
CN111046437A (en) * 2019-10-31 2020-04-21 中国科学院计算技术研究所 Block chain parallel transaction processing method and system based on isomorphic multi-chain and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
KR20180010467A (en) * 2016-07-21 2018-01-31 주식회사 케이티 Method for managing virtual currency and apparatus therefor
CN106446067A (en) * 2016-09-06 2017-02-22 联动优势科技有限公司 Transaction data acquisition method and apparatus
CN108665359A (en) * 2017-03-29 2018-10-16 中国移动通信有限公司研究院 Block chain processing method, accounting nodes and verification node
CN107464117A (en) * 2017-08-04 2017-12-12 平安科技(深圳)有限公司 Data managing method and block catenary system based on block chain

Also Published As

Publication number Publication date
CN111614707A (en) 2020-09-01
CN111614709B (en) 2022-12-16
WO2020173498A1 (en) 2020-09-03
CN111614709A (en) 2020-09-01
WO2020173501A1 (en) 2020-09-03
JP2022517436A (en) 2022-03-08
CN111614708B (en) 2021-06-08
CN111614708A (en) 2020-09-01
JP7041993B2 (en) 2022-03-25

Similar Documents

Publication Publication Date Title
WO2020173502A1 (en) Block chain-based transaction system and transaction method
TWI690184B (en) Cross-blockchain authentication method and device, and electronic equipment
US20210026740A1 (en) Data backup method, storage medium, and computing device
WO2020258831A1 (en) Method and device for master node handover processing in blockchain system
US11128522B2 (en) Changing a master node in a blockchain system
CN108055138B (en) Block chain-based application distribution recording method and system
US20210133359A1 (en) Permission management method, permission verification method, and related apparatus
JP7186862B2 (en) Block processing method, blockchain node, block processing system and computer program
US9203734B2 (en) Optimized bi-directional communication in an information centric network
WO2016177285A1 (en) Data pushing method and device
WO2018076759A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
WO2020134895A1 (en) Blockchain-based accounting method and apparatus, and electronic device
EP3754578A1 (en) Blockchain-based settlement method, blockchain node and client
US20200177388A1 (en) Cross-blockchain resource transmission
TW202036229A (en) System and method for ending view change protocol
WO2021135857A1 (en) Method and device for updating trusted node information
WO2023045620A1 (en) Transaction data processing method and apparatus, computer device and storage medium
JP2020505663A (en) System and method for replay attack detection
WO2022252941A1 (en) Data processing method and apparatus based on blockchain, and device and readable storage medium
WO2023045617A1 (en) Transaction data processing method and apparatus, device and medium
JP2023076628A (en) Computer-implemented systems and methods relating to binary blockchain comprising one pair of coupled blockchains
US20100228866A1 (en) Method for synchronizing data, system, and apparatus thereof
CN111338906A (en) Terminal equipment, edge node and block chain-based application supervision method and system
WO2016101759A1 (en) Data routing method, data management device and distributed storage system
WO2022206431A1 (en) Method and apparatus for querying ledger data of fabric blockchain

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20762629

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20762629

Country of ref document: EP

Kind code of ref document: A1