WO2020248982A1 - Procédé et dispositif de traitement de transaction dans une chaîne de blocs - Google Patents

Procédé et dispositif de traitement de transaction dans une chaîne de blocs Download PDF

Info

Publication number
WO2020248982A1
WO2020248982A1 PCT/CN2020/095201 CN2020095201W WO2020248982A1 WO 2020248982 A1 WO2020248982 A1 WO 2020248982A1 CN 2020095201 W CN2020095201 W CN 2020095201W WO 2020248982 A1 WO2020248982 A1 WO 2020248982A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
random number
record
processed
number record
Prior art date
Application number
PCT/CN2020/095201
Other languages
English (en)
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 WO2020248982A1 publication Critical patent/WO2020248982A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the embodiments of the present invention relate to the field of financial technology (Fintech), and in particular to a method and device for transaction processing in a blockchain (BlockChain).
  • a blockchain is a chain composed of a series of blocks. Each block records the data of the block and the hash value of the previous block. In this way, all blocks form a chain one after another.
  • the cryptographic technology and decentralized ideas on which the blockchain is based make the historical information on the chain unable to be tampered with.
  • each account corresponds to a sequence. This sequence starts from zero.
  • the sequence value is increased by one, and the transaction node processes the same sequence according to the sequence value of the transaction sent by the client from small to large.
  • the embodiment of the present invention provides a method and device for processing transactions in a blockchain, which improves the efficiency of transaction processing by transaction nodes.
  • An embodiment of the present invention provides a method for processing transactions in a blockchain, including:
  • the transaction node receives the pending transaction sent by the client, where the pending transaction includes a first random number randomly generated by the client for the pending transaction;
  • the transaction node performs a first verification on the pending transaction; wherein, the first verification includes determining whether the first random number is included in a random number record; the random number record is used to record that the first random number has been passed 1. The random number of each transaction verified;
  • the transaction node After determining that the transaction to be processed passes the first verification, the transaction node records the first random number in the random number record and puts the transaction to be processed into a transaction pool.
  • the client does not need to generate strictly increasing sequence values, and the business logic requirements of the client are reduced, and when one account corresponds to multiple clients, the probability of multiple clients generating the same random number when sending transactions at the same time is also Very small, and further, in order to solve the problem of the client generating the same random number, the first verification is performed on the pending transaction sent by the client, and the random number record is set in the transaction node to receive the pending transaction at the transaction node When, verify whether the first random number in the transaction to be processed already exists in the random number record, if not, determine that the transaction to be processed passes the verification, and further record the first random number of the transaction to be processed in the random number record And put the pending transaction into the transaction pool for subsequent on-chain processing.
  • the transaction node does not need to put the received transaction in the transaction pool and wait for other transaction processing to complete before processing the transaction, which improves the transaction The efficiency of the node in processing transactions, and the guarantee that the transaction node will not process repeated transactions.
  • the random number record includes a first random number record and a second random number record
  • the first random number record is used to record the random number of each transaction that has passed the first verification but has not been processed on the chain;
  • the second random number record is used to record the random number of each transaction that has been processed on the chain
  • the determining by the transaction node that the transaction to be processed passes the first verification includes:
  • the random number record is divided into a first random number record and a second random number record.
  • the first random number record is stored in the memory of the transaction node. Since the memory of the transaction node is limited, the first random number record is set The number record is used to record the random number of each transaction that has passed the first verification but has not been processed on the chain, and the random number of each transaction that has been processed on the chain is recorded in the second random number record, thereby ensuring the first random number
  • the amount of data recorded by the data is small, to avoid the problem that the memory of the transaction node exceeds the normal operation of the transaction node.
  • the second random number record includes the random number of the second transaction; the second transaction is a transaction recorded in N blocks with a block height of M to MN, where M is a block chain The block height of the current block, M and N are both positive integers, and M is greater than N.
  • the transaction when obtaining the second random number record, according to the current block height, only the current block and the transactions in the N blocks before the current block can be obtained, and the transaction is determined to be the second transaction.
  • the random number of the second transaction is recorded in the second random number record, that is to say, when the second random number record is obtained, not all the transactions of each block that have been recorded in the blockchain are obtained, but the current area
  • the transaction in a part of the block before the block under the premise that the obtained transaction in each block can be enough to verify the current pending transaction, reduce the workload of the transaction node to obtain the random number of the transaction, and improve the work of the transaction node effectiveness.
  • the method further includes:
  • the first random number is deleted from the first random number record, and the first random number and the block height of the transaction to be processed are correspondingly added to the second random number record to ensure the first random number.
  • the random number record only records the random number of the transaction in the transaction pool that has passed the first verification, and does not record the random number of the transaction that has been on the chain, reducing the amount of data recorded by the first random number, that is, reducing the memory of the node Data storage capacity, further, store the random number of the transaction on the chain and the block height of the exchange in the block correspondingly in the second random number record to ensure that the same transaction is rejected after the same transaction is received .
  • an embodiment of the present invention also provides a device for processing transactions in a blockchain, including:
  • a receiving unit configured to receive a pending transaction sent by a client, where the pending transaction includes a first random number randomly generated by the client for the pending transaction;
  • the processing unit is configured to perform first verification on the pending transaction; wherein the first verification includes determining whether the first random number is included in the random number record; the random number record is used to record that the transaction has passed the The random number of each transaction of the first verification; and after determining that the transaction to be processed passes the first verification, record the first random number in the random number record and put the transaction to be processed into the transaction In the pool.
  • the random number record includes a first random number record and a second random number record
  • the first random number record is used to record the random number of each transaction that has passed the first verification but has not been processed on the chain;
  • the second random number record is used to record the random number of each transaction that has been processed on the chain
  • the processing unit is specifically used for:
  • the second random number record includes the random number of the second transaction; the second transaction is a transaction recorded in N blocks with a block height of M to MN, where M is a block chain The block height of the current block, M and N are both positive integers, and M is greater than N.
  • processing unit is further configured to:
  • an embodiment of the present invention also provides a computing device, including:
  • Memory used to store program instructions
  • the processor is configured to call the program instructions stored in the memory, and execute the method of transaction processing in the blockchain according to the obtained program.
  • an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions.
  • the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned blockchain The method of transaction processing.
  • the embodiment of the present invention also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute the above-mentioned method for processing transactions in the blockchain.
  • FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present invention
  • Figure 2 is a schematic diagram of another system architecture provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for processing transactions in a blockchain according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a transaction processing device in a blockchain provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a computing device provided by this application.
  • FIG. 1 exemplarily shows a system architecture applicable to a method for processing transactions in a blockchain provided by an embodiment of the present invention.
  • the system architecture may include multiple clients 100 and a blockchain system 200, as shown in FIG. 2,
  • the blockchain system 200 includes multiple blockchain nodes 210.
  • the blockchain nodes 210 are transaction nodes. Multiple clients 100 can send transactions to the blockchain nodes 210 respectively.
  • Each block chain node 210 of the block chain system 200 includes a transaction pool 211, a consensus module 212, a synchronization module 213, a block link port module 214, a storage module 215, and the like.
  • the transaction pool 211 is used to receive new transactions from the client 100 or other blockchain nodes 210, and store the verified transactions in the transaction pool queue for use by the consensus module 212 when packaging blocks.
  • the transaction pool 211 may include a transaction validator, which is used to verify the new transaction received from the client. It may include multiple verifications, such as verifying whether the signature of the received transaction is valid, whether it is in the transaction pool or the blockchain There is the transaction, whether the parameters in the transaction are valid, etc.
  • the consensus module 212 is divided into two sub-modules: a packaging thread and a consensus thread.
  • the packaging thread is responsible for taking out transactions from the transaction pool 211, packaging them into blocks, and broadcasting the newly generated blocks to all other consensus nodes; the consensus thread is responsible for executing new blocks , Run the consensus algorithm, write all consensus blocks into the storage module 215 through the block link port module 214.
  • the synchronization module 213 is used for transaction synchronization and block synchronization.
  • the transaction synchronization broadcasts all transactions received by this node to other consensus nodes to ensure that when the block node is switched, the new block node can generate a new block based on the latest transaction ;
  • Block synchronization is used to solve the problem of block height inconsistency between nodes with different performance.
  • the synchronization module 213 maintains the block height information of all nodes. When the block height of the current node lags behind other nodes, it will actively initiate a block download Request to ensure that the block height of this node is consistent with other nodes.
  • the storage module 215 includes two parts: storage and state.
  • Storage (such as AMDB, LevelDB) uses a table-like storage structure, which is mainly used to store block information, system tables, etc.; state stores transaction execution results, including mpt state and storage state, mpt state is a world state tree, which can trace the historical information of any transaction, storage state stores the current state after the transaction is executed, and does not store historical information.
  • FIG. 3 exemplarily shows a flow of a method for processing transactions in a blockchain provided by an embodiment of the present invention, and the flow may be executed by a device for processing transactions in the blockchain.
  • the process specifically includes:
  • Step 301 The transaction node receives the pending transaction sent by the client.
  • the client sends a transaction to be processed, and the transaction to be processed may include a first random number, which is a random value (Nonce value) randomly generated by the client for the transaction to be processed.
  • the client can introduce any random variable to generate a random value, and the client can use a random number of type u256.
  • the client does not need to generate strictly increasing sequence values, and the business logic requirements of the client are reduced, and when an account corresponds to multiple clients, the probability that multiple clients generate the same random number when sending transactions It is also very small. Further, in order to solve the problem of the client generating the same random number, the first verification of the pending transaction sent by the client is required.
  • Step 302 The transaction node performs first verification on the transaction to be processed.
  • the transaction node performs the first verification of the transaction to be processed. Specifically, it can be to verify the first random number in the transaction to be verified, and determine whether the first random number has been recorded in the random number record, which is equivalent to judging whether the random number record includes The first random number.
  • the random number record is used to record the random number of each transaction that has passed the first verification, that is, to determine whether the first random number in a transaction to be processed is in the random number record, if not, determine the The transaction to be processed passes the first verification, and the first random number of the transaction to be processed is added to the random number record.
  • the random number record may include a first random number record and a second random number record, where the first random number record is used to record the random number of each transaction that has passed the first verification but has not been processed on the chain. ;
  • the second random number record is used to record the random number of each transaction that has been processed on the chain. That is, the transaction node performs the first verification of the transaction to be processed, which may include two verifications. One is to determine that the first random number does not exist in the first random number record, and the other is to determine that the second random number record does not exist. A random number.
  • the first random number record may be a random number list stored in memory, and it may also be called a transaction pool Nonce list, which is used to prevent the transaction pool from processing repeated transactions;
  • the second random number record may also It is a list of random numbers, stored in the database, and can also be called a list of Nonce system tables to prevent the consensus thread from packaging and processing repeated transactions.
  • the second random number record When obtaining the second random number record, it can be obtained according to the current block of the blockchain and the N blocks before the current block. If the block height of the current block of the blockchain is M, then the block height is obtained Is the random number of all transactions in the N blocks from M to MN. If the determined transaction is the second transaction, then the random number of the determined transaction is the random number of the second transaction. The random number is recorded in the second random number record.
  • M and N are positive integers, and M is greater than N.
  • N can be understood as the limit value of the transaction weight prevention (Limit) value, that is, the block range of the transaction weight prevention.
  • the current block to the Nth block in the future is understood as the upper limit of the transaction weight (BlockLimit), which is the block height used to indicate the upper limit of the weight. Assuming the current block is M, then M+N is the upper limit of the transaction weight The height of the block, where N can be set based on experience and can be set to 1000. Further, when obtaining the second random number record, the obtained random numbers of all the second transactions in the N blocks are not repeated.
  • the pending transaction sent by the client may also include a height parameter, which is used to indicate that the block height of the transaction to be processed in the block is not greater than the height parameter. Accordingly, the transaction node performs the first verification of the transaction to be processed , Can include not only judging whether the first random number is included in the random number record, but also judging whether the height parameter in the transaction to be processed is valid according to the block height of the current block of the blockchain.
  • the height parameter is determined to be valid, for example, such as the current block height It is 1500, the default value is 1000, and the height parameter in the transaction to be processed sent by the client is 1700, then it is determined that 1700 is not less than 1500 and not more than 2500, then the height parameter is 1700 is valid.
  • the preset value can be determined based on experience, or it can be a transaction weight prevention limit value.
  • the height parameter is used to indicate the priority of pending transactions sent by the client to meet the different needs of the client for sending transactions.
  • Step 303 After determining that the transaction to be processed passes the first verification, the transaction node records the first random number in the random number record and puts the transaction to be processed into a transaction pool.
  • the transaction to be processed can be Put it in the transaction pool, and then process the transactions in the transaction pool on the chain. Specifically, the pending transactions in the transaction pool can be packaged into blocks, and then the blocks can be chained by consensus. After the pending transactions in the transaction pool are processed on the chain, the first random number can be deleted from the first random number record, and the first random number and the pending transaction can be added correspondingly to the block height of the block To the second random number record.
  • the block height of the transaction to be processed in the block is understood as the block height of the block chain where the transaction to be processed is packaged into the block when the block is chained.
  • the client sends the transaction to be processed to the transaction node.
  • the transaction to be processed has the first random number recorded, and the transaction to be processed is T i , and the first random number of the transaction to be processed T i is Nonce i ; the transaction node receives after T i, call transaction transaction validator pool verify the validity of T i, including three verification:
  • T i Whether T i is duplicated: first query the Nonce list of the transaction pool. If Nonce i exists in the Nonce list of the transaction pool, it means that the transaction pool has received the same transaction and rejected T i ; otherwise, continue to query the Nonce system table list to determine whether T i is available on the transaction chain, if Nonce Nonce system table I present in the list, the transaction has been described on the same chain, reject T i;
  • T i passes the above three verifications of the transaction validator, it is determined that T i can be processed on the chain, and T i is determined to be a verified transaction. Specifically, the random number Nonce i of T i is inserted into the transaction pool Nonce list, and remove the module from the transaction by consensus pool T i and packaged into blocks, block after consensus is successful, will be submitted to the storage module block by block link interface module, about to block the chain. After successfully uploading the block to the chain, first update the Nonce system table list, append the Nonce i of the block to the Nonce system table list, and then update the transaction pool Nonce list, and delete Nonce i from the transaction pool Nonce list.
  • the first random number generated by the client uniquely represents a transaction.
  • Nonce i is inserted into the Nonce list of the transaction pool.
  • the transaction node When there is a second pending transaction with the random number Nonce i
  • the transaction node When submitting to the transaction node again, the transaction node will reject the second pending transaction because the Nonce i already exists in the Nonce list of the transaction pool. And after adding Nonce i to the Nonce system table list, delete Nonce i from the Nonce list of the transaction pool.
  • the transaction node will be affected by the Nonce system table. The Nonce i already exists in the list and the second pending transaction is rejected.
  • the consensus module can periodically package multiple verified transactions from the transaction pool, that is, after the block is successfully uploaded to the chain, the new area There are multiple on-chain transactions in the block, and the first random numbers in the multiple on-chain transactions form a Nonce list. All the first random numbers in the Nonce list are deleted from the Nonce list of the transaction pool and added to the Nonce system table. List.
  • the client does not need to generate strictly increasing sequence values, and the business logic requirements of the client are reduced, and when one account corresponds to multiple clients, the probability of multiple clients generating the same random number when sending transactions at the same time is also Very small, and further, in order to solve the problem of the client generating the same random number, the first verification is performed on the pending transaction sent by the client, and the random number record is set in the transaction node to receive the pending transaction at the transaction node When, verify whether the first random number in the transaction to be processed already exists in the random number record, if not, determine that the transaction to be processed passes the verification, and further record the first random number of the transaction to be processed in the random number record The transaction node does not need to put the received transaction in the transaction pool and wait for the completion of other transaction processing before processing the transaction, and the pending transaction is processed on the chain, which improves the efficiency of transaction processing by the transaction node and guarantees the transaction The node will not process duplicate transactions.
  • FIG. 4 exemplarily shows the structure of a device for processing transactions in a blockchain according to an embodiment of the present invention, and the device can execute the flow of the method for processing transactions in the blockchain.
  • the device includes:
  • the receiving unit 401 is configured to receive a pending transaction sent by a client, where the pending transaction includes a first random number randomly generated by the client for the pending transaction;
  • the processing unit 402 is configured to perform a first verification on the pending transaction; wherein the first verification includes determining whether the first random number is included in a random number record; the random number record is used to record that the transaction has passed The random number of each transaction of the first verification; and after determining that the transaction to be processed passes the first verification, record the first random number in the random number record and place the transaction to be processed In the trading pool.
  • the random number record includes a first random number record and a second random number record
  • the first random number record is used to record the random number of each transaction that has passed the first verification but has not been processed on the chain;
  • the second random number record is used to record the random number of each transaction that has been processed on the chain
  • the processing unit 402 is specifically configured to:
  • the second random number record includes the random number of the second transaction; the second transaction is a transaction recorded in N blocks with a block height of M to MN, where M is a block chain The block height of the current block, M and N are both positive integers, and M is greater than N.
  • processing unit 402 is further configured to:
  • the present application also provides a computing device.
  • the computing device includes at least one processor 520 for implementing the method in FIG. 3 provided by the embodiment of the present application. Any method.
  • the computing device 500 may also include at least one memory 530 for storing program instructions and/or data.
  • the memory 530 and the processor 520 are coupled.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • the processor 520 may cooperate with the memory 530 to operate.
  • the processor 520 may execute program instructions stored in the memory 530. At least one of the at least one memory may be included in the processor.
  • the steps of the above method can be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processing circuit (digital signal processor, DSP), a dedicated integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processing circuit
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • Programming logic devices discrete gates or transistor logic devices, discrete hardware components.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the memory in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electronic Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • static random access memory static random access memory
  • dynamic RAM dynamic random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • serial link DRAM SLDRAM
  • direct rambus RAM direct rambus RAM
  • the computing device 500 may further include a communication interface 510 for communicating with other devices through a transmission medium, so that the apparatus used in the computing device 500 can communicate with other devices.
  • the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface.
  • the transceiver when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; it may also be a transceiver with integrated transceiver functions, or an interface circuit.
  • the computing device 500 may also include a communication line 540.
  • the communication interface 510, the processor 520, and the memory 530 may be connected to each other through a communication line 540;
  • the communication line 540 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (extended industry standard architecture). , Referred to as EISA) bus and so on.
  • the communication line 540 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 5 to represent, but it does not mean that there is only one bus or one type of bus.
  • embodiments of the present invention also provide a computer-readable non-volatile storage medium, including computer-readable instructions.
  • the computer reads and executes the computer-readable instructions, the computer executes the aforementioned blocks. The method of transaction processing in the chain.
  • the embodiments of the present application provide a computer program product containing instructions, which when running on a computer, cause the computer to execute the above-mentioned method of transaction processing in the blockchain.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

