WO2018076760A1 - Block chain-based transaction processing method, system, electronic device, and storage medium - Google Patents

Block chain-based transaction processing method, system, electronic device, and storage medium Download PDF

Info

Publication number
WO2018076760A1
WO2018076760A1 PCT/CN2017/091248 CN2017091248W WO2018076760A1 WO 2018076760 A1 WO2018076760 A1 WO 2018076760A1 CN 2017091248 W CN2017091248 W CN 2017091248W WO 2018076760 A1 WO2018076760 A1 WO 2018076760A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
blockchain network
parallel
identifier
parameter
Prior art date
Application number
PCT/CN2017/091248
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 WO2018076760A1 publication Critical patent/WO2018076760A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • 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
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the present invention relates to the field of blockchain technology, and in particular, to a transaction processing method, system, electronic device and storage medium based on a blockchain.
  • a blockchain is generally understood to be a distributed ledger, and its nature is also a distributed database.
  • One of its basic functions as a distributed database system is to implement log synchronization for different nodes.
  • distributed algorithms have an inevitable physical upper limit for their Transaction Per Second (TPS) due to their complexity and unavoidable physical distance between nodes.
  • TPS Transaction Per Second
  • the current physical upper limit directly leads to the blockchain being difficult to use in many TPS environments requiring up to 6 digits of second traffic (using the PBFT algorithm as an example. In a known environment, the second traffic that generates the protocol is only implemented. A four-digit breakthrough in second-rate traffic).
  • the more common solution to realize transaction processing using blockchain technology is to integrate multiple transactions into one transaction in different ways and then send them to a blockchain network for calculation. If the transaction is initiated by multiple parties, Then each node needs to broadcast its own transactions to other nodes to ensure that the transaction package will contain its own transactions. However, if for some reason (such as network speed or stability reasons) individual transactions cannot be broadcast to most nodes within a predetermined time, then the transaction is likely to fail for technical reasons. At the same time, in order to reserve the transaction broadcast time to the nodes on the blockchain, the single transaction log generation speed will be directly reduced from the sub-millisecond or millisecond level to the second level (thousands of losses). These issues must be addressed for financial ecosystems that have high requirements for transaction processing stability and transaction processing efficiency.
  • the main object of the present invention is to provide a transaction processing method, system, electronic device and storage medium based on blockchain, which aims to improve the stability and efficiency of transaction processing using blockchain technology.
  • the first aspect of the present application provides a blockchain-based transaction transaction processing method, wherein a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and each participant of the blockchain network is Constructing a transaction shunt control system; the method includes the following steps:
  • the transaction-sharing control system acquires a preset type of transaction parameter of the transaction request, and determines an identifier of the parallel blockchain network corresponding to the preset type of transaction parameter according to the pre-stored transaction-distribution control parameter and a predetermined analysis rule.
  • the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
  • the transaction shunt control system of the participant uses the parallel blockchain network corresponding to the identified identifier as the target blockchain network for executing the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network. Transaction processing.
  • a second aspect of the present application provides a transaction offload control system for processing a blockchain transaction transaction, wherein a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and the block is Each of the participants of the chain network constructs the transaction offload control system; the transaction offload control system includes:
  • a determining module configured to: when a user initiates a transaction request to a participant in the blockchain network, obtain a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined analysis rule Determining, by the preset type transaction parameter, an identifier of the parallel blockchain network, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
  • the offloading module is configured to use the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and send the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing.
  • a third aspect of the present application provides an electronic device, including a processing device, a storage device, and a transaction offload control system, where a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and the blockchain is Each of the participants of the network constructs a transaction offload control system; the transaction offload control system is stored in the storage device and includes at least one computer readable instruction executable by the processing device to perform the following operations :
  • a user After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule.
  • the parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
  • a fourth aspect of the present application provides a computer readable storage medium having stored thereon at least one computer readable instruction executable by a processing device to:
  • a user After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule.
  • the parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
  • the blockchain-based transaction transaction processing method, system, electronic device and storage medium provided by the invention construct a plurality of parallel blockchain networks with the same participant for a blockchain network, and the blockchain network is Each participant constructs a transaction offload control system; when a participant in the blockchain network receives a transaction request, the participant's transaction offload control system acquires a preset type of transaction parameter of the transaction request, and is based on a predetermined
  • the analysis rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, and uses the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and corresponds the transaction request
  • the transaction parameters are sent to the target blockchain network for transaction processing.
  • the transaction request can be executed by offloading transaction requests of different participants to different parallel blockchain networks during transaction processing, it is effectively avoided that individual transactions cannot be broadcast to most nodes within a predetermined time.
  • the resulting transaction fails, and there is no need to reserve the transaction broadcast time to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
  • FIG. 1 is a schematic diagram of an application environment of a preferred embodiment of a block transaction based transaction processing method according to the present invention
  • FIG. 2 is a schematic flowchart of a block transaction-based transaction processing method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of downloading a slice definition in an embodiment of a transaction processing method based on a blockchain according to the present invention
  • FIG. 4 is a schematic diagram of a slice definition change in an embodiment of a block transaction based transaction processing method according to the present invention.
  • FIG. 5 is a schematic diagram of a transaction process in an embodiment of a block transaction based transaction processing method according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of an embodiment of a transaction offload control system according to the present invention.
  • FIG. 1 it is a schematic diagram of an application environment of a preferred embodiment of a blockchain-based transaction processing method according to the present invention.
  • the application environment diagram includes an electronic device 1 and a terminal device 2.
  • the electronic device 1 can perform data communication with the terminal device 2 through a suitable technology such as a network or a near field communication technology. mutual.
  • the terminal device 2 includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, or an individual.
  • Digital Assistant (PDA) game console, Internet Protocol Television (IPTV), smart wearable device, etc.
  • the electronic device 1 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance.
  • the electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing, A super virtual computer consisting of a loosely coupled set of computers.
  • the electronic device 1 includes, but is not limited to, a storage device 11, a processing device 12, and a network interface 13 that are communicably connected to each other through a system bus. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead.
  • the storage device 11 includes a memory and at least one type of readable storage medium.
  • the memory provides a cache for the operation of the electronic device 1;
  • the readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like.
  • the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1.
  • a storage device such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like.
  • SMC smart memory card
  • SD Secure Digital
  • the readable storage medium of the storage device 11 is generally used to store an operating system and various types of application software installed in the electronic device 1, such as a program code of a transaction offload control system in an embodiment of the present application. Further, the storage device 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processing device 12 may, in some embodiments, include one or more microprocessors, microcontrollers, digital processors, and the like.
  • the processing device 12 is generally used to control the operation of the electronic device 1, for example, to perform control and processing related to data interaction or communication with the terminal device 2.
  • the processing device 12 is configured to run program code or process data stored in the storage device 11, such as a transaction transaction shunt control system or the like.
  • the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
  • the network interface 13 is mainly used to connect the electronic device 1 with one or more terminal devices 2, and establish a data transmission channel and a communication connection between the electronic device 1 and one or more terminal devices 2.
  • the transaction shunt control system includes at least one computer readable instruction stored in the storage device 11, the at least one computer readable instruction being executable by the processing device 12 to implement the method of picture identification of embodiments of the present application. As described later, the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
  • the transaction offload control system when executed by the processing device 12, the following operations are implemented: After a user initiates a transaction request to a participant in the blockchain network, the transaction shunt control system of the participant obtains a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined The analysis rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, and uses the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and corresponds the transaction request. The transaction parameters are sent to the target blockchain network for transaction processing, and the related information of the transaction and the transaction result are sent to the terminal device 2 for display to the terminal user.
  • the transaction offload control system is stored in the storage device 11 and includes at least one computer readable instruction stored in the storage device 11, the at least one computer readable instruction being executable by the processing device 12 to implement the present application.
  • the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
  • the invention provides a transaction processing method based on a blockchain.
  • construct a plurality of parallel blockchain networks with the same participants for a blockchain network For example, if a blockchain network has participants A, B, and C, construct multiple parallel regions for the blockchain network.
  • each parallel blockchain network has the same participants A, B, and C as the blockchain network, wherein each participant A, B, and C has a link in each blockchain.
  • the own node that is, the blockchain network and the plurality of parallel blockchain networks have the same participants A, B, and C, and each participant A, B, and C has the same in each blockchain. Node.
  • a transaction shunt control system for transaction shunt control is constructed for each participant of the blockchain network, and the transaction shunt control system is used to manage the nodes of each participant in each chain to manage the blockchain network.
  • Transaction business For example, if a blockchain network has participants A, B, and C, construct multiple parallel regions for the blockchain network.
  • each parallel blockchain network has the same participants A, B, and C as the blockchain
  • FIG. 2 is a schematic flowchart diagram of an embodiment of a transaction processing method based on a blockchain according to an embodiment of the present invention.
  • the blockchain based transaction processing method comprises:
  • Step S10 after a user initiates a transaction request to a participant in the blockchain network, the transaction shunt control system of the participant acquires a preset type transaction parameter of the transaction request, and divides the control parameter according to the pre-stored transaction. And determining, by the predetermined analysis rule, an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
  • the transaction-distributed control system pre-built by the participant acquires a preset type transaction parameter of the transaction request.
  • a preset type transaction parameter of the transaction request eg, transaction date, transaction number, transaction amount, transaction type, etc.
  • the identifier of the corresponding parallel blockchain network for example, the corresponding parallel block may be determined according to the order of the transaction date, the size or parity of the transaction number, the numerical range of the transaction amount, different transaction types, and the like.
  • the identification of the chain network is not limited here.
  • the transaction offload control parameter includes an identifier of a parallel blockchain network (eg, a number of a parallel blockchain network) and a preset type of transaction parameter (eg, a transaction date, a transaction number, Linked data for transaction amount, transaction type, etc.)
  • a parallel blockchain network e.g., a number of a parallel blockchain network
  • a preset type of transaction parameter e.g., a transaction date, a transaction number, Linked data for transaction amount, transaction type, etc.
  • Step S20 the transaction shunt control system of the participant uses the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target block.
  • the chain network performs transaction processing.
  • the transaction shunt control system of the participant After determining the identifier of the parallel blockchain network corresponding to the preset type transaction parameter of the transaction request, the transaction shunt control system of the participant determines the parallel blockchain network corresponding to the identified identifier as the target block for executing the transaction request.
  • the chain network sends the transaction parameters corresponding to the transaction request to the target blockchain network for transaction processing, thereby implementing shunt control of the transaction transaction on the blockchain network.
  • a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and a transaction shunt control system is constructed for each participant of the blockchain network; when the blockchain network is in the blockchain network After receiving the transaction request, the participant's transaction diversion control system acquires a preset type transaction parameter of the transaction request, and determines a parallel blockchain network corresponding to the preset type transaction parameter based on a predetermined analysis rule. And identifying, the determined parallel blockchain network corresponding to the identifier is used as a target blockchain network for executing the transaction request, and sending the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing.
  • the transaction request can be executed by offloading transaction requests of different participants to different parallel blockchain networks during transaction processing, it is effectively avoided that individual transactions cannot be broadcast to most nodes within a predetermined time.
  • the resulting transaction fails, and there is no need to reserve the transaction broadcast time to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
  • the preset type transaction parameter is a transaction number
  • the predetermined analysis rule is:
  • the obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  • the mantissa of the acquired transaction number may be extracted, and the parallel region corresponding to the mantissa of the extracted transaction number is determined according to the mapping relationship between the different mantissa of the predetermined transaction number and the identifier of the parallel blockchain network.
  • the identifier of the blockchain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the mantissa of the acquired transaction number may also be extracted to determine the parity property of the extracted mantissa (eg, odd or even), according to the predetermined parity property and the identity of the parallel blockchain network.
  • the mapping relationship determines the identifier of the parallel blockchain network corresponding to the mantissa of the extracted transaction number, and the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the mantissa of the acquired transaction number may also be extracted, and the parallel blockchain corresponding to the extracted modulus is determined according to the mapping relationship between the modulus of the predetermined transaction number and the identifier of the parallel blockchain network.
  • the identifier of the network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the preset type transaction parameter is a transaction type
  • the predetermined analysis rule is:
  • the identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  • the preset type transaction parameter is a transaction type such as a roll-out transaction or a transfer transaction
  • the parallel block corresponding to the acquired transaction type is determined according to a predetermined mapping relationship between different transaction types and the identifier of the parallel blockchain network.
  • the identifier of the chain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the preset type transaction parameter includes a transaction number and a transaction type
  • the predetermined analysis rule is:
  • the identifier of the corresponding parallel blockchain network is determined by considering the transaction number and the transaction type, as in one embodiment, according to a predetermined transaction number (modulo property or the parity property of the mantissa)
  • the mapping relationship between the different transaction types and the identification of the parallel blockchain network determines the extracted transaction number and the identifier of the parallel blockchain network corresponding to the acquired transaction type, and the identifier of the parallel blockchain network is The identifier of the parallel blockchain network corresponding to the obtained preset type transaction parameter.
  • the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of the blockchain network.
  • the data on the blockchain is usually stored in two places: smart contracts (with their own data state) and transaction logs, each block chain node corresponding to a smart contract And transaction records.
  • the transaction offload control parameters are pre-stored in each blockchain network (including a blockchain network). And in the smart contract corresponding to each node of each participant of the plurality of parallel blockchain networks constructed for the blockchain network.
  • the transaction shunt control system determines the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network And analyzing, by the smart contract on the target blockchain network, whether the transaction request is executed according to a transaction offload control parameter pre-stored on the target blockchain network. For example, in an implementation manner, the smart contract on the target blockchain network determines the transaction according to its pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter.
  • the identifier of the parallel blockchain network corresponding to the transaction parameter in the request and verifying whether the identifier of the determined parallel blockchain network is consistent with the identity of the target blockchain network itself.
  • the smart contract on the target blockchain network is based on The pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter determines the transaction parameter type corresponding to the identifier of the target blockchain network itself, and verifies the determined transaction parameter type. Whether it is consistent with the type of the transaction parameter in the transaction request. If it is confirmed that the identity of the parallel blockchain network or the transaction parameter type is correct, the transaction request is executed on the target blockchain network to prevent the wrong transaction parameter from being affected by the transaction flow control system. The situation of chain network entry occurs.
  • FIG. 3 is a schematic diagram of downloading a slice definition in an embodiment of a transaction processing method based on a blockchain according to the present invention.
  • each blockchain such as chain 0, chain
  • the slice definition download is performed, that is, when the transaction parameters of different preset types and the slice definition of the parallel blockchain network are pre-stored, the blockchain maintenance party sends the slice definition to each chain maintenance.
  • node 1 on each chain will synchronize the fragment definition formula to all nodes through the consensus mechanism on its own chain, when a participant's fragmentation
  • the transaction shunt control system is started, the fragment definition is downloaded directly from the nodes on each chain, and is used as a reference for subsequent transaction fragmentation.
  • FIG. 4 is a schematic diagram of a fragment definition definition in a blockchain-based transaction transaction processing method according to an embodiment of the present invention.
  • the blockchain maintainer sends the updated fragment definition formula to a node of the callable chain (for example, node 1 of chain 0), and node 1 of chain 0 synchronizes the fragment definition formula to chain 0 through the consensus mechanism on its own chain. Go up all the nodes on it.
  • each node sends a message to their corresponding slice system, the transaction offload control system. After the fragmentation system receives the message that the slice definition has been updated, it will re-download the latest slice definition from the node to complete the change of the slice definition.
  • FIG. 5 is a schematic diagram of a transaction process in a block transaction-based transaction processing method according to an embodiment of the present invention.
  • a transaction is performed on a blockchain, for example, Bank A
  • the fragmentation system will transfer the transaction to the blockchain 0 according to the fragment definition formula written on each node.
  • the smart contract will decide whether to execute the transaction according to the fragmentation logic stored in the chain, that is, the transaction shunt control parameter.
  • the smart contract on blockchain 0 can be stored according to the area.
  • the transaction shunt control parameter on blockchain 0 verifies whether the blockchain network identifier or transaction parameter type corresponding to the transaction is correct. If the determination is correct, the transaction is executed on blockchain 0.
  • the present invention further provides a transaction shunt control system for processing blockchain transaction transactions.
  • First construct a plurality of parallel blockchain networks with the same participants for a blockchain network. For example, if a blockchain network has participants A, B, and C, construct multiple parallel regions for the blockchain network.
  • Blockchain network each parallel blockchain network has the same participants as the blockchain network A, B, C, wherein each participant A, B, C has its own node in each blockchain, that is, the blockchain network has the same participants on multiple parallel blockchain networks.
  • A, B, C, and each participant A, B, C has the same node in each blockchain.
  • a transaction shunt control system for transaction shunt control is constructed for each participant of the blockchain network, and the transaction shunt control system is used to manage the nodes of each participant in each chain to manage the blockchain network.
  • FIG. 6 is a schematic diagram of functional modules of an embodiment of a transaction offload control system according to the present invention.
  • the transaction offload control system comprises:
  • the determining module 01 is configured to: when a user initiates a transaction request to a participant in the blockchain network, obtain a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined analysis The rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
  • the transaction-distributed control system pre-built by the participant acquires a preset type transaction parameter of the transaction request.
  • a preset type transaction parameter of the transaction request eg, transaction date, transaction number, transaction amount, transaction type, etc.
  • the identifier of the corresponding parallel blockchain network for example, the corresponding parallel block may be determined according to the order of the transaction date, the size or parity of the transaction number, the numerical range of the transaction amount, different transaction types, and the like.
  • the identification of the chain network is not limited here.
  • the transaction offload control parameter includes an identifier of a parallel blockchain network (eg, a number of a parallel blockchain network) and a preset type of transaction parameter (eg, a transaction date, a transaction number, a transaction amount, a transaction type, etc.) Link data.
  • a parallel blockchain network e.g. a number of a parallel blockchain network
  • a preset type of transaction parameter e.g., a transaction date, a transaction number, a transaction amount, a transaction type, etc.
  • the traffic distribution module 02 is configured to use the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and send the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing. .
  • the transaction shunt control system of the participant After determining the identifier of the parallel blockchain network corresponding to the preset type transaction parameter of the transaction request, the transaction shunt control system of the participant determines the parallel blockchain network corresponding to the identified identifier as the target block for executing the transaction request.
  • the chain network sends the transaction parameters corresponding to the transaction request to the target blockchain network for transaction processing, thereby implementing shunt control of the transaction transaction on the blockchain network.
  • a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and a transaction shunt control system is constructed for each participant of the blockchain network; when the blockchain network is in the blockchain network After receiving the transaction request, the participant's transaction diversion control system acquires a preset type transaction parameter of the transaction request, and determines a parallel blockchain network corresponding to the preset type transaction parameter based on a predetermined analysis rule. And identifying, the determined parallel blockchain network corresponding to the identifier is used as a target blockchain network for executing the transaction request, and sending the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing.
  • the transaction request of different participants can be offloaded to different parallel blockchain networks to execute the transaction request, effectively avoiding the transaction failure caused by the individual transaction not being broadcast to the majority of nodes within the predetermined time, and no need to pre-
  • the transaction broadcast time is given to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
  • the preset type transaction parameter is a transaction number
  • the predetermined analysis rule is:
  • the obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  • the mantissa of the acquired transaction number may be extracted, and the parallel region corresponding to the mantissa of the extracted transaction number is determined according to the mapping relationship between the different mantissa of the predetermined transaction number and the identifier of the parallel blockchain network.
  • the identifier of the blockchain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the mantissa of the acquired transaction number may also be extracted to determine the parity property of the extracted mantissa (eg, odd or even), according to the predetermined parity property and the identity of the parallel blockchain network.
  • the mapping relationship determines the identifier of the parallel blockchain network corresponding to the mantissa of the extracted transaction number, and the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the mantissa of the acquired transaction number may also be extracted, and the parallel blockchain corresponding to the extracted modulus is determined according to the mapping relationship between the modulus of the predetermined transaction number and the identifier of the parallel blockchain network.
  • the identifier of the network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the preset type transaction parameter is a transaction type
  • the predetermined analysis rule is:
  • the identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  • the preset type transaction parameter is a transaction type such as a roll-out transaction or a transfer transaction
  • the parallel block corresponding to the acquired transaction type is determined according to a predetermined mapping relationship between different transaction types and the identifier of the parallel blockchain network.
  • the identifier of the chain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the preset type transaction parameter includes a transaction number and a transaction type
  • the predetermined analysis rule is:
  • the identifier of the corresponding parallel blockchain network is determined by considering the transaction number and the transaction type, as in one embodiment, according to a predetermined transaction number (modulo nature or tail) The mapping relationship between the number of odd and even numbers), the different transaction types, and the identification of the parallel blockchain network, and determining the extracted transaction number and the identifier of the parallel blockchain network corresponding to the acquired transaction type, the parallel block
  • the identifier of the chain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
  • the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of the blockchain network.
  • the data on the blockchain is usually stored in two places: smart contracts (with their own data state) and transaction logs, each block chain node corresponding to a smart contract And transaction records.
  • the transaction offload control parameters are pre-stored in each blockchain network (including a blockchain network). And in the smart contract corresponding to each node of each participant of the plurality of parallel blockchain networks constructed for the blockchain network.
  • the transaction shunt control system determines the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network And analyzing, by the smart contract on the target blockchain network, whether the transaction request is executed according to a transaction offload control parameter pre-stored on the target blockchain network. For example, in an implementation manner, the smart contract on the target blockchain network determines the transaction according to its pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter.
  • the smart contract on the target blockchain network determines the target zone according to a pre-stored transaction shunt control parameter, that is, an identifier of the parallel blockchain network and associated data of a preset type transaction parameter.
  • the type of the transaction parameter corresponding to the identity of the blockchain network itself, and verifying whether the determined transaction parameter type is consistent with the type of the transaction parameter in the transaction request. If it is confirmed that the identity of the parallel blockchain network or the transaction parameter type is correct, the transaction request is executed on the target blockchain network to prevent the wrong transaction parameter from being affected by the transaction flow control system. The situation of chain network entry occurs.
  • the slice definition download when the slice definition download is performed, the slice definition download is performed on each blockchain (such as chain 0, chain 1, chain 2), that is, pre-stored different preset types of transaction parameters and parallel regions.
  • the blockchain maintainer sends the slice definition to the node that can be called by the maintenance of each chain (for example, node 1 on each chain), node 1 on each chain.
  • the fragment definition formula is synchronized to all nodes through the consensus mechanism on its own chain.
  • a participant's fragmentation system that is, the transaction offload control system is started, the fragment definition is downloaded directly from the nodes on each chain. And use this as a reference for subsequent transaction fragmentation.
  • the blockchain maintainer sends the update slice definition formula to a node of the callable chain (for example, Node 1 of chain 0), node 1 of chain 0 synchronizes the fragment definition formula to all nodes on chain 0 through the consensus mechanism on its own chain.
  • a node of the callable chain for example, Node 1 of chain 0
  • node 1 of chain 0 synchronizes the fragment definition formula to all nodes on chain 0 through the consensus mechanism on its own chain.
  • each node sends a message to their corresponding slice system, the transaction offload control system. After the fragmentation system receives the message that the slice definition has been updated, it will re-download the latest slice definition from the node to complete the change of the slice definition.
  • the present invention also provides a computer readable storage medium storing a transaction offload control system, the transaction offload control system being executable by at least one processing device to cause the at least one processing device.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