L'invention relève du domaine technique des finances et concerne un procédé et un dispositif de traitement de transaction dans une chaîne de blocs. Le procédé comprend les étapes suivantes : un nœud de transaction reçoit une transaction à traiter qui est envoyée par un client (301), la transaction à traiter comprend un premier nombre aléatoire généré de manière aléatoire par le client pour la transaction à traiter ; le nœud de transaction effectue une première vérification sur la transaction à traiter (302) ; et après que le nœud de transaction détermine que la transaction à traiter réussit la première vérification, il enregistre le premier nombre aléatoire dans un enregistrement de nombre aléatoire et place la transaction à traiter dans un groupe de transactions (303). Ainsi, l'efficacité de nœuds de transaction lors du traitement de transactions de est améliorée.
PCT/CN2020/095201 2019-06-14 2020-06-09 Procédé et dispositif de traitement de transaction dans une chaîne de blocs WO2020248982A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910514704.3A CN110276688B (zh) 2019-06-14 2019-06-14 一种区块链中交易处理的方法及装置
CN201910514704.3 2019-06-14

Publications (1)

Publication Number Publication Date
WO2020248982A1 true WO2020248982A1 (fr) 2020-12-17

Family

ID=67960793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/095201 WO2020248982A1 (fr) 2019-06-14 2020-06-09 Procédé et dispositif de traitement de transaction dans une chaîne de blocs

Country Status (2)

Country Link
CN (1) CN110276688B (fr)
WO (1) WO2020248982A1 (fr)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276688B (zh) * 2019-06-14 2024-02-06 深圳前海微众银行股份有限公司 一种区块链中交易处理的方法及装置
CN110796545B (zh) * 2019-10-25 2024-03-29 杭州趣链科技有限公司 一种区块链交易的批处理方法、设备和存储介质
CN111639129B (zh) * 2020-05-24 2023-07-11 中信银行股份有限公司 交易处理方法、装置、电子设备及计算机可读存储介质
CN112926981B (zh) * 2021-03-18 2022-10-28 腾讯科技(深圳)有限公司 用于区块链的交易信息处理方法、装置、介质及电子设备
CN113630475A (zh) * 2021-09-17 2021-11-09 无锡井通网络科技有限公司 基于接口化区块链系统的区块链系统集群及其操作方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991607A (zh) * 2017-03-29 2017-07-28 杭州秘猿科技有限公司 一种基于区块链账户模型的无序交易控制方法
CN108764870A (zh) * 2018-05-29 2018-11-06 阿里巴巴集团控股有限公司 基于区块链的交易处理方法及装置、电子设备
CN108805569A (zh) * 2018-05-29 2018-11-13 阿里巴巴集团控股有限公司 基于区块链的交易处理方法及装置、电子设备
CN109064171A (zh) * 2018-07-26 2018-12-21 杭州秘猿科技有限公司 一种区块链并行交易的方法、装置及电子系统
WO2019072314A2 (fr) * 2018-12-29 2019-04-18 Alibaba Group Holding Limited Système et procédé de détection d'attaque par réinsertion
CN110276688A (zh) * 2019-06-14 2019-09-24 深圳前海微众银行股份有限公司 一种区块链中交易处理的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985757B (zh) * 2017-11-27 2021-03-30 京东数字科技控股有限公司 信息处理方法、装置及系统、存储介质、电子设备
CN109285006A (zh) * 2018-09-20 2019-01-29 中链科技有限公司 一种区块链数据的并行验证处理方法及装置
CN109327459B (zh) * 2018-11-12 2020-12-01 崔晓晖 一种联盟区块链网络的共识方法
CN109727009B (zh) * 2019-01-28 2023-11-24 杭州复杂美科技有限公司 红包处理方法、设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991607A (zh) * 2017-03-29 2017-07-28 杭州秘猿科技有限公司 一种基于区块链账户模型的无序交易控制方法
CN108764870A (zh) * 2018-05-29 2018-11-06 阿里巴巴集团控股有限公司 基于区块链的交易处理方法及装置、电子设备
CN108805569A (zh) * 2018-05-29 2018-11-13 阿里巴巴集团控股有限公司 基于区块链的交易处理方法及装置、电子设备
CN109064171A (zh) * 2018-07-26 2018-12-21 杭州秘猿科技有限公司 一种区块链并行交易的方法、装置及电子系统
WO2019072314A2 (fr) * 2018-12-29 2019-04-18 Alibaba Group Holding Limited Système et procédé de détection d'attaque par réinsertion
CN110276688A (zh) * 2019-06-14 2019-09-24 深圳前海微众银行股份有限公司 一种区块链中交易处理的方法及装置