Disclosed are a block chain-based transaction processing method and system, an electronic device, and a storage medium. A plurality of parallel block chain networks having the same participant is constructed for one single block chain network, and a transaction distribution control system is constructed for each participant of the block chain network. The method comprises: when a user initiates a transaction request to a participant in the block chain network, the transaction distribution control system of the participant obtains preset type transaction parameters of the transaction request, and determines, according to the pre-stored transaction distribution control parameters, an identifier of a parallel block chain network corresponding to the preset type transaction parameters on the basis of a predetermined analyzing rule; and the transaction distribution control system of the participant uses the parallel block chain network corresponding to the determined identifier as a target block chain network executing the transaction request, and sends transaction parameters corresponding to the transaction request to the target block chain network for transaction process. The present invention improves the stability and efficiency of transaction process.

Description

基于区块链的交易事务处理方法、系统、电子装置及存储介质Block transaction based transaction processing method, system, electronic device and storage medium
优先权申明Priority claim
本申请基于巴黎公约申明享有2016年10月27日递交的申请号为CN201610955832.8、名称为“基于区块链的交易事务处理方法及系统”中国专利申请以及2016年11月26日递交的申请号为CN201611057217.1、名称为“基于区块链的交易事务处理方法及系统”中国专利申请的优先权,该两件中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the Paris Convention and is filed on October 27, 2016, with the application number CN201610955832.8, the patent application method and system based on blockchain transaction, and the application submitted on November 26, 2016. No. CN201611057217.1, entitled "Block-Based Transaction Processing Method and System", the priority of the Chinese patent application, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本发明涉及区块链技术领域,尤其涉及一种基于区块链的交易事务处理方法、系统、电子装置及存储介质。The present invention relates to the field of blockchain technology, and in particular, to a transaction processing method, system, electronic device and storage medium based on a blockchain.
背景技术Background technique
区块链一般被理解为一个分布式的账本,它的本质也是一个分布式的数据库。作为一个分布式的数据库系统它的基本功能之一就是实现不同节点的日志同步。可惜的是分布式算法由于本身的复杂性和节点间无法避免的物理距离等原因导致它的秒流量(Transactions Per Second,TPS)存在不可避免的物理上限。而现在的这个物理上限又直接导致区块链很难在很多TPS要求高达6位数的秒流量的使用环境下使用(以PBFT算法为例,在已知环境下它产生协议的秒流量只实现秒流量4位数的突破)。A blockchain is generally understood to be a distributed ledger, and its nature is also a distributed database. One of its basic functions as a distributed database system is to implement log synchronization for different nodes. Unfortunately, distributed algorithms have an inevitable physical upper limit for their Transaction Per Second (TPS) due to their complexity and unavoidable physical distance between nodes. The current physical upper limit directly leads to the blockchain being difficult to use in many TPS environments requiring up to 6 digits of second traffic (using the PBFT algorithm as an example. In a known environment, the second traffic that generates the protocol is only implemented. A four-digit breakthrough in second-rate traffic).
目前,在金融领域,比较常见的利用区块链技术实现交易事务处理的方案是用不同方式把多笔交易整合成一个事务后再发给一个区块链网络一起运算,如果交易由多方发起,那么每个节点就需要把自己的交易都广播到其他节点上去来保证事务包当中会包含自己的交易。然而,如果因为什么原因(例如网络速度或稳定性原因)造成个别交易不能在预定的时间内广播给绝大多数节点,那么该交易就很有可能因技术原因失败。与此同时,为了预留交易广播时间给区块链上的节点,单事务日志的生成速度会由亚毫秒或者毫秒级别直接降到秒级别(千倍损失)。对于对事务处理稳定性和事务处理效率都有很高要求的金融生态系统来说这些问题都必须解决。At present, in the financial field, the more common solution to realize transaction processing using blockchain technology is to integrate multiple transactions into one transaction in different ways and then send them to a blockchain network for calculation. If the transaction is initiated by multiple parties, Then each node needs to broadcast its own transactions to other nodes to ensure that the transaction package will contain its own transactions. However, if for some reason (such as network speed or stability reasons) individual transactions cannot be broadcast to most nodes within a predetermined time, then the transaction is likely to fail for technical reasons. At the same time, in order to reserve the transaction broadcast time to the nodes on the blockchain, the single transaction log generation speed will be directly reduced from the sub-millisecond or millisecond level to the second level (thousands of losses). These issues must be addressed for financial ecosystems that have high requirements for transaction processing stability and transaction processing efficiency.
发明内容Summary of the invention
本发明的主要目的在于提供一种基于区块链的交易事务处理方法、系统、电子装置及存储介质,旨在提升利用区块链技术进行交易事务处理的稳定性和效率。The main object of the present invention is to provide a transaction processing method, system, electronic device and storage medium based on blockchain, which aims to improve the stability and efficiency of transaction processing using blockchain technology.
本申请第一方面提供一种基于区块链的交易事务处理方法,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;该方法包括以下步骤:The first aspect of the present application provides a blockchain-based transaction transaction processing method, wherein a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and each participant of the blockchain network is Constructing a transaction shunt control system; the method includes the following steps:
当一用户向所述区块链网络中的一个参与方发起交易请求后,该参与方 的事务分流控制系统获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;When a user initiates a transaction request to a participant in the blockchain network, the party The transaction-sharing control system acquires a preset type of transaction parameter of the transaction request, and determines an identifier of the parallel blockchain network corresponding to the preset type of transaction parameter according to the pre-stored transaction-distribution control parameter and a predetermined analysis rule. The transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
该参与方的事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The transaction shunt control system of the participant uses the parallel blockchain network corresponding to the identified identifier as the target blockchain network for executing the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network. Transaction processing.
本申请第二方面提供提供一种用于处理区块链交易事务的事务分流控制系统,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,并为所述区块链网络的各个参与方构建所述事务分流控制系统;所述事务分流控制系统包括:A second aspect of the present application provides a transaction offload control system for processing a blockchain transaction transaction, wherein a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and the block is Each of the participants of the chain network constructs the transaction offload control system; the transaction offload control system includes:
确定模块,用于当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;a determining module, configured to: when a user initiates a transaction request to a participant in the blockchain network, obtain a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined analysis rule Determining, by the preset type transaction parameter, an identifier of the parallel blockchain network, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
分流模块,用于将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The offloading module is configured to use the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and send the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing.
本申请第三方面提供一种电子装置,包括处理设备、存储设备及事务分流控制系统,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;该事务分流控制系统存储于该存储设备中,包括至少一个计算机可读指令,该至少一个计算机可读指令可被所述处理设备执行,以实现以下操作:A third aspect of the present application provides an electronic device, including a processing device, a storage device, and a transaction offload control system, where a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and the blockchain is Each of the participants of the network constructs a transaction offload control system; the transaction offload control system is stored in the storage device and includes at least one computer readable instruction executable by the processing device to perform the following operations :
当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule. An identifier of the parallel blockchain network corresponding to the type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
本申请第四方面提供一种计算机可读存储介质,其上存储有至少一个可被处理设备执行以实现以下操作的计算机可读指令:A fourth aspect of the present application provides a computer readable storage medium having stored thereon at least one computer readable instruction executable by a processing device to:
当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据; After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule. An identifier of the parallel blockchain network corresponding to the type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
本发明提出的基于区块链的交易事务处理方法、系统、电子装置及存储介质,通过对一个区块链网络构建多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;当所述区块链网络中的参与方接收到交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,并基于预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。由于在进行交易事务处理时,能将不同参与方的交易请求分流至各个不同的并行区块链网络上来执行交易请求,有效地避免了因个别交易不能在预定的时间内广播给绝大多数节点造成的交易失败,且无需预留交易广播时间给区块链网络中的节点,提高了事务日志的生成速度,提升了交易事务处理的稳定性和效率。The blockchain-based transaction transaction processing method, system, electronic device and storage medium provided by the invention construct a plurality of parallel blockchain networks with the same participant for a blockchain network, and the blockchain network is Each participant constructs a transaction offload control system; when a participant in the blockchain network receives a transaction request, the participant's transaction offload control system acquires a preset type of transaction parameter of the transaction request, and is based on a predetermined The analysis rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, and uses the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and corresponds the transaction request The transaction parameters are sent to the target blockchain network for transaction processing. Since the transaction request can be executed by offloading transaction requests of different participants to different parallel blockchain networks during transaction processing, it is effectively avoided that individual transactions cannot be broadcast to most nodes within a predetermined time. The resulting transaction fails, and there is no need to reserve the transaction broadcast time to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
附图说明DRAWINGS
图1为本发明基于区块链的交易事务处理方法的较佳实施例的应用环境示意图;1 is a schematic diagram of an application environment of a preferred embodiment of a block transaction based transaction processing method according to the present invention;
图2为本发明基于区块链的交易事务处理方法一实施例的流程示意图;2 is a schematic flowchart of a block transaction-based transaction processing method according to an embodiment of the present invention;
图3为本发明基于区块链的交易事务处理方法一实施例中分片定义下载的示意图;3 is a schematic diagram of downloading a slice definition in an embodiment of a transaction processing method based on a blockchain according to the present invention;
图4为本发明基于区块链的交易事务处理方法一实施例中分片定义更改的示意图;4 is a schematic diagram of a slice definition change in an embodiment of a block transaction based transaction processing method according to the present invention;
图5为本发明基于区块链的交易事务处理方法一实施例中交易过程的示意图;FIG. 5 is a schematic diagram of a transaction process in an embodiment of a block transaction based transaction processing method according to the present invention; FIG.
图6为本发明事务分流控制系统一实施例的功能模块示意图。FIG. 6 is a schematic diagram of functional modules of an embodiment of a transaction offload control system according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in order to make the present invention. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参阅图1所示,是本发明实现基于区块链的交易事务处理方法的较佳实施例的应用环境示意图。应用环境示意图包括电子装置1及终端设备2。电子装置1可以通过网络、近场通信技术等适合的技术与终端设备2进行数据交 互。Referring to FIG. 1 , it is a schematic diagram of an application environment of a preferred embodiment of a blockchain-based transaction processing method according to the present invention. The application environment diagram includes an electronic device 1 and a terminal device 2. The electronic device 1 can perform data communication with the terminal device 2 through a suitable technology such as a network or a near field communication technology. mutual.
终端设备2包括,但不限于,任何一种可与用户通过键盘、鼠标、遥控器、触摸板或者声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA),游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The terminal device 2 includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, or an individual. Digital Assistant (PDA), game console, Internet Protocol Television (IPTV), smart wearable device, etc.
电子装置1是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。电子装置1可以是计算机、也可以是单个网络服务器、多个网络服务器组成的服务器组或者基于云计算的由大量主机或者网络服务器构成的云,其中云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。The electronic device 1 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance. The electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing, A super virtual computer consisting of a loosely coupled set of computers.
在本实施例中,电子装置1包括,但不仅限于,可通过系统总线相互通信连接的存储设备11、处理设备12、及网络接口13。需要指出的是,图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In the present embodiment, the electronic device 1 includes, but is not limited to, a storage device 11, a processing device 12, and a network interface 13 that are communicably connected to each other through a system bus. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead.
其中,存储设备11包括内存及至少一种类型的可读存储介质。内存为电子装置1的运行提供缓存;可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器等的非易失性存储介质。在一些实施例中,可读存储介质可以是电子装置1的内部存储单元,例如该电子装置1的硬盘;在另一些实施例中,该非易失性存储介质也可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。本实施例中,存储设备11的可读存储介质通常用于存储安装于电子装置1的操作系统和各类应用软件,例如本申请一实施例中的事务分流控制系统的程序代码等。此外,存储设备11还可以用于暂时地存储已经输出或者将要输出的各类数据。The storage device 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1. A storage device, such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like. In this embodiment, the readable storage medium of the storage device 11 is generally used to store an operating system and various types of application software installed in the electronic device 1, such as a program code of a transaction offload control system in an embodiment of the present application. Further, the storage device 11 can also be used to temporarily store various types of data that have been output or are to be output.
处理设备12在一些实施例中可以包括一个或者多个微处理器、微控制器、数字处理器等。该处理设备12通常用于控制电子装置1的运行,例如执行与终端设备2进行数据交互或者通信相关的控制和处理等。在本实施例中,处理设备12用于运行存储设备11中存储的程序代码或者处理数据,例如运行事务分流控制系统等。Processing device 12 may, in some embodiments, include one or more microprocessors, microcontrollers, digital processors, and the like. The processing device 12 is generally used to control the operation of the electronic device 1, for example, to perform control and processing related to data interaction or communication with the terminal device 2. In the present embodiment, the processing device 12 is configured to run program code or process data stored in the storage device 11, such as a transaction transaction shunt control system or the like.
网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在电子装置1与其他电子设备之间建立通信连接。本实施例中,网络接口13主要用于将电子装置1与一个或多个终端设备2相连,在电子装置1与一个或多个终端设备2之间建立数据传输通道和通信连接。The network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices. In this embodiment, the network interface 13 is mainly used to connect the electronic device 1 with one or more terminal devices 2, and establish a data transmission channel and a communication connection between the electronic device 1 and one or more terminal devices 2.
事务分流控制系统包括至少一个存储在存储设备11中的计算机可读指令,该至少一个计算机可读指令可被处理设备12执行,以实现本申请各实施例的图片识别的方法。如后续所述,该至少一个计算机可读指令依据其各部分所实现的功能不同,可被划为不同的逻辑模块。The transaction shunt control system includes at least one computer readable instruction stored in the storage device 11, the at least one computer readable instruction being executable by the processing device 12 to implement the method of picture identification of embodiments of the present application. As described later, the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
在一实施例中,事务分流控制系统被处理设备12执行时,实现以下操作: 当一用户向所述区块链网络中的一个参与方发起交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理,并将交易的相关信息及交易结果发送至终端设备2以显示给终端用户。In an embodiment, when the transaction offload control system is executed by the processing device 12, the following operations are implemented: After a user initiates a transaction request to a participant in the blockchain network, the transaction shunt control system of the participant obtains a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined The analysis rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, and uses the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and corresponds the transaction request The transaction parameters are sent to the target blockchain network for transaction processing, and the related information of the transaction and the transaction result are sent to the terminal device 2 for display to the terminal user.
在一实施例中,事务分流控制系统存储在存储设备11中,包括至少一个存储在存储设备11中的计算机可读指令,该至少一个计算机可读指令可被处理设备12执行,以实现本申请各实施例的图片识别的方法。如后续所述,该至少一个计算机可读指令依据其各部分所实现的功能不同,可被划为不同的逻辑模块。In an embodiment, the transaction offload control system is stored in the storage device 11 and includes at least one computer readable instruction stored in the storage device 11, the at least one computer readable instruction being executable by the processing device 12 to implement the present application. A method of picture recognition of each embodiment. As described later, the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
本发明提供一种基于区块链的交易事务处理方法。首先,针对一个区块链网络构建多个具有相同参与方的并行区块链网络,例如,若一个区块链网络具有参与方A、B、C,针对该区块链网络构建多个并行区块链网络,每一个并行区块链网络中都有与该区块链网络同样的参与方A、B、C,其中,每个参与方A、B、C在每条区块链上都有自己节点,即该区块链网络与多个并行区块链网络上均具有同样的参与方A、B、C,且每个参与方A、B、C在每条区块链上都有同样的节点。然后,为该区块链网络的各个参与方构建用于事务分流控制的事务分流控制系统,通过该事务分流控制系统来管理各个参与方在各个链上的节点,以管理该区块链网络上的交易事务。The invention provides a transaction processing method based on a blockchain. First, construct a plurality of parallel blockchain networks with the same participants for a blockchain network. For example, if a blockchain network has participants A, B, and C, construct multiple parallel regions for the blockchain network. In the blockchain network, each parallel blockchain network has the same participants A, B, and C as the blockchain network, wherein each participant A, B, and C has a link in each blockchain. The own node, that is, the blockchain network and the plurality of parallel blockchain networks have the same participants A, B, and C, and each participant A, B, and C has the same in each blockchain. Node. Then, a transaction shunt control system for transaction shunt control is constructed for each participant of the blockchain network, and the transaction shunt control system is used to manage the nodes of each participant in each chain to manage the blockchain network. Transaction business.
参照图2,图2为本发明基于区块链的交易事务处理方法一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of an embodiment of a transaction processing method based on a blockchain according to an embodiment of the present invention.
在一实施例中,该基于区块链的交易事务处理方法包括:In an embodiment, the blockchain based transaction processing method comprises:
步骤S10,当一用户向所述区块链网络中的一个参与方发起交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;Step S10, after a user initiates a transaction request to a participant in the blockchain network, the transaction shunt control system of the participant acquires a preset type transaction parameter of the transaction request, and divides the control parameter according to the pre-stored transaction. And determining, by the predetermined analysis rule, an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
本实施例中,当所述区块链网络中的一个参与方接收到一用户向其发起的交易请求后,为该参与方预先构建的事务分流控制系统获取该交易请求的预设类型交易参数(例如,交易日期、交易号、交易金额、交易类型等),根据预先存储在所述区块链网络中的事务分片控制参数,并基于预先确定的分析规则确定获取的预设类型交易参数对应的并行区块链网络的标识,例如,可根据交易日期的先后、交易号的大小或奇偶性、交易金额的数值范围、不同的交易类型等多种情况来确定其相对应的并行区块链网络的标识,在此不做限定。其中,所述事务分流控制参数包括并行区块链网络的标识(例如,并行区块链网络的编号)与预设类型交易参数(例如,交易日期、交易号、 交易金额、交易类型等)的关联数据。In this embodiment, when a participant in the blockchain network receives a transaction request initiated by the user, the transaction-distributed control system pre-built by the participant acquires a preset type transaction parameter of the transaction request. (eg, transaction date, transaction number, transaction amount, transaction type, etc.), based on transaction fragmentation control parameters pre-stored in the blockchain network, and determining acquired preset type transaction parameters based on predetermined analysis rules The identifier of the corresponding parallel blockchain network, for example, the corresponding parallel block may be determined according to the order of the transaction date, the size or parity of the transaction number, the numerical range of the transaction amount, different transaction types, and the like. The identification of the chain network is not limited here. The transaction offload control parameter includes an identifier of a parallel blockchain network (eg, a number of a parallel blockchain network) and a preset type of transaction parameter (eg, a transaction date, a transaction number, Linked data for transaction amount, transaction type, etc.)
步骤S20,该参与方的事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。Step S20, the transaction shunt control system of the participant uses the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target block. The chain network performs transaction processing.
在确定该交易请求的预设类型交易参数对应的并行区块链网络的标识之后,该参与方的事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发给该目标区块链网络进行交易处理,从而实现对该区块链网络上交易事务的分流控制。After determining the identifier of the parallel blockchain network corresponding to the preset type transaction parameter of the transaction request, the transaction shunt control system of the participant determines the parallel blockchain network corresponding to the identified identifier as the target block for executing the transaction request. The chain network sends the transaction parameters corresponding to the transaction request to the target blockchain network for transaction processing, thereby implementing shunt control of the transaction transaction on the blockchain network.
本实施例通过对一个区块链网络构建多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;当所述区块链网络中的参与方接收到交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,并基于预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。由于在进行交易事务处理时,能将不同参与方的交易请求分流至各个不同的并行区块链网络上来执行交易请求,有效地避免了因个别交易不能在预定的时间内广播给绝大多数节点造成的交易失败,且无需预留交易广播时间给区块链网络中的节点,提高了事务日志的生成速度,提升了交易事务处理的稳定性和效率。In this embodiment, a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and a transaction shunt control system is constructed for each participant of the blockchain network; when the blockchain network is in the blockchain network After receiving the transaction request, the participant's transaction diversion control system acquires a preset type transaction parameter of the transaction request, and determines a parallel blockchain network corresponding to the preset type transaction parameter based on a predetermined analysis rule. And identifying, the determined parallel blockchain network corresponding to the identifier is used as a target blockchain network for executing the transaction request, and sending the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing. Since the transaction request can be executed by offloading transaction requests of different participants to different parallel blockchain networks during transaction processing, it is effectively avoided that individual transactions cannot be broadcast to most nodes within a predetermined time. The resulting transaction fails, and there is no need to reserve the transaction broadcast time to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
进一步地,在其他实施例中,所述预设类型交易参数为交易号,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter is a transaction number, and the predetermined analysis rule is:
提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
例如,在一种实施方式中,可提取获取的交易号的尾数,根据预先确定的交易号的不同尾数与并行区块链网络的标识的映射关系,确定提取的交易号的尾数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。For example, in an embodiment, the mantissa of the acquired transaction number may be extracted, and the parallel region corresponding to the mantissa of the extracted transaction number is determined according to the mapping relationship between the different mantissa of the predetermined transaction number and the identifier of the parallel blockchain network. The identifier of the blockchain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
在另一种实施方式中,还可提取获取的交易号的尾数,确定提取的尾数的奇偶数性质(例如,奇数或者偶数),根据预先确定的奇偶数性质与并行区块链网络的标识的映射关系,确定提取的交易号的尾数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。In another embodiment, the mantissa of the acquired transaction number may also be extracted to determine the parity property of the extracted mantissa (eg, odd or even), according to the predetermined parity property and the identity of the parallel blockchain network. The mapping relationship determines the identifier of the parallel blockchain network corresponding to the mantissa of the extracted transaction number, and the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
在又一种实施方式中,还可提取获取的交易号的尾数,根据预先确定的交易号的模数与并行区块链网络的标识的映射关系,确定提取的模数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。 In still another embodiment, the mantissa of the acquired transaction number may also be extracted, and the parallel blockchain corresponding to the extracted modulus is determined according to the mapping relationship between the modulus of the predetermined transaction number and the identifier of the parallel blockchain network. The identifier of the network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
进一步地,在其他实施例中,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter is a transaction type, and the predetermined analysis rule is:
根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
例如,所述预设类型交易参数为转出交易、转入交易等交易类型,根据预先确定的不同交易类型与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。For example, the preset type transaction parameter is a transaction type such as a roll-out transaction or a transfer transaction, and the parallel block corresponding to the acquired transaction type is determined according to a predetermined mapping relationship between different transaction types and the identifier of the parallel blockchain network. The identifier of the chain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
进一步地,在其他实施例中,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter includes a transaction number and a transaction type, and the predetermined analysis rule is:
提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
本实施例中,综合考虑交易号以及交易类型来确定对应的并行区块链网络的标识,如在一种实施方式中,可根据预先确定的交易号(模数性质或尾数的奇偶数性质)、不同交易类型及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。In this embodiment, the identifier of the corresponding parallel blockchain network is determined by considering the transaction number and the transaction type, as in one embodiment, according to a predetermined transaction number (modulo property or the parity property of the mantissa) The mapping relationship between the different transaction types and the identification of the parallel blockchain network determines the extracted transaction number and the identifier of the parallel blockchain network corresponding to the acquired transaction type, and the identifier of the parallel blockchain network is The identifier of the parallel blockchain network corresponding to the obtained preset type transaction parameter.
进一步地,在其他实施例中,所述事务分流控制参数为预先存储于所述区块链网络的各个参与方的节点对应的智能合约中。Further, in other embodiments, the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of the blockchain network.
区块链链上的数据通常会被存放在两个地方:智能合约(有自己的数据state(即:状况))中和事务记录(transaction log)中,每个区块链节点对应一个智能合约和事务记录。本实施例中,为了保证各个参与方的事务分流控制系统调用的所述事务分流控制参数保持一致、可信,将所述事务分流控制参数预先存储于各个区块链网络(包括区块链网络及针对该区块链网络构建的多个并行区块链网络)的各个参与方的各个节点对应的智能合约中。The data on the blockchain is usually stored in two places: smart contracts (with their own data state) and transaction logs, each block chain node corresponding to a smart contract And transaction records. In this embodiment, in order to ensure that the transaction offload control parameters invoked by the transaction shunt control system of each participant are consistent and credible, the transaction offload control parameters are pre-stored in each blockchain network (including a blockchain network). And in the smart contract corresponding to each node of each participant of the plurality of parallel blockchain networks constructed for the blockchain network.
进一步地,在事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络之后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分流控制参数分析是否执行该交易请求。例如,在一种实施方式中,所述目标区块链网络上的智能合约根据自身预先存储的事务分流控制参数即并行区块链网络的标识与预设类型交易参数的关联数据来确定该交易请求中的交易参数所对应的并行区块链网络的标识,并验证确定的并行区块链网络的标识与所述目标区块链网络自身的标识是否一致。在另一种实施方式中,所述目标区块链网络上的智能合约根据自 身预先存储的事务分流控制参数即并行区块链网络的标识与预设类型交易参数的关联数据确定所述目标区块链网络自身的标识所对应的交易参数类型,并验证确定的交易参数类型与该交易请求中的交易参数的类型是否一致。若确认并行区块链网络的标识或交易参数类型均无误,才在所述目标区块链网络上执行该交易请求,以防止因事务分流控制系统出错导致错误的交易参数被所述目标区块链网录入的情况发生。Further, after the transaction shunt control system determines the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network And analyzing, by the smart contract on the target blockchain network, whether the transaction request is executed according to a transaction offload control parameter pre-stored on the target blockchain network. For example, in an implementation manner, the smart contract on the target blockchain network determines the transaction according to its pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter. The identifier of the parallel blockchain network corresponding to the transaction parameter in the request, and verifying whether the identifier of the determined parallel blockchain network is consistent with the identity of the target blockchain network itself. In another embodiment, the smart contract on the target blockchain network is based on The pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter determines the transaction parameter type corresponding to the identifier of the target blockchain network itself, and verifies the determined transaction parameter type. Whether it is consistent with the type of the transaction parameter in the transaction request. If it is confirmed that the identity of the parallel blockchain network or the transaction parameter type is correct, the transaction request is executed on the target blockchain network to prevent the wrong transaction parameter from being affected by the transaction flow control system. The situation of chain network entry occurs.
进一步地,如图3所示,图3为本发明基于区块链的交易事务处理方法一实施例中分片定义下载的示意图,本实施例中,在各个区块链(如链0、链1、链2)上进行分片定义下载,也即预存不同预设类型交易参数与并行区块链网络的分片定义时,由区块链维护方把分片定义发到每个链的维护方可调用的节点上去(例如每条链上的节点1),每条链上的节点1都会通过自己链上的共识机制把分片定义公式同步到所有节点上去,当一个参与方的分片系统即事务分流控制系统开启时会直接从自己在各个链上的节点上下载分片定义,并以此作为对后续进行事务分片的参照。Further, as shown in FIG. 3, FIG. 3 is a schematic diagram of downloading a slice definition in an embodiment of a transaction processing method based on a blockchain according to the present invention. In this embodiment, in each blockchain (such as chain 0, chain) 1. On the chain 2), the slice definition download is performed, that is, when the transaction parameters of different preset types and the slice definition of the parallel blockchain network are pre-stored, the blockchain maintenance party sends the slice definition to each chain maintenance. Nodes that can be called (for example, node 1 on each chain), node 1 on each chain will synchronize the fragment definition formula to all nodes through the consensus mechanism on its own chain, when a participant's fragmentation When the system, the transaction shunt control system is started, the fragment definition is downloaded directly from the nodes on each chain, and is used as a reference for subsequent transaction fragmentation.
进一步地,如图4所示,图4为本发明基于区块链的交易事务处理方法一实施例中分片定义更改的示意图,本实施例中,若需进行分片定义更改,则由区块链维护方把更新分片定义公式发到一个可调用链的节点上去(例如链0的节点1),链0的节点1会通过自己链上的共识机制把分片定义公式同步到链0上的所有节点上去。当更新后的分片定义被确定写入区块链后,每个节点都会发送消息给与他们相应的分片系统即事务分流控制系统。分片系统收到消息得知分片定义已被更新,会重新从节点上下载最新分片定义,从而完成分片定义的更改。Further, as shown in FIG. 4, FIG. 4 is a schematic diagram of a fragment definition definition in a blockchain-based transaction transaction processing method according to an embodiment of the present invention. In this embodiment, if a fragment definition change is required, the area is changed. The blockchain maintainer sends the updated fragment definition formula to a node of the callable chain (for example, node 1 of chain 0), and node 1 of chain 0 synchronizes the fragment definition formula to chain 0 through the consensus mechanism on its own chain. Go up all the nodes on it. When the updated slice definition is determined to be written to the blockchain, each node sends a message to their corresponding slice system, the transaction offload control system. After the fragmentation system receives the message that the slice definition has been updated, it will re-download the latest slice definition from the node to complete the change of the slice definition.
进一步地,如图5所示,图5为本发明基于区块链的交易事务处理方法一实施例中交易过程的示意图,本实施例中,在区块链上进行交易时,例如银行A把交易号txID=00001号交易发给自己的分片系统即事务分流控制系统,分片系统收到交易后会根据写在各个节点上的分片定义公式把该交易传到区块链0上,交易传到区块链0上的智能合约后,智能合约会根据存储在链上的分片逻辑即事务分流控制参数决定是否执行该交易,如区块链0上的智能合约可根据存储在区块链0上的事务分流控制参数来验证该交易对应的区块链网络标识或交易参数类型是否无误,若确定无误,则在区块链0上执行该交易。Further, as shown in FIG. 5, FIG. 5 is a schematic diagram of a transaction process in a block transaction-based transaction processing method according to an embodiment of the present invention. In this embodiment, when a transaction is performed on a blockchain, for example, Bank A The transaction number txID=00001 is sent to its own fragmentation system, that is, the transaction flow control system. After receiving the transaction, the fragmentation system will transfer the transaction to the blockchain 0 according to the fragment definition formula written on each node. After the transaction is passed to the smart contract on blockchain 0, the smart contract will decide whether to execute the transaction according to the fragmentation logic stored in the chain, that is, the transaction shunt control parameter. For example, the smart contract on blockchain 0 can be stored according to the area. The transaction shunt control parameter on blockchain 0 verifies whether the blockchain network identifier or transaction parameter type corresponding to the transaction is correct. If the determination is correct, the transaction is executed on blockchain 0.
本发明进一步提供一种用于处理区块链交易事务的事务分流控制系统。首先,针对一个区块链网络构建多个具有相同参与方的并行区块链网络,例如,若一个区块链网络具有参与方A、B、C,针对该区块链网络构建多个并行区块链网络,每一个并行区块链网络中都有与该区块链网络同样的参与方 A、B、C,其中,每个参与方A、B、C在每条区块链上都有自己节点,即该区块链网络与多个并行区块链网络上均具有同样的参与方A、B、C,且每个参与方A、B、C在每条区块链上都有同样的节点。然后,为该区块链网络的各个参与方构建用于事务分流控制的事务分流控制系统,通过该事务分流控制系统来管理各个参与方在各个链上的节点,以管理该区块链网络上的交易事务。The present invention further provides a transaction shunt control system for processing blockchain transaction transactions. First, construct a plurality of parallel blockchain networks with the same participants for a blockchain network. For example, if a blockchain network has participants A, B, and C, construct multiple parallel regions for the blockchain network. Blockchain network, each parallel blockchain network has the same participants as the blockchain network A, B, C, wherein each participant A, B, C has its own node in each blockchain, that is, the blockchain network has the same participants on multiple parallel blockchain networks. A, B, C, and each participant A, B, C has the same node in each blockchain. Then, a transaction shunt control system for transaction shunt control is constructed for each participant of the blockchain network, and the transaction shunt control system is used to manage the nodes of each participant in each chain to manage the blockchain network. Transaction business.
参照图6,图6为本发明事务分流控制系统一实施例的功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of an embodiment of a transaction offload control system according to the present invention.
在一实施例中,该事务分流控制系统包括:In an embodiment, the transaction offload control system comprises:
确定模块01,用于当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;The determining module 01 is configured to: when a user initiates a transaction request to a participant in the blockchain network, obtain a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined analysis The rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
本实施例中,当所述区块链网络中的一个参与方接收到一用户向其发起的交易请求后,为该参与方预先构建的事务分流控制系统获取该交易请求的预设类型交易参数(例如,交易日期、交易号、交易金额、交易类型等),根据预先存储在所述区块链网络中的事务分片控制参数,并基于预先确定的分析规则确定获取的预设类型交易参数对应的并行区块链网络的标识,例如,可根据交易日期的先后、交易号的大小或奇偶性、交易金额的数值范围、不同的交易类型等多种情况来确定其相对应的并行区块链网络的标识,在此不做限定。其中,所述事务分流控制参数包括并行区块链网络的标识(例如,并行区块链网络的编号)与预设类型交易参数(例如,交易日期、交易号、交易金额、交易类型等)的关联数据。In this embodiment, when a participant in the blockchain network receives a transaction request initiated by the user, the transaction-distributed control system pre-built by the participant acquires a preset type transaction parameter of the transaction request. (eg, transaction date, transaction number, transaction amount, transaction type, etc.), based on transaction fragmentation control parameters pre-stored in the blockchain network, and determining acquired preset type transaction parameters based on predetermined analysis rules The identifier of the corresponding parallel blockchain network, for example, the corresponding parallel block may be determined according to the order of the transaction date, the size or parity of the transaction number, the numerical range of the transaction amount, different transaction types, and the like. The identification of the chain network is not limited here. The transaction offload control parameter includes an identifier of a parallel blockchain network (eg, a number of a parallel blockchain network) and a preset type of transaction parameter (eg, a transaction date, a transaction number, a transaction amount, a transaction type, etc.) Link data.
分流模块02,用于将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The traffic distribution module 02 is configured to use the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and send the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing. .
在确定该交易请求的预设类型交易参数对应的并行区块链网络的标识之后,该参与方的事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发给该目标区块链网络进行交易处理,从而实现对该区块链网络上交易事务的分流控制。After determining the identifier of the parallel blockchain network corresponding to the preset type transaction parameter of the transaction request, the transaction shunt control system of the participant determines the parallel blockchain network corresponding to the identified identifier as the target block for executing the transaction request. The chain network sends the transaction parameters corresponding to the transaction request to the target blockchain network for transaction processing, thereby implementing shunt control of the transaction transaction on the blockchain network.
本实施例通过对一个区块链网络构建多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;当所述区块链网络中的参与方接收到交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,并基于预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。由于在进行交易事务处理时, 能将不同参与方的交易请求分流至各个不同的并行区块链网络上来执行交易请求,有效地避免了因个别交易不能在预定的时间内广播给绝大多数节点造成的交易失败,且无需预留交易广播时间给区块链网络中的节点,提高了事务日志的生成速度,提升了交易事务处理的稳定性和效率。In this embodiment, a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and a transaction shunt control system is constructed for each participant of the blockchain network; when the blockchain network is in the blockchain network After receiving the transaction request, the participant's transaction diversion control system acquires a preset type transaction parameter of the transaction request, and determines a parallel blockchain network corresponding to the preset type transaction parameter based on a predetermined analysis rule. And identifying, the determined parallel blockchain network corresponding to the identifier is used as a target blockchain network for executing the transaction request, and sending the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing. Due to the transaction transaction, The transaction request of different participants can be offloaded to different parallel blockchain networks to execute the transaction request, effectively avoiding the transaction failure caused by the individual transaction not being broadcast to the majority of nodes within the predetermined time, and no need to pre- The transaction broadcast time is given to the nodes in the blockchain network, which improves the transaction log generation speed and improves the stability and efficiency of the transaction transaction processing.
进一步地,在其他实施例中,所述预设类型交易参数为交易号,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter is a transaction number, and the predetermined analysis rule is:
提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
例如,在一种实施方式中,可提取获取的交易号的尾数,根据预先确定的交易号的不同尾数与并行区块链网络的标识的映射关系,确定提取的交易号的尾数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。For example, in an embodiment, the mantissa of the acquired transaction number may be extracted, and the parallel region corresponding to the mantissa of the extracted transaction number is determined according to the mapping relationship between the different mantissa of the predetermined transaction number and the identifier of the parallel blockchain network. The identifier of the blockchain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
在另一种实施方式中,还可提取获取的交易号的尾数,确定提取的尾数的奇偶数性质(例如,奇数或者偶数),根据预先确定的奇偶数性质与并行区块链网络的标识的映射关系,确定提取的交易号的尾数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。In another embodiment, the mantissa of the acquired transaction number may also be extracted to determine the parity property of the extracted mantissa (eg, odd or even), according to the predetermined parity property and the identity of the parallel blockchain network. The mapping relationship determines the identifier of the parallel blockchain network corresponding to the mantissa of the extracted transaction number, and the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
在又一种实施方式中,还可提取获取的交易号的尾数,根据预先确定的交易号的模数与并行区块链网络的标识的映射关系,确定提取的模数对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。In still another embodiment, the mantissa of the acquired transaction number may also be extracted, and the parallel blockchain corresponding to the extracted modulus is determined according to the mapping relationship between the modulus of the predetermined transaction number and the identifier of the parallel blockchain network. The identifier of the network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
进一步地,在其他实施例中,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter is a transaction type, and the predetermined analysis rule is:
根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
例如,所述预设类型交易参数为转出交易、转入交易等交易类型,根据预先确定的不同交易类型与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。For example, the preset type transaction parameter is a transaction type such as a roll-out transaction or a transfer transaction, and the parallel block corresponding to the acquired transaction type is determined according to a predetermined mapping relationship between different transaction types and the identifier of the parallel blockchain network. The identifier of the chain network, the identifier of the parallel blockchain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
进一步地,在其他实施例中,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:Further, in other embodiments, the preset type transaction parameter includes a transaction number and a transaction type, and the predetermined analysis rule is:
提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
本实施例中,综合考虑交易号以及交易类型来确定对应的并行区块链网络的标识,如在一种实施方式中,可根据预先确定的交易号(模数性质或尾 数的奇偶数性质)、不同交易类型及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识,该并行区块链网络的标识即为获取的预设类型交易参数对应的并行区块链网络的标识。In this embodiment, the identifier of the corresponding parallel blockchain network is determined by considering the transaction number and the transaction type, as in one embodiment, according to a predetermined transaction number (modulo nature or tail) The mapping relationship between the number of odd and even numbers), the different transaction types, and the identification of the parallel blockchain network, and determining the extracted transaction number and the identifier of the parallel blockchain network corresponding to the acquired transaction type, the parallel block The identifier of the chain network is the identifier of the parallel blockchain network corresponding to the acquired preset type transaction parameter.
进一步地,在其他实施例中,所述事务分流控制参数为预先存储于所述区块链网络的各个参与方的节点对应的智能合约中。Further, in other embodiments, the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of the blockchain network.
区块链链上的数据通常会被存放在两个地方:智能合约(有自己的数据state(即:状况))中和事务记录(transaction log)中,每个区块链节点对应一个智能合约和事务记录。本实施例中,为了保证各个参与方的事务分流控制系统调用的所述事务分流控制参数保持一致、可信,将所述事务分流控制参数预先存储于各个区块链网络(包括区块链网络及针对该区块链网络构建的多个并行区块链网络)的各个参与方的各个节点对应的智能合约中。The data on the blockchain is usually stored in two places: smart contracts (with their own data state) and transaction logs, each block chain node corresponding to a smart contract And transaction records. In this embodiment, in order to ensure that the transaction offload control parameters invoked by the transaction shunt control system of each participant are consistent and credible, the transaction offload control parameters are pre-stored in each blockchain network (including a blockchain network). And in the smart contract corresponding to each node of each participant of the plurality of parallel blockchain networks constructed for the blockchain network.
进一步地,在事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络之后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分流控制参数分析是否执行该交易请求。例如,在一种实施方式中,所述目标区块链网络上的智能合约根据自身预先存储的事务分流控制参数即并行区块链网络的标识与预设类型交易参数的关联数据来确定该交易请求中的交易参数所对应的并行区块链网络的标识,并验证确定的并行区块链网络的标识与所述目标区块链网络自身的标识是否一致。在另一种实施方式中,所述目标区块链网络上的智能合约根据自身预先存储的事务分流控制参数即并行区块链网络的标识与预设类型交易参数的关联数据确定所述目标区块链网络自身的标识所对应的交易参数类型,并验证确定的交易参数类型与该交易请求中的交易参数的类型是否一致。若确认并行区块链网络的标识或交易参数类型均无误,才在所述目标区块链网络上执行该交易请求,以防止因事务分流控制系统出错导致错误的交易参数被所述目标区块链网录入的情况发生。Further, after the transaction shunt control system determines the parallel blockchain network corresponding to the identified identifier as the target blockchain network that executes the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network And analyzing, by the smart contract on the target blockchain network, whether the transaction request is executed according to a transaction offload control parameter pre-stored on the target blockchain network. For example, in an implementation manner, the smart contract on the target blockchain network determines the transaction according to its pre-stored transaction shunt control parameter, that is, the association data of the identifier of the parallel blockchain network and the preset type transaction parameter. The identifier of the parallel blockchain network corresponding to the transaction parameter in the request, and verifying whether the identifier of the determined parallel blockchain network is consistent with the identity of the target blockchain network itself. In another implementation manner, the smart contract on the target blockchain network determines the target zone according to a pre-stored transaction shunt control parameter, that is, an identifier of the parallel blockchain network and associated data of a preset type transaction parameter. The type of the transaction parameter corresponding to the identity of the blockchain network itself, and verifying whether the determined transaction parameter type is consistent with the type of the transaction parameter in the transaction request. If it is confirmed that the identity of the parallel blockchain network or the transaction parameter type is correct, the transaction request is executed on the target blockchain network to prevent the wrong transaction parameter from being affected by the transaction flow control system. The situation of chain network entry occurs.
进一步地,在一实施例中进行分片定义下载时,在各个区块链(如链0、链1、链2)上进行分片定义下载,也即预存不同预设类型交易参数与并行区块链网络的分片定义时,由区块链维护方把分片定义发到每个链的维护方可调用的节点上去(例如每条链上的节点1),每条链上的节点1都会通过自己链上的共识机制把分片定义公式同步到所有节点上去,当一个参与方的分片系统即事务分流控制系统开启时会直接从自己在各个链上的节点上下载分片定义,并以此作为对后续进行事务分片的参照。Further, in the embodiment, when the slice definition download is performed, the slice definition download is performed on each blockchain (such as chain 0, chain 1, chain 2), that is, pre-stored different preset types of transaction parameters and parallel regions. When the fragmentation of the blockchain network is defined, the blockchain maintainer sends the slice definition to the node that can be called by the maintenance of each chain (for example, node 1 on each chain), node 1 on each chain. The fragment definition formula is synchronized to all nodes through the consensus mechanism on its own chain. When a participant's fragmentation system, that is, the transaction offload control system is started, the fragment definition is downloaded directly from the nodes on each chain. And use this as a reference for subsequent transaction fragmentation.
进一步地,在一实施例中进行分片定义更改时,若需进行分片定义更改,则由区块链维护方把更新分片定义公式发到一个可调用链的节点上去(例如 链0的节点1),链0的节点1会通过自己链上的共识机制把分片定义公式同步到链0上的所有节点上去。当更新后的分片定义被确定写入区块链后,每个节点都会发送消息给与他们相应的分片系统即事务分流控制系统。分片系统收到消息得知分片定义已被更新,会重新从节点上下载最新分片定义,从而完成分片定义的更改。Further, when the slice definition change is performed in an embodiment, if the slice definition change is required, the blockchain maintainer sends the update slice definition formula to a node of the callable chain (for example, Node 1 of chain 0), node 1 of chain 0 synchronizes the fragment definition formula to all nodes on chain 0 through the consensus mechanism on its own chain. When the updated slice definition is determined to be written to the blockchain, each node sends a message to their corresponding slice system, the transaction offload control system. After the fragmentation system receives the message that the slice definition has been updated, it will re-download the latest slice definition from the node to complete the change of the slice definition.
进一步地,在一实施例中进行交易时,若在区块链上进行交易,例如银行A把交易号txID=00001号交易发给自己的分片系统即事务分流控制系统,分片系统收到交易后会根据写在各个节点上的分片定义公式把该交易传到区块链0上,交易传到区块链0上的智能合约后,智能合约会根据存储在链上的分片逻辑决定是否执行该交易,若是,则在区块链0上执行该交易。Further, when performing transactions in an embodiment, if the transaction is performed on the blockchain, for example, the bank A sends the transaction number txID=00001 to its own fragmentation system, that is, the transaction flow control system, and the fragmentation system receives After the transaction, the transaction will be transferred to the blockchain 0 according to the fragment definition formula written on each node. After the transaction is transmitted to the smart contract on the blockchain 0, the smart contract will be based on the fragmentation logic stored on the chain. Decide whether to execute the transaction, and if so, execute the transaction on blockchain 0.
此外,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有事务分流控制系统,所述事务分流控制系统可被至少一个处理设备执行,以使所述至少一个处理设备执行如上述实施例中的基于区块链的交易事务处理方法的步骤,该基于区块链的交易事务处理方法的步骤S10、S20、S30等具体实施过程如上文所述,在此不再赘述。Moreover, the present invention also provides a computer readable storage medium storing a transaction offload control system, the transaction offload control system being executable by at least one processing device to cause the at least one processing device The steps of the blockchain-based transaction processing method in the foregoing embodiment are as follows, and the specific implementation processes of the step chain processing transaction method are as described above, and are not described herein again. .
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The preferred embodiments of the present invention have been described above with reference to the drawings, and are not intended to limit the scope of the invention. The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Additionally, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
本领域技术人员不脱离本发明的范围和实质,可以有多种变型方案实现本发明,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本发明的技术构思之内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。 A person skilled in the art can implement the invention in various variants without departing from the scope and spirit of the invention. For example, the features of one embodiment can be used in another embodiment to obtain a further embodiment. Any modifications, equivalent substitutions and improvements made within the technical concept of the invention are intended to be included within the scope of the invention.

Claims (24)

  1. 一种基于区块链的交易事务处理方法,其特征在于,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;该方法包括以下步骤:A blockchain-based transaction transaction processing method, characterized in that a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and a transaction is constructed for each participant of the blockchain network. A shunt control system; the method comprises the following steps:
    当一用户向所述区块链网络中的一个参与方发起交易请求后,该参与方的事务分流控制系统获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;After a user initiates a transaction request to a participant in the blockchain network, the transaction shunt control system of the participant obtains a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined The analysis rule determines an identifier of the parallel blockchain network corresponding to the preset type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
    该参与方的事务分流控制系统将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The transaction shunt control system of the participant uses the parallel blockchain network corresponding to the identified identifier as the target blockchain network for executing the transaction request, and sends the transaction parameter corresponding to the transaction request to the target blockchain network. Transaction processing.
  2. 如权利要求1所述的基于区块链的交易事务处理方法,其特征在于,所述预设类型交易参数为交易号,所述预先确定的分析规则为:The blockchain-based transaction processing method according to claim 1, wherein the preset type transaction parameter is a transaction number, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  3. 如权利要求1所述的基于区块链的交易事务处理方法,其特征在于,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:The blockchain-based transaction processing method according to claim 1, wherein the preset type transaction parameter is a transaction type, and the predetermined analysis rule is:
    根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  4. 如权利要求1所述的基于区块链的交易事务处理方法,其特征在于,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:The blockchain-based transaction processing method according to claim 1, wherein the preset type transaction parameter comprises a transaction number and a transaction type, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
  5. 如权利要求1至4中任意一项所述的基于区块链的交易事务处理方法,其特征在于,所述事务分流控制参数为预先存储于各个区块链网络的各个参与方的节点对应的智能合约中。The blockchain-based transaction transaction processing method according to any one of claims 1 to 4, wherein the transaction offload control parameter is a node corresponding to each participant pre-stored in each blockchain network. In the smart contract.
  6. 如权利要求5所述的基于区块链的交易事务处理方法,其特征在于,该方法还包括:The blockchain-based transaction processing method according to claim 5, wherein the method further comprises:
    在所述目标区块链网络接收到该交易请求对应的交易参数后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分流控制参数分析是否执行该交易请求。 After the target blockchain network receives the transaction parameters corresponding to the transaction request, whether the smart contract on the target blockchain network analyzes the transaction shunt control parameters pre-stored on the target blockchain network Execute the transaction request.
  7. 一种用于处理区块链交易事务的事务分流控制系统,其特征在于,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,并为所述区块链网络的各个参与方构建所述事务分流控制系统;所述事务分流控制系统包括:A transaction shunt control system for processing a blockchain transaction transaction, characterized in that a plurality of parallel blockchain networks having the same participant are constructed for a blockchain network, and the blockchain network is Each participant constructs the transaction offload control system; the transaction offload control system includes:
    确定模块,用于当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;a determining module, configured to: when a user initiates a transaction request to a participant in the blockchain network, obtain a preset type transaction parameter of the transaction request, according to a pre-stored transaction shunt control parameter and a predetermined analysis rule Determining, by the preset type transaction parameter, an identifier of the parallel blockchain network, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
    分流模块,用于将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The offloading module is configured to use the parallel blockchain network corresponding to the determined identifier as the target blockchain network that executes the transaction request, and send the transaction parameter corresponding to the transaction request to the target blockchain network for transaction processing.
  8. 如权利要求7所述的事务分流控制系统,其特征在于,所述预设类型交易参数为交易号,所述预先确定的分析规则为:The transaction offload control system according to claim 7, wherein the preset type of transaction parameter is a transaction number, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  9. 如权利要求7所述的事务分流控制系统,其特征在于,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:The transaction offload control system according to claim 7, wherein the preset type of transaction parameter is a transaction type, and the predetermined analysis rule is:
    根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  10. 如权利要求7所述的事务分流控制系统,其特征在于,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:The transaction offload control system according to claim 7, wherein said preset type transaction parameter comprises a transaction number and a transaction type, and said predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
  11. 如权利要求7至10中任意一项所述的事务分流控制系统,其特征在于,所述事务分流控制参数为预先存储于各个区块链网络的各个参与方的节点对应的智能合约中。The transaction offload control system according to any one of claims 7 to 10, wherein the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of each blockchain network.
  12. 如权利要求11所述的事务分流控制系统,其特征在于,所述分流模块还用于:The transaction shunt control system according to claim 11, wherein the shunt module is further configured to:
    在所述目标区块链网络接收到该交易请求对应的交易参数后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分流控制参数分析是否执行该交易请求。 After the target blockchain network receives the transaction parameters corresponding to the transaction request, whether the smart contract on the target blockchain network analyzes the transaction shunt control parameters pre-stored on the target blockchain network Execute the transaction request.
  13. 一种电子装置,包括处理设备、存储设备及事务分流控制系统,针对一个区块链网络构建有多个具有相同参与方的并行区块链网络,为所述区块链网络的各个参与方构建事务分流控制系统;该事务分流控制系统存储于该存储设备中,包括至少一个计算机可读指令,该至少一个计算机可读指令可被所述处理设备执行,以实现以下操作:An electronic device includes a processing device, a storage device, and a transaction offload control system, and a plurality of parallel blockchain networks having the same participant are constructed for one blockchain network, and are constructed for each participant of the blockchain network a transaction shunt control system; the transaction shunt control system being stored in the storage device, comprising at least one computer readable instruction executable by the processing device to:
    当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule. An identifier of the parallel blockchain network corresponding to the type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
    将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
  14. 如权利要求13所述的电子装置,其特征在于,所述预设类型交易参数为交易号,所述预先确定的分析规则为:The electronic device according to claim 13, wherein the preset type transaction parameter is a transaction number, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  15. 如权利要求13所述的电子装置,其特征在于,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:The electronic device according to claim 13, wherein the preset type of transaction parameter is a transaction type, and the predetermined analysis rule is:
    根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  16. 如权利要求13所述的电子装置,其特征在于,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:The electronic device according to claim 13, wherein the preset type transaction parameter comprises a transaction number and a transaction type, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
  17. 如权利要求13至16中任意一项所述的电子装置,其特征在于,所述事务分流控制参数为预先存储于各个区块链网络的各个参与方的节点对应的智能合约中。The electronic device according to any one of claims 13 to 16, wherein the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of each blockchain network.
  18. 如权利要求17所述的电子装置,其特征在于,所述至少一个计算机可读指令还可被所述处理设备执行,以实现以下操作:The electronic device of claim 17, wherein the at least one computer readable instruction is further executable by the processing device to:
    在所述目标区块链网络接收到该交易请求对应的交易参数后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分 流控制参数分析是否执行该交易请求。After the target blockchain network receives the transaction parameters corresponding to the transaction request, the smart contract on the target blockchain network is divided according to the transaction pre-stored on the target blockchain network. The flow control parameter analyzes whether the transaction request is executed.
  19. 一种计算机可读存储介质,其上存储有至少一个可被处理设备执行以实现以下操作的计算机可读指令:A computer readable storage medium having stored thereon at least one computer readable instruction executable by a processing device to:
    当一用户向所述区块链网络中的一个参与方发起交易请求后,获取该交易请求的预设类型交易参数,根据预先存储的事务分流控制参数以及预先确定的分析规则确定所述预设类型交易参数对应的并行区块链网络的标识,所述事务分流控制参数包括并行区块链网络的标识与预设类型交易参数的关联数据;After a user initiates a transaction request to a participant in the blockchain network, acquiring a preset type transaction parameter of the transaction request, determining the preset according to the pre-stored transaction offload control parameter and a predetermined analysis rule. An identifier of the parallel blockchain network corresponding to the type transaction parameter, where the transaction offload control parameter includes association data of the identifier of the parallel blockchain network and the preset type transaction parameter;
    将确定的标识对应的并行区块链网络作为执行该交易请求的目标区块链网络,并将该交易请求对应的交易参数发送至所述目标区块链网络进行交易处理。The parallel blockchain network corresponding to the determined identifier is used as a target blockchain network for executing the transaction request, and the transaction parameters corresponding to the transaction request are sent to the target blockchain network for transaction processing.
  20. 如权利要求19所述的计算机可读存储介质,其特征在于,所述预设类型交易参数为交易号,所述预先确定的分析规则为:The computer readable storage medium of claim 19, wherein the preset type of transaction parameter is a transaction number, and the predetermined analysis rule is:
    提取获取的交易号,根据预先确定的交易号分片定义公式与并行区块链网络的标识的映射关系,确定提取的交易号对应的并行区块链网络的标识。The obtained transaction number is extracted, and the identifier of the parallel blockchain network corresponding to the extracted transaction number is determined according to a mapping relationship between the predetermined transaction number fragment definition formula and the identifier of the parallel blockchain network.
  21. 如权利要求19所述的计算机可读存储介质,其特征在于,所述预设类型交易参数为交易类型,所述预先确定的分析规则为:The computer readable storage medium of claim 19, wherein the preset type of transaction parameter is a transaction type, and the predetermined analysis rule is:
    根据预先确定的交易类型分片定义公式与并行区块链网络的标识的映射关系,确定获取的交易类型对应的并行区块链网络的标识。The identifier of the parallel blockchain network corresponding to the acquired transaction type is determined according to a mapping relationship between the predetermined transaction type fragment definition formula and the identifier of the parallel blockchain network.
  22. 如权利要求19所述的计算机可读存储介质,其特征在于,所述预设类型交易参数包括交易号和交易类型,所述预先确定的分析规则为:The computer readable storage medium of claim 19, wherein the predetermined type of transaction parameter comprises a transaction number and a transaction type, the predetermined analysis rule being:
    提取获取的交易号,根据预先确定的交易号、交易类型分片定义公式及并行区块链网络的标识三者之间的映射关系,确定提取的交易号和获取的交易类型对应的并行区块链网络的标识。Extracting the obtained transaction number, and determining the extracted transaction number and the parallel block corresponding to the acquired transaction type according to the mapping relationship between the predetermined transaction number, the transaction type fragment definition formula and the identification of the parallel blockchain network. The identity of the chain network.
  23. 如权利要求19至22中任意一项所述的计算机可读存储介质,其特征在于,所述事务分流控制参数为预先存储于各个区块链网络的各个参与方的节点对应的智能合约中。The computer readable storage medium according to any one of claims 19 to 22, wherein the transaction offload control parameter is pre-stored in a smart contract corresponding to a node of each participant of each blockchain network.
  24. 如权利要求23所述的计算机可读存储介质,其特征在于,所述至少一个计算机可读指令还可被所述处理设备执行,以实现以下操作:The computer readable storage medium of claim 23, wherein the at least one computer readable instruction is further executable by the processing device to:
    在所述目标区块链网络接收到该交易请求对应的交易参数后,由所述目标区块链网络上的智能合约根据预先存储于所述目标区块链网络上的事务分流控制参数分析是否执行该交易请求。 After the target blockchain network receives the transaction parameters corresponding to the transaction request, whether the smart contract on the target blockchain network analyzes the transaction shunt control parameters pre-stored on the target blockchain network Execute the transaction request.