Also Published As

Publication number Publication date
CN110276688A (zh) 2019-09-24
CN110276688B (zh) 2024-02-06

Similar Documents

Publication Publication Date Title
WO2020248982A1 (fr) Procédé et dispositif de traitement de transaction dans une chaîne de blocs
WO2021068728A1 (fr) Procédés et appareil de génération d'un arbre d'états de bloc et de validation de données en chaîne
WO2021077962A1 (fr) Procédé et appareil de synchronisation de nœud de chaîne de blocs
WO2021036702A1 (fr) Procédé et dispositif de consensus utilisant un système de chaîne de blocs
US10698885B2 (en) Method and device for writing service data in block chain system
CN109636144B (zh) 区块链风险评估供应链金融方法、装置、设备及存储介质
WO2021027531A1 (fr) Procédé et dispositif de traitement d'enregistrement de transaction par chaîne de blocs
WO2020015533A1 (fr) Procédé et appareil de traitement de transaction et système de chaîne de blocs
TW201909613A (zh) 區塊鏈共識網路中處理共識請求的方法、裝置和電子設備
WO2021109809A1 (fr) Procédé et dispositif de transaction entre chaînes
WO2021120925A1 (fr) Procédé et dispositif de synchronisation de blocs
WO2020220860A1 (fr) Procédé et appareil de traitement de transaction reposant sur un système de chaîne de blocs
US10999283B2 (en) Addressing transaction conflict in blockchain systems
WO2021027530A1 (fr) Procédé et dispositif de traitement de données fondés sur une chaîne de blocs
CN113076376B (zh) 基于区块链的多方异步抽样共识方法及系统及装置及介质
WO2020228365A1 (fr) Procédé et dispositif de rapprochement faisant appel à une chaîne de consortium, et appareil électronique
WO2020259035A1 (fr) Procédés et dispositifs de génération et d'exécution de code de service
WO2021103998A1 (fr) Procédé de signature de transactions de chaînes de blocs croisées et dispositif
WO2021109718A1 (fr) Procédé et appareil de vérification basés sur un système de chaîne de blocs
CN106878370A (zh) 一种本地缓存的更新方法和设备
US20200026427A1 (en) System and method for handling data storage on storage devices
WO2021129004A1 (fr) Procédé et appareil de commande d'accès à des données de chaîne de blocs sur la base d'un contrat intelligent
WO2019033741A1 (fr) Procédé, dispositif, support d'informations et appareil informatique de traitement de ressource de produit d'investissement
WO2020211622A1 (fr) Procédé et dispositif de mémorisation de messages reposant sur une chaîne de blocs
CN110659905A (zh) 交易验证方法、装置、终端设备以及存储介质

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: 20821936

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: 20821936

Country of ref document: EP

Kind code of ref document: A1