PCT/CN2017/091248 2016-10-27 2017-06-30 Block chain-based transaction processing method, system, electronic device, and storage medium WO2018076760A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610955832 2016-10-27
CN201610955832.8 2016-10-27
CN201611057217.1A CN106682984B (en) 2016-10-27 2016-11-26 Transaction business process method and system based on block chain
CN201611057217.1 2016-11-26

Publications (1)

Publication Number Publication Date
WO2018076760A1 true WO2018076760A1 (en) 2018-05-03

Family

ID=58866700

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091248 WO2018076760A1 (en) 2016-10-27 2017-06-30 Block chain-based transaction processing method, system, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN106682984B (en)
WO (1) WO2018076760A1 (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650519A (en) * 2018-05-17 2018-10-12 立旃(上海)科技有限公司 The method and device to release news based on block chain
CN108881177A (en) * 2018-05-28 2018-11-23 夸克链科技(深圳)有限公司 A kind of parallel block chain of isomery and its technology are realized
CN109150981A (en) * 2018-07-26 2019-01-04 北京京东尚科信息技术有限公司 Block chain network network-building method, device, equipment and computer readable storage medium
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain
CN109961365A (en) * 2019-02-27 2019-07-02 阿里巴巴集团控股有限公司 A kind of receipt on account record processing method and system based on block chain intelligence contract
CN110020859A (en) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
CN110060154A (en) * 2018-12-28 2019-07-26 阿里巴巴集团控股有限公司 Works based on block chain deposit card method, system, device and equipment
CN110135985A (en) * 2019-04-04 2019-08-16 杭州抖音科技有限公司 A kind of parallel execution method and system traded on block chain
CN110380985A (en) * 2019-08-02 2019-10-25 中国工商银行股份有限公司 Flow control methods, device, equipment and storage medium based on trade link
CN110428332A (en) * 2019-07-29 2019-11-08 杭州复杂美科技有限公司 A kind of across the chain method of commerce of parallel chain, equipment and storage medium
CN110555680A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Method and system for issuing and processing block chain application
CN111095324A (en) * 2019-04-12 2020-05-01 阿里巴巴集团控股有限公司 Performing parallel execution of transactions in a distributed ledger system
CN111144883A (en) * 2019-12-06 2020-05-12 深圳前海微众银行股份有限公司 Processing performance analysis method and device for block chain network
CN111475572A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Block generation method, device, equipment and medium
CN111489256A (en) * 2019-01-25 2020-08-04 京东数字科技控股有限公司 Cross-chain processing method, equipment and system for multi-chain block chain system
CN111539005A (en) * 2020-04-23 2020-08-14 中国电子技术标准化研究院 Block chain data identification method and related device oriented to data security policy
CN111666336A (en) * 2020-05-15 2020-09-15 西安纸贵互联网科技有限公司 Data intercommunication method and system among block chains and electronic equipment
CN112102081A (en) * 2020-08-19 2020-12-18 小米数字科技有限公司 Method and device for generating block chain, readable storage medium and block chain network
CN112669155A (en) * 2020-12-31 2021-04-16 杭州趣链科技有限公司 Transaction distribution execution method based on block chain, device server and storage medium
CN112948497A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Parallel chain block generation method, computer device, and storage medium
CN112990895A (en) * 2021-03-11 2021-06-18 杭州复杂美科技有限公司 Method, equipment and storage medium for accelerating parallel execution of block chain transaction
CN113139873A (en) * 2019-08-30 2021-07-20 创新先进技术有限公司 Method and apparatus for concurrently executing transactions in a blockchain
CN112669155B (en) * 2020-12-31 2024-05-03 杭州趣链科技有限公司 Block chain-based transaction distribution execution method, device server and storage medium

Families Citing this family (63)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10586062B1 (en) 2015-11-23 2020-03-10 United Services Automobile Association (Usaa) Systems and methods to track, store, and manage events, rights and liabilities
US10818170B1 (en) 2016-01-20 2020-10-27 United Services Automobile Association Systems and methods for traffic management via inter-party resource allocation
CN106682984B (en) * 2016-10-27 2019-09-10 深圳壹账通智能科技有限公司 Transaction business process method and system based on block chain
CN106980649B (en) 2017-02-28 2020-07-10 创新先进技术有限公司 Method and device for writing block chain service data and service subset determining method
CN107330786B (en) * 2017-05-19 2020-06-26 杭州云象网络技术有限公司 Block chain network node communication method based on weight
CN107451175B (en) * 2017-05-23 2020-01-31 创新先进技术有限公司 data processing method and device based on block chain
CN111880746A (en) 2017-05-25 2020-11-03 创新先进技术有限公司 Method and device for writing service data into block chain system
CN107274159A (en) * 2017-06-09 2017-10-20 北京泛融科技有限公司 A kind of accounting system and method that algorithm is concurrently performed based on block
CN107291862A (en) 2017-06-12 2017-10-24 腾讯科技(深圳)有限公司 Business datum storage method, device, storage medium and electronic equipment
CN107315786B (en) * 2017-06-12 2020-12-11 腾讯科技(深圳)有限公司 Service data storage method and device
CN107257374A (en) * 2017-06-15 2017-10-17 中国银行股份有限公司 Transaction processing method and system on a kind of block chain
CN109218352B (en) * 2017-06-30 2020-08-14 华为技术有限公司 Consensus confirmation method and device for transaction information in blockchain network
CN107577694B (en) 2017-07-14 2020-04-24 创新先进技术有限公司 Data processing method and device based on block chain
CN107562775B (en) 2017-07-14 2020-04-24 创新先进技术有限公司 Data processing method and device based on block chain
CN107360248B (en) * 2017-07-31 2020-08-25 众安信息技术服务有限公司 Method and apparatus for configuring local consensus and computer-readable storage medium
CN107480945A (en) * 2017-08-10 2017-12-15 杭州全视软件有限公司 A kind of block chain management method of responsibility
CN109428906B (en) * 2017-08-22 2021-09-10 北京果仁宝软件技术有限责任公司 Request processing method, device, system and terminal
CN107566357B (en) * 2017-08-25 2018-11-16 厦门益协作网络科技有限公司 A kind of internet business information data storing method based on subregion authentication techniques
CN107608661A (en) * 2017-09-14 2018-01-19 北京天德科技有限公司 A kind of high concurrent two dimension based on block chain brings the core algorithm of matrix together
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block
CN109636592B (en) * 2017-10-20 2023-02-28 北京航空航天大学 High performance intelligent contract design
CN107809484B (en) * 2017-10-30 2020-08-18 中国联合网络通信集团有限公司 Block chain transaction information processing method and block chain link point
CN107833060B (en) * 2017-11-13 2020-12-25 中国银行股份有限公司 Verification method and system for intelligent contract transaction in block chain
CN107947980B (en) * 2017-11-23 2020-05-08 深圳壹账通智能科技有限公司 Distributed system operation method and system
CN108573741A (en) * 2017-12-25 2018-09-25 北京金山云网络技术有限公司 Business datum recording method, device, equipment and storage medium
CN108322309B (en) * 2017-12-27 2019-10-11 北京欧链科技有限公司 Transaction processing method and device based on block chain
CN108243250B (en) * 2018-01-05 2020-12-15 无锡井通网络科技有限公司 Rapid fragment selection method based on distributed network
CN108399572A (en) * 2018-03-22 2018-08-14 深圳市网心科技有限公司 block chain transaction processing method, device and storage medium
CN108305056B (en) * 2018-03-27 2023-11-10 北京蓝亚盒子科技有限公司 Block chain-based data processing method and device and block chain node network
CN108681963B (en) * 2018-03-29 2020-07-31 深圳市网心科技有限公司 Multi-block chain integration control method, system, electronic device and storage medium
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN108537666A (en) * 2018-04-09 2018-09-14 深圳市云蚂蚁科技有限责任公司 A kind of block catenary system and block chain network method of commerce
CN108846745B (en) * 2018-04-19 2022-06-07 深圳市迅雷网络技术有限公司 Block chain transaction processing auxiliary system, block chain data processing system and method
CN108805550A (en) * 2018-04-27 2018-11-13 深圳市元征科技股份有限公司 A kind of pre-payment exchange management method and pre-payment trade management device
CN108664650B (en) 2018-05-17 2020-05-22 百度在线网络技术(北京)有限公司 Transaction processing method, device, equipment and storage medium of block chain network
CN109064168A (en) * 2018-06-12 2018-12-21 深圳前海微众银行股份有限公司 Authority control method, device and computer readable storage medium based on block chain
CN108961052B (en) * 2018-06-25 2022-02-22 百度在线网络技术(北京)有限公司 Verification method, storage method, device, equipment and medium of block chain data
CN109191287B (en) * 2018-06-27 2020-08-04 浙江超脑时空科技有限公司 Block chain intelligent contract fragmentation method and device and electronic equipment
CN109146447B (en) * 2018-07-09 2022-07-05 矩阵元技术(深圳)有限公司 Transparent block chain slicing method, device and system
WO2020019344A1 (en) * 2018-07-27 2020-01-30 袁振南 Node management method and device based on block chain system, and storage medium
CN109241359A (en) * 2018-08-18 2019-01-18 深圳市网心科技有限公司 Block chain node device, block catenary system, block data processing system and method
CN109034657A (en) * 2018-08-22 2018-12-18 泰康保险集团股份有限公司 Process path finding method, device, medium and electronic equipment based on block chain
CN109360095A (en) * 2018-09-27 2019-02-19 深圳技术大学(筹) A kind of processing method, device and the terminal device of block chain transaction data
CN109377224A (en) 2018-10-25 2019-02-22 阿里巴巴集团控股有限公司 Block chain method of commerce and device, electronic equipment
CN109698750B (en) * 2018-11-08 2021-06-11 平安科技(深圳)有限公司 Block generation method, device and equipment of block chain and readable storage medium
CN110060152B (en) 2018-11-27 2020-10-30 创新先进技术有限公司 Data reading method and system based on multiple block chain networks
CN109903027A (en) * 2018-12-14 2019-06-18 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain
CN109687953B (en) * 2018-12-24 2021-12-31 杭州复杂美科技有限公司 Transaction classification method, apparatus and storage medium
CN109685488A (en) * 2018-12-24 2019-04-26 杭州复杂美科技有限公司 Money transfer transactions fragment processing method, equipment and storage medium
CN109754321B (en) * 2018-12-27 2022-02-11 石更箭数据科技(上海)有限公司 Data processing method and device, medium and terminal thereof
US11195180B2 (en) * 2019-01-25 2021-12-07 International Business Machines Corporation Virtual blockchain
CN109784930B (en) * 2019-02-18 2023-07-18 深圳市迅雷网络技术有限公司 Block chain transaction data processing method and device, electronic equipment and medium
CN111614707A (en) * 2019-02-26 2020-09-01 傲为信息技术(江苏)有限公司 Transaction system and transaction method based on block chain
CN110134510B (en) * 2019-03-28 2021-09-14 熊睿 RAM (random Access memory) resource allocation method and device based on intelligent contract
CN110071968B (en) * 2019-04-16 2023-04-07 深圳前海微众银行股份有限公司 Block chain based message storage method and device
CN112001713B (en) * 2019-05-27 2024-03-29 深圳市红砖坊技术有限公司 Block chain system and request processing method and device
CN110211649A (en) * 2019-05-30 2019-09-06 爱多特(广东)网络技术有限公司 Case based on block chain technology shares motivational techniques and system
CN110428329A (en) * 2019-07-01 2019-11-08 扬州腾邮大数据网络科技有限公司 A kind of fragment treating method and apparatus of multi-tiling chain
CN111711692B (en) * 2020-06-16 2023-06-20 京东方科技集团股份有限公司 Processing method and system of equipment data, electronic equipment and storage medium
CN113435884A (en) * 2020-11-13 2021-09-24 陈素华 Index verification method based on block chain and big data
CN112565435B (en) * 2020-12-10 2021-08-17 广东投盟科技有限公司 Business processing method and system based on transaction chain and computer readable storage medium
CN114140115B (en) * 2021-10-28 2022-09-06 湖南天河国云科技有限公司 Block chain transaction pool fragmentation method, system, storage medium and computer system
CN115022053A (en) * 2022-06-08 2022-09-06 京东科技控股股份有限公司 Method, device and system for accessing block chain network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
WO2016127721A1 (en) * 2015-02-13 2016-08-18 中兴通讯股份有限公司 Information acquiring method, intelligent terminal, and server
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106682984A (en) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 Block chain-based transaction business processing method and system
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10275772B2 (en) * 2014-06-16 2019-04-30 Bank Of America Corporation Cryptocurrency risk detection system
US20160260095A1 (en) * 2015-03-02 2016-09-08 Dell Products, Lp Containerized Computational Task Execution Management Using a Secure Distributed Transaction Ledger
CN113159948A (en) * 2016-01-24 2021-07-23 杭州复杂美科技有限公司 Block chain matching exchange
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN105976232B (en) * 2016-06-24 2020-04-28 深圳前海微众银行股份有限公司 Asset transaction method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127721A1 (en) * 2015-02-13 2016-08-18 中兴通讯股份有限公司 Information acquiring method, intelligent terminal, and server
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106682984A (en) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 Block chain-based transaction business processing method and system
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650519B (en) * 2018-05-17 2020-07-07 立旃(上海)科技有限公司 Block chain based information publishing method and device
CN108650519A (en) * 2018-05-17 2018-10-12 立旃(上海)科技有限公司 The method and device to release news based on block chain
CN108881177A (en) * 2018-05-28 2018-11-23 夸克链科技(深圳)有限公司 A kind of parallel block chain of isomery and its technology are realized
CN108881177B (en) * 2018-05-28 2021-04-23 夸克链科技(深圳)有限公司 Method for realizing heterogeneous parallel block chain
CN110555680A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Method and system for issuing and processing block chain application
CN109150981A (en) * 2018-07-26 2019-01-04 北京京东尚科信息技术有限公司 Block chain network network-building method, device, equipment and computer readable storage medium
CN109150981B (en) * 2018-07-26 2022-02-25 北京京东尚科信息技术有限公司 Block chain network networking method, device, equipment and computer readable storage medium
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain
CN110060154A (en) * 2018-12-28 2019-07-26 阿里巴巴集团控股有限公司 Works based on block chain deposit card method, system, device and equipment
CN111489256B (en) * 2019-01-25 2023-06-23 京东科技控股股份有限公司 Cross-chain processing method, device and system for multi-chain block chain system
CN111489256A (en) * 2019-01-25 2020-08-04 京东数字科技控股有限公司 Cross-chain processing method, equipment and system for multi-chain block chain system
CN109961365A (en) * 2019-02-27 2019-07-02 阿里巴巴集团控股有限公司 A kind of receipt on account record processing method and system based on block chain intelligence contract
CN109961365B (en) * 2019-02-27 2020-12-15 创新先进技术有限公司 Account receiving record processing method and system based on block chain intelligent contract
CN110020859A (en) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
CN110135985A (en) * 2019-04-04 2019-08-16 杭州抖音科技有限公司 A kind of parallel execution method and system traded on block chain
CN110135985B (en) * 2019-04-04 2021-07-27 杭州抖音科技有限公司 Parallel execution method and system for transactions on block chain
CN111095324A (en) * 2019-04-12 2020-05-01 阿里巴巴集团控股有限公司 Performing parallel execution of transactions in a distributed ledger system
CN111095324B (en) * 2019-04-12 2023-12-12 创新先进技术有限公司 Parallel execution of transactions in a distributed ledger system
CN110428332A (en) * 2019-07-29 2019-11-08 杭州复杂美科技有限公司 A kind of across the chain method of commerce of parallel chain, equipment and storage medium
CN110380985B (en) * 2019-08-02 2023-05-09 中国工商银行股份有限公司 Traffic control method, device, equipment and storage medium based on transaction link
CN110380985A (en) * 2019-08-02 2019-10-25 中国工商银行股份有限公司 Flow control methods, device, equipment and storage medium based on trade link
CN113139873A (en) * 2019-08-30 2021-07-20 创新先进技术有限公司 Method and apparatus for concurrently executing transactions in a blockchain
CN111144883A (en) * 2019-12-06 2020-05-12 深圳前海微众银行股份有限公司 Processing performance analysis method and device for block chain network
CN111144883B (en) * 2019-12-06 2023-05-16 深圳前海微众银行股份有限公司 Processing performance analysis method and device for blockchain network
CN111475572A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Block generation method, device, equipment and medium
CN111475572B (en) * 2020-04-02 2023-08-29 百度国际科技(深圳)有限公司 Block generation method, device, equipment and medium
CN111539005A (en) * 2020-04-23 2020-08-14 中国电子技术标准化研究院 Block chain data identification method and related device oriented to data security policy
CN111666336B (en) * 2020-05-15 2023-05-23 西安纸贵互联网科技有限公司 Method, system and electronic equipment for data intercommunication among block chains
CN111666336A (en) * 2020-05-15 2020-09-15 西安纸贵互联网科技有限公司 Data intercommunication method and system among block chains and electronic equipment
CN112102081A (en) * 2020-08-19 2020-12-18 小米数字科技有限公司 Method and device for generating block chain, readable storage medium and block chain network
CN112102081B (en) * 2020-08-19 2024-04-09 天星数科科技有限公司 Method, device, readable storage medium and blockchain network for generating blockchain
CN112669155B (en) * 2020-12-31 2024-05-03 杭州趣链科技有限公司 Block chain-based transaction distribution execution method, device server and storage medium
CN112669155A (en) * 2020-12-31 2021-04-16 杭州趣链科技有限公司 Transaction distribution execution method based on block chain, device server and storage medium
CN112948497B (en) * 2021-03-05 2022-05-24 杭州复杂美科技有限公司 Parallel chain block generation method, computer device, and storage medium
CN112948497A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Parallel chain block generation method, computer device, and storage medium
CN112990895A (en) * 2021-03-11 2021-06-18 杭州复杂美科技有限公司 Method, equipment and storage medium for accelerating parallel execution of block chain transaction

Also Published As

Publication number Publication date
CN106682984A (en) 2017-05-17
CN106682984B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2018076760A1 (en) Block chain-based transaction processing method, system, electronic device, and storage medium
WO2021204040A1 (en) Federated learning data processing method and apparatus, and device and storage medium
CN110915166B (en) Block chain
WO2018076759A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
CN111344706B (en) Method and system for managing transactions on blockchain
CN109361740B (en) Block generation method, device, equipment and medium of block chain
US20190149600A1 (en) Partitioning of a blockchain ledger
US20210256016A1 (en) Blockchain system and method
CN111144881A (en) Selective access to asset transfer data
CN112001502B (en) Federal learning training method and device for high-delay network environment robustness
CN111418183B (en) Asynchronous processing of blockchain blocks
WO2021031473A1 (en) Blockchain asset processing method based on multiple asset models and related device
TW202016817A (en) Block chain based transaction processing method and device and electronic equipment
CN110569309A (en) Apparatus, method, system, and medium for implementing blockchains
US11568402B2 (en) Decentralized out-of-band accelerated blockchain transaction processing
US10659219B1 (en) Workflow management via distributed ledgers and smart contracts
US20230037932A1 (en) Data processing method and apparatus based on blockchain network, and computer device
CN110753105B (en) Data transmission method, device, system, electronic equipment and storage medium
CN113841359A (en) Method and apparatus for propagating tiles in a blockchain network
US20230052935A1 (en) Asynchronous accounting method and apparatus for blockchain, medium and electronic device
CN111033491A (en) Storing shared blockchain data based on error correction coding
CN111226206A (en) Taking snapshots of blockchain data
JP2022523217A (en) Topology Driven Byzantine Fault Tolerant Consensus Protocol with Voting Aggregation
US9203616B1 (en) Multi-server fault tolerant data store update
CN110599175A (en) Block processing method and related equipment

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/08/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17863818

Country of ref document: EP

Kind code of ref document: A1