WO2020062842A1 - Blockchain transaction data processing method and apparatus, and terminal device - Google Patents

Blockchain transaction data processing method and apparatus, and terminal device Download PDF

Info

Publication number
WO2020062842A1
WO2020062842A1 PCT/CN2019/082900 CN2019082900W WO2020062842A1 WO 2020062842 A1 WO2020062842 A1 WO 2020062842A1 CN 2019082900 W CN2019082900 W CN 2019082900W WO 2020062842 A1 WO2020062842 A1 WO 2020062842A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction data
blockchain
marked
processing
classified
Prior art date
Application number
PCT/CN2019/082900
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 WO2020062842A1 publication Critical patent/WO2020062842A1/en

Links

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

Definitions

  • the present invention relates to the technical field of blockchain, and in particular, to a method, a device, and a terminal device for processing blockchain transaction data.
  • Transaction is the basic data structure in the blockchain.
  • Blockchain users interact with the blockchain system through transactions. Specifically, first, the user sends the transaction to the Bitcoin system through the Bitcoin system using his own private key signature. When the transaction is included in the block through the consensus algorithm, the transfer process indicated by it is permanently recorded in the block. Among them, secondly, users also send transactions through Ethereum to interact with smart contracts; thus, transactions are recorded on the blockchain platform through a consensus algorithm and become the basic data structure in the blockchain.
  • the main purpose of the present invention is to propose a method, a device and a terminal device for processing transaction data of a blockchain, in order to solve the problem that the storage space of a node will no longer meet Data growth issues that affect the performance of blockchain transaction processing.
  • a first aspect of an embodiment of the present invention provides a method for processing blockchain transaction data, including:
  • the blockchain transaction miner node selects the marked transaction data to be processed, and configures the same processing mechanism for the marked transaction data having the same marked field;
  • the data chain is processed in parallel by the blockchain miner node.
  • adding the tag field to the transaction data according to the type of the transaction data, and obtaining the marked transaction data includes:
  • a classification mark field is added to the transaction data to obtain classified transaction data.
  • adding the tag field to the transaction data according to the type of transaction data, and obtaining the tag transaction data further includes:
  • a hierarchical mark field is added to the classified transaction data to obtain hierarchical classified transaction data.
  • the tag transaction data for processing is selected by a blockchain miner node, and the tag transaction data having the same tag field is selected.
  • the configuration of the same processing mechanism includes:
  • An algorithm configuration table is established, and the processing mechanism of the marked transaction data is configured according to the marked field.
  • the method for processing blockchain transaction data further includes:
  • the marked transaction data is classified transaction data, configuring a processing mechanism of the classified transaction data according to the classified flag field;
  • a processing mechanism for the classified and classified transaction data is configured according to the classified flag field and the classified flag field.
  • a second aspect of the embodiments of the present invention provides a device for processing blockchain transaction data, including:
  • a marking module configured to add a marking field to the transaction data according to the type of the transaction data to obtain the marked transaction data
  • a transaction configuration module configured to select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field;
  • a packaging module configured to package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
  • a processing module is configured to process the data chain in parallel through the blockchain miner node.
  • the marking module includes:
  • a first marking unit is configured to add a classification mark field to the transaction data according to a processing type of the transaction data to obtain classified transaction data.
  • the marking module further includes:
  • a second marking unit is configured to add a hierarchical mark field to the classified transaction data according to the security level of the transaction data to obtain hierarchical classified transaction data.
  • a third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the first implementation is implemented as above.
  • a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the steps of the method provided by the first aspect are implemented.
  • a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data;
  • a blockchain miner node may select a part to process in the node Tag transaction data, configure the processing mechanism according to the tag field, and package the tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel and have the same type of Multiple data chains that mark transaction data and have the same processing mechanism, thereby slowing the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain.
  • FIG. 1 is a schematic flowchart of an implementation method of processing a blockchain transaction data according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an implementation method of processing a transaction data of a blockchain provided by Embodiment 2 of the present invention
  • Embodiment 3 is a schematic diagram of an implementation principle of a method for processing transaction data of a blockchain provided by Embodiment 2 of the present invention
  • Embodiment 4 is a schematic diagram of an implementation principle of another method for processing transaction data of a blockchain provided by Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a blockchain transaction data processing device according to a third embodiment of the present invention.
  • an embodiment of the present invention provides a method for processing blockchain transaction data, which is applied to the field of blockchain technology, records transaction data on multiple data chains, and enables blockchain miner nodes to process in parallel.
  • the above data chain improves the work efficiency of blockchain transaction processing. It includes:
  • the transaction is the basic data structure in the blockchain.
  • the transaction data can be expressed as the transaction sender, the transaction receiving object, the value of the transaction transfer, the value of the transaction, etc .; use the flag field to mark the type of transaction data
  • the obtained marked transaction data can be expressed as transaction data with the name of the sender, transaction data with the name of the recipient, transaction data with transfer value, transaction data with data values, and so on.
  • adding a tag field to the transaction data may be performed outside the blockchain miner node or on the blockchain miner node, which is not specifically limited in the embodiment of the present invention.
  • the type of transaction data can be defined according to arbitrary transaction data characteristics, such as the type of transaction data, the priority level of transaction data, and the security level of transaction data.
  • the tag field may be any form of tag to mark transaction data, such as text tags, symbol tags, and the like.
  • S102 Select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field.
  • the marked transaction data is the transaction data that has been marked and classified.
  • the blockchain miner node Through the blockchain miner node, one or several types of marked transaction data can be selected for processing, and the same processing can be configured according to the type. mechanism.
  • step S102 may include:
  • An algorithm configuration table is established, and the processing mechanism of the marked transaction data is configured according to the marked field.
  • the marked transaction data generated in step S101 is A, B, C, and D, and the marked fields are a, b, c, and d.
  • the marked transaction data A there is a plurality of marked data with a marked transaction data of a
  • marked In the transaction data B there are multiple transaction data with a tag field of b; if the tag transaction data to be processed at this time is A and B, the blockchain miner node first selects this tag transaction data A and B, and then according to its The tag fields a and b configure a processing mechanism for tagging each transaction data in the transaction data A and B.
  • the configuration of the processing mechanism can be completed by a pluggable consensus algorithm, where the processing mechanism can be any consensus algorithm, such as PoW (Proof of Work, Proof of Work), PoS (Proof of Stake, Proof of Stake) , DPoS (Delegated Proof of Stake, etc.).
  • PoW Proof of Work, Proof of Work
  • PoS Proof of Stake, Proof of Stake
  • DPoS Delegated Proof of Stake, etc.
  • marked transaction data with the same processing mechanism also has the same marked field.
  • classification and selection can be performed according to the marked field.
  • the marked transaction data included in each packaged block has the same processing mechanism.
  • the marked transaction data in this data chain also has the same processing mechanism. Therefore, when a blockchain miner node processes a certain data chain, a fixed processing method can be used. When there are many data chains, the blockchain miner node also processes the corresponding data chain with a fixed processing method, making the data chain Processing can be parallel.
  • the number of data chains is not limited, and there can be multiple identical data chains in the blockchain; when the packaged blocks are added to the same data chain, they can appear as simultaneous additions Into multiple identical data chains.
  • a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data; a blockchain miner node may select a part of the node for processing.
  • Tag transaction data configure processing mechanism according to the tag field, and package tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel with the same type of tag Transaction data and multiple data chains with the same processing mechanism, thereby slowing down the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain.
  • Step S101 in the first embodiment is:
  • a tag field is added to the transaction data to obtain the tag transaction data.
  • step S101 may include:
  • a classification mark field is added to the transaction data to obtain classified transaction data.
  • the processing type of the transaction data may be expressed as workload processing of the transaction data, equity processing of the transaction data, and entrusted equity processing of the transaction data.
  • step S101 may further include:
  • a hierarchical flag field is added to the classified transaction data to obtain hierarchical classified transaction data.
  • a graded mark field is added to the classified transaction data, and the obtained graded classified transaction data may be expressed as a transaction type A marked with security level 1, a transaction type B marked with security level 2, and a transaction marked with security level 3.
  • the method for processing blockchain transaction data provided by the embodiment of the present invention further includes:
  • the processing mechanism of transaction data is related to the tag field that marks the transaction data.
  • the processing mechanism for classifying transaction data is configured according to the classification tag field; when the tag field includes both the classification tag field.
  • the processing mechanism of hierarchical classification transaction data is configured according to the classification mark field and the classification mark field.
  • an embodiment of the present invention also provides a schematic diagram of the implementation principle of a method for processing transaction data of a blockchain, which is used to illustrate the representation of the implementation process of the actual step S1011 in the blockchain.
  • the blockchain miner node chooses to process 4 transaction data, and the processing type is represented by transaction type A, transaction type B, transaction type C, and transaction type D, and the corresponding tag fields are 1, 2, 3, 4;
  • the blockchain miner node establish an algorithm configuration table, that is, configure the processing mechanism of classified transaction data A, B, C, and D according to the tag fields 1, 2, 3, and 4, among which, the classified transaction data A
  • the configured processing mechanism is PoW
  • the processing mechanism configured for classified transaction data B is PoS
  • the processing mechanism configured for classified transaction data C is DPoS, etc.
  • Blocks are added to the same data chain, and finally multiple data chains are formed, which are: PoW data chain corresponding to classified transaction data A, PoS data chain corresponding to classified transaction data B, corresponding to classified transaction data C DPoS data link etc.
  • an embodiment of the present invention also provides a schematic diagram of an implementation principle of another method for processing transaction data of a blockchain, which is used to illustrate the representation of the implementation process of the actual step S1012 in the blockchain.
  • the block chain miner node chooses to process 4 transaction data.
  • the processing type is represented by transaction type A, transaction type B, transaction type C, and transaction type D.
  • the security level is expressed as security level 1 and security level. 2.
  • Security level 3 and security level 4 which use the classification of security level as a tag field to mark classified transaction data to obtain hierarchical classified transaction data, which are expressed as: marking transaction type A of security level 1 and marking transaction type B of security level 2.
  • the blockchain miner node also packs the hierarchical classification transaction data with the same processing mechanism into blocks and adds them to In the same data chain, multiple data chains are finally formed, which are: PoW data chain corresponding to hierarchical classification transaction data A, PoS data chain corresponding to hierarchical classification transaction data B, and DPoS data corresponding to hierarchical classification transaction data C Chain etc.
  • blockchain miner nodes set up multiple data chains for a processing mechanism, so that labeled transaction data (classified transaction data or hierarchical classified transaction data) configured with the same processing mechanism may be packaged into blocks, which may be Join two or more of the same data chains.
  • a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data; a blockchain miner node may select a part of the node for processing.
  • Tag transaction data configure processing mechanism according to the tag field, and package tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel with the same type of tag Transaction data and multiple data chains with the same processing mechanism, thereby slowing the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain; at the same time, for transaction data in different scenarios, such as transaction data with different security levels,
  • the tag field has been added, and the configuration of the processing mechanism has been improved, so that the blockchain miner node can distinguish the security level when processing transaction data.
  • an embodiment of the present invention provides a blockchain transaction data processing device 50, which includes:
  • a marking module 51 configured to add a marking field to the transaction data according to the type of the transaction data to obtain the marked transaction data
  • a transaction configuration module 52 configured to select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field;
  • a packaging module 53 configured to package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
  • the processing module 54 is configured to process the data link in parallel through the blockchain miner node.
  • the marking module 51 may include a first marking unit, configured to add a classification mark field to the transaction data according to a processing type of the transaction data to obtain classified transaction data.
  • the marking module 51 may further include a second marking unit, configured to add a hierarchical marking field to the classified transaction data according to the security level of the transaction data to obtain hierarchical classified transaction data.
  • An embodiment of the present invention further provides a terminal device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • a terminal device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the computer program, implementation is as described in the first embodiment.
  • An embodiment of the present invention also provides a storage medium.
  • the storage medium is a computer-readable storage medium, and a computer program is stored thereon.
  • the computer program is executed by a processor, the blocks described in the first embodiment are implemented.
  • Various steps in the processing method of chain transaction data are implemented.

Abstract

The present invention is applicable to the technical field of blockchains, and provides a blockchain transaction data processing method and apparatus, and a terminal device. The method comprises: adding a tag field to transaction data according to the type of the transaction data to obtain tagged transaction data; by means of a blockchain miner node, selecting the tagged transaction data for processing, and configuring the same processing mechanism for the tagged transaction data with the same tag field; packaging the tagged transaction data with the same processing mechanism into blocks and adding same to the same data chain; and by means of the blockchain miner node, performing parallel processing on the data chain. By means of the present invention, the growth of data capacity of a single data chain can be slowed, thereby improving the transaction processing speed on a blockchain.

Description

一种区块链交易数据的处理方法、装置及终端设备Processing method, device and terminal equipment for blockchain transaction data 技术领域Technical field
本发明涉及区块链技术领域,尤其涉及一种区块链交易数据的处理方法、装置及终端设备。The present invention relates to the technical field of blockchain, and in particular, to a method, a device, and a terminal device for processing blockchain transaction data.
背景技术Background technique
交易是区块链中基本的数据结构,区块链使用者通过交易与区块链系统进行交互。具体地说,首先,用户通过比特币系统,使用自己的私钥签名将交易发送到比特币系统中,当该交易通过共识算法收录在区块里,其表示的转账过程就永久记录在区块当中;其次,用户还通过以太坊发送交易,与智能合约进行交互;由此,交易通过共识算法记录在区块链平台上,成为区块链中基本的数据结构。Transaction is the basic data structure in the blockchain. Blockchain users interact with the blockchain system through transactions. Specifically, first, the user sends the transaction to the Bitcoin system through the Bitcoin system using his own private key signature. When the transaction is included in the block through the consensus algorithm, the transfer process indicated by it is permanently recorded in the block. Among them, secondly, users also send transactions through Ethereum to interact with smart contracts; thus, transactions are recorded on the blockchain platform through a consensus algorithm and become the basic data structure in the blockchain.
然而,目前的区块链系统将交易均记录在单条数据块链上,随着应用的增加和时间推移,节点的存储空间将不再满足单条数据链的数据增长,影响区块链交易处理效率。However, current blockchain systems record transactions on a single data block chain. With the increase of applications and time, the storage space of nodes will no longer meet the data growth of a single data chain, affecting the efficiency of blockchain transaction processing. .
技术问题technical problem
本发明的主要目的在于提出一种区块链交易数据的处理方法、装置及终端设备,以解决现有技术中随着应用的增加和时间推移,节点的存储空间将不再满足单条数据链的数据增长,影响区块链交易处理性能的问题。The main purpose of the present invention is to propose a method, a device and a terminal device for processing transaction data of a blockchain, in order to solve the problem that the storage space of a node will no longer meet Data growth issues that affect the performance of blockchain transaction processing.
技术解决方案Technical solutions
为实现上述目的,本发明实施例第一方面提供了一种区块链交易数据的处理方法,包括:To achieve the foregoing objective, a first aspect of an embodiment of the present invention provides a method for processing blockchain transaction data, including:
根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据;Adding a tag field to the transaction data according to the type of the transaction data to obtain the labeled transaction data;
通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制;The blockchain transaction miner node selects the marked transaction data to be processed, and configures the same processing mechanism for the marked transaction data having the same marked field;
将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中;Package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
通过所述区块链矿工节点,并行处理所述数据链。The data chain is processed in parallel by the blockchain miner node.
结合本发明第一方面,本发明第一方面的第一实施方式中,所述根据交易数据的类型,将标记字段添加至所述交易数据中,获得标记交易数据包括:With reference to the first aspect of the present invention, in a first embodiment of the first aspect of the present invention, adding the tag field to the transaction data according to the type of the transaction data, and obtaining the marked transaction data includes:
根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。According to the processing type of the transaction data, a classification mark field is added to the transaction data to obtain classified transaction data.
结合本发明第一方面的第一实施方式,本发明第一方面的第二实施方式中,所述根据交易数据的类型,将标记字段添加至所述交易数据中,获得标记交易数据还包括:With reference to the first embodiment of the first aspect of the present invention, in the second embodiment of the first aspect of the present invention, adding the tag field to the transaction data according to the type of transaction data, and obtaining the tag transaction data further includes:
根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。According to the security level of the transaction data, a hierarchical mark field is added to the classified transaction data to obtain hierarchical classified transaction data.
结合本发明第一方面,本发明第一方面的第三实施方式中,所述通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制包括:With reference to the first aspect of the present invention, in a third embodiment of the first aspect of the present invention, the tag transaction data for processing is selected by a blockchain miner node, and the tag transaction data having the same tag field is selected. The configuration of the same processing mechanism includes:
通过区块链矿工节点,根据所述标记字段,选择进行处理的所述标记交易数据;Selecting, by the blockchain miner node, the marked transaction data for processing according to the marked field;
建立算法配置表,根据所述标记字段,配置所述标记交易数据的处理机制。An algorithm configuration table is established, and the processing mechanism of the marked transaction data is configured according to the marked field.
结合本发明第一方面的第一实施方式、第二实施方式和第三实施方式,本发明第一方面的第四实施方式中,所述区块链交易数据的处理方法还包括:With reference to the first, second, and third embodiments of the first aspect of the present invention, in a fourth embodiment of the first aspect of the present invention, the method for processing blockchain transaction data further includes:
若所述标记交易数据为分类交易数据,则根据所述分类标记字段,配置所述分类交易数据的处理机制;If the marked transaction data is classified transaction data, configuring a processing mechanism of the classified transaction data according to the classified flag field;
若所述标记交易数据为分类分级交易数据,则根据所述分类标记字段和所述分级标记字段,配置所述分类分级交易数据的处理机制。If the marked transaction data is classified and classified transaction data, a processing mechanism for the classified and classified transaction data is configured according to the classified flag field and the classified flag field.
本发明实施例第二方面提供了一种区块链交易数据的处理装置,包括:A second aspect of the embodiments of the present invention provides a device for processing blockchain transaction data, including:
标记模块,用于根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据;A marking module, configured to add a marking field to the transaction data according to the type of the transaction data to obtain the marked transaction data;
交易配置模块,用于通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制;A transaction configuration module, configured to select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field;
打包模块,用于将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中;A packaging module, configured to package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
处理模块,用于通过所述区块链矿工节点,并行处理所述数据链。A processing module is configured to process the data chain in parallel through the blockchain miner node.
结合本发明第二方面,本发明第二方面的第一实施方式中,所述标记模块包括:With reference to the second aspect of the present invention, in a first embodiment of the second aspect of the present invention, the marking module includes:
第一标记单元,用于根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。A first marking unit is configured to add a classification mark field to the transaction data according to a processing type of the transaction data to obtain classified transaction data.
结合本发明第二方面的第一实施方式,本发明第二方面的第二实施方式中,所述标记模块还包括:With reference to the first embodiment of the second aspect of the present invention, in a second embodiment of the second aspect of the present invention, the marking module further includes:
第二标记单元,用于根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。A second marking unit is configured to add a hierarchical mark field to the classified transaction data according to the security level of the transaction data to obtain hierarchical classified transaction data.
本发明实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上第一方面所提供的方法的步骤。A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the first implementation is implemented as above. Aspects of the provided method steps.
本发明实施例的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上第一方面所提供的方法的步骤。A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the method provided by the first aspect are implemented.
有益效果Beneficial effect
本发明实施例所提供的区块链交易数据的处理方法,在交易数据中添加与其类型对应的标记字段,区分交易数据,获得标记交易数据;区块链矿工节点可以选择部分在节点中进行处理的标记交易数据,根据标记字段配置处理机制,并将具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中,以使区块链矿工节点可以并行处理,具有相同类型的标记交易数据、且处理机制相同的多个数据链,从而减缓单条数据链的数据容量增长,提高区块链上的交易处理速度。In the method for processing blockchain transaction data provided in the embodiment of the present invention, a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data; a blockchain miner node may select a part to process in the node Tag transaction data, configure the processing mechanism according to the tag field, and package the tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel and have the same type of Multiple data chains that mark transaction data and have the same processing mechanism, thereby slowing the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例一所提供的区块链交易数据的处理方法的实现流程示意图;FIG. 1 is a schematic flowchart of an implementation method of processing a blockchain transaction data according to a first embodiment of the present invention; FIG.
图2为本发明实施例二所提供的区块链交易数据的处理方法的实现流程示意图;2 is a schematic flowchart of an implementation method of processing a transaction data of a blockchain provided by Embodiment 2 of the present invention;
图3为本发明实施例二所提供的区块链交易数据的处理方法的实现原理示意图;3 is a schematic diagram of an implementation principle of a method for processing transaction data of a blockchain provided by Embodiment 2 of the present invention;
图4为本发明实施例二所提供的另一区块链交易数据的处理方法的实现原理示意图;4 is a schematic diagram of an implementation principle of another method for processing transaction data of a blockchain provided by Embodiment 2 of the present invention;
图5为本发明实施例三所提供的区块链交易数据的处理装置的结构示意图。FIG. 5 is a schematic structural diagram of a blockchain transaction data processing device according to a third embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional characteristics and advantages of the present invention will be further explained with reference to the embodiments and the drawings.
本发明的实施方式Embodiments of the invention
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or device. Without more restrictions, an element limited by the sentence "including a ..." does not exclude that there are other identical elements in the process, method, article, or device that includes the element.
在本文中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。In this document, the use of suffixes such as "module," "component," or "unit" to represent elements is merely for the benefit of the description of the present invention, and it does not have a specific meaning in itself. Therefore, "module" and "component" can be used in combination.
在后续的描述中,发明实施例序号仅仅为了描述,不代表实施例的优劣。In the following description, the serial numbers of the embodiments of the invention are only for description, and do not represent the advantages of the embodiments.
实施例一Example one
如图1所示,本发明实施例提供一种区块链交易数据的处理方法,应用于区块链技术领域,将交易数据记录在多条数据链上,并使区块链矿工节点并行处理上述的数据链,提高了区块链交易处理的工作效率。其包括:As shown in FIG. 1, an embodiment of the present invention provides a method for processing blockchain transaction data, which is applied to the field of blockchain technology, records transaction data on multiple data chains, and enables blockchain miner nodes to process in parallel. The above data chain improves the work efficiency of blockchain transaction processing. It includes:
S101、根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据。S101. Add a tag field to the transaction data according to the type of the transaction data, to obtain labeled transaction data.
在上述步骤S101中,交易是区块链中基本的数据结构,交易数据可以表现为交易发送方、交易接收对象、交易转移的价值、交易的数值等;使用标记字段对交易数据的类型进行标记,所获得的标记交易数据可以表现为具有发送方名称的交易数据、具有接收对象名称的交易数据、具有转移价值的交易数据、具有数据数值的交易数据等。In the above step S101, the transaction is the basic data structure in the blockchain. The transaction data can be expressed as the transaction sender, the transaction receiving object, the value of the transaction transfer, the value of the transaction, etc .; use the flag field to mark the type of transaction data The obtained marked transaction data can be expressed as transaction data with the name of the sender, transaction data with the name of the recipient, transaction data with transfer value, transaction data with data values, and so on.
在本发明实施例中,在交易数据中添加标记字段可以在区块链矿工节点之外完成,也可以在区块链矿工节点上完成,本发明实施例不对其做具体限定。In the embodiment of the present invention, adding a tag field to the transaction data may be performed outside the blockchain miner node or on the blockchain miner node, which is not specifically limited in the embodiment of the present invention.
在具体应用中,交易数据的类型可以根据任意的交易数据特性进行定义,例如交易数据的类别、交易数据的优先级别、交易数据的安全级别等。In specific applications, the type of transaction data can be defined according to arbitrary transaction data characteristics, such as the type of transaction data, the priority level of transaction data, and the security level of transaction data.
在具体应用中,标记字段可以为任意形式的标记对交易数据进行标记,例如文字标记、符号标记等。In specific applications, the tag field may be any form of tag to mark transaction data, such as text tags, symbol tags, and the like.
S102、通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制。S102. Select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field.
在上述步骤S102中,标记交易数据即已经标记分类完成的交易数据,通过区块链矿工节点,可以选择进行处理的某种或者某几种类型的标记交易数据,并根据其类型配置相同的处理机制。In the above step S102, the marked transaction data is the transaction data that has been marked and classified. Through the blockchain miner node, one or several types of marked transaction data can be selected for processing, and the same processing can be configured according to the type. mechanism.
在具体应用中,上述步骤S102可以包括:In specific applications, the above step S102 may include:
通过区块链矿工节点,根据所述标记字段,选择进行处理的所述标记交易数据;Selecting, by the blockchain miner node, the marked transaction data for processing according to the marked field;
建立算法配置表,根据所述标记字段,配置所述标记交易数据的处理机制。An algorithm configuration table is established, and the processing mechanism of the marked transaction data is configured according to the marked field.
例如,步骤S101中所产生的标记交易数据为A、B、C、D,其标记字段为a、b、c、d,标记交易数据A中,具有多个标记字段为a的交易数据,标记交易数据B中,具有多个标记字段为b的交易数据;若此时需要进行处理的标记交易数据为A和B,则区块链矿工节点首先选择此标记交易数据A和B,然后根据其标记字段a和b,配置标记交易数据A和B中每一个交易数据的处理机制。For example, the marked transaction data generated in step S101 is A, B, C, and D, and the marked fields are a, b, c, and d. In the marked transaction data A, there is a plurality of marked data with a marked transaction data of a, marked In the transaction data B, there are multiple transaction data with a tag field of b; if the tag transaction data to be processed at this time is A and B, the blockchain miner node first selects this tag transaction data A and B, and then according to its The tag fields a and b configure a processing mechanism for tagging each transaction data in the transaction data A and B.
在具体应用中,处理机制的配置可以通过可插拔共识算法完成,其中,处理机制可以为任意的共识算法,例如PoW(Proof of Work,工作量证明)、PoS(Proof of Stake,股权证明)、DPoS(Delegated Proof of Stake,委托权益证明)等。In specific applications, the configuration of the processing mechanism can be completed by a pluggable consensus algorithm, where the processing mechanism can be any consensus algorithm, such as PoW (Proof of Work, Proof of Work), PoS (Proof of Stake, Proof of Stake) , DPoS (Delegated Proof of Stake, etc.).
S103、将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中。S103. Package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain.
S104、通过所述区块链矿工节点,并行处理所述数据链。S104. Process the data chain in parallel through the blockchain miner node.
在上述步骤S103和步骤S104中,具有相同处理机制的标记交易数据,已根据处理机制进行处理,使得标记交易数据能够写入区块中,从而写入同一个数据链中。In the above steps S103 and S104, the marked transaction data having the same processing mechanism has been processed according to the processing mechanism, so that the marked transaction data can be written into the block and thus into the same data chain.
在具体应用中,具有相同处理机制的标记交易数据,同时也具有相同的标记字段,在选择具有相同处理机制的标记交易数据时,可以根据标记字段进行分类和选择。In specific applications, marked transaction data with the same processing mechanism also has the same marked field. When selecting marked transaction data with the same processing mechanism, classification and selection can be performed according to the marked field.
在具体应用中,每个打包完成的区块中,所包括的标记交易数据具有相同处理机制,将其添加至同一个数据链中时,此数据链中的标记交易数据同样具有相同的处理机制,因此区块链矿工节点在处理某一数据链时,可以使用固定的处理方式,当数据链较多时,区块链矿工节点同样以固定的处理方式,处理对应的数据链,使得数据链的处理可以并行。In specific applications, the marked transaction data included in each packaged block has the same processing mechanism. When it is added to the same data chain, the marked transaction data in this data chain also has the same processing mechanism. Therefore, when a blockchain miner node processes a certain data chain, a fixed processing method can be used. When there are many data chains, the blockchain miner node also processes the corresponding data chain with a fixed processing method, making the data chain Processing can be parallel.
在本发明实施例中,不对数据链的数量进行限定,且区块链中可以存在多个相同的数据链;将打包完成的区块添加到同一个数据链中时,则可以表现为同时添加到多个相同的数据链中。In the embodiment of the present invention, the number of data chains is not limited, and there can be multiple identical data chains in the blockchain; when the packaged blocks are added to the same data chain, they can appear as simultaneous additions Into multiple identical data chains.
本发明实施例提供的区块链交易数据的处理方法,在交易数据中添加与其类型对应的标记字段,区分交易数据,获得标记交易数据;区块链矿工节点可以选择部分在节点中进行处理的标记交易数据,根据标记字段配置处理机制,并将具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中,以使区块链矿工节点可以并行处理,具有相同类型的标记交易数据、且处理机制相同的多个数据链,从而减缓单条数据链的数据容量增长,提高区块链上的交易处理速度。In the method for processing blockchain transaction data provided by the embodiment of the present invention, a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data; a blockchain miner node may select a part of the node for processing. Tag transaction data, configure processing mechanism according to the tag field, and package tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel with the same type of tag Transaction data and multiple data chains with the same processing mechanism, thereby slowing down the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain.
实施例二Example two
如图2所示,本发明实施例针对上述实施例一中步骤S101,示例性的提出了其的详细实施方式,上述实施例一中的步骤S101为:As shown in FIG. 2, the embodiment of the present invention proposes a detailed implementation manner for step S101 in the first embodiment above. Step S101 in the first embodiment is:
根据交易数据的类型,将标记字段添加至所述交易数据中,获得标记交易数据。According to the type of transaction data, a tag field is added to the transaction data to obtain the tag transaction data.
在本发明实施例中,上述步骤S101可以包括:In the embodiment of the present invention, the above step S101 may include:
S1011、根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。S1011. According to the processing type of the transaction data, a classification mark field is added to the transaction data to obtain classified transaction data.
在上述步骤S1011中,交易数据的处理类型可以表现为交易数据的工作量处理、交易数据的股权处理、交易数据的委任权益处理等。In the above step S1011, the processing type of the transaction data may be expressed as workload processing of the transaction data, equity processing of the transaction data, and entrusted equity processing of the transaction data.
在一个实施例中,上述步骤S101还可以包括:In one embodiment, the above step S101 may further include:
S1012、根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。S1012. According to the security level of the transaction data, a hierarchical flag field is added to the classified transaction data to obtain hierarchical classified transaction data.
在上述步骤S1012中,将分级标记字段添加至分类交易数据中,获得的分级分类交易数据可以表现为标记安全级别1的交易类型A、标记安全级别2的交易类型B、标记安全级别3的交易类型C、和标记安全级别4的交易类型D。In the above step S1012, a graded mark field is added to the classified transaction data, and the obtained graded classified transaction data may be expressed as a transaction type A marked with security level 1, a transaction type B marked with security level 2, and a transaction marked with security level 3. Type C, and transaction type D marking security level 4.
如图2所示,结合实施例一,本发明实施例所提供的区块链交易数据的处理方法还包括:As shown in FIG. 2, in combination with the first embodiment, the method for processing blockchain transaction data provided by the embodiment of the present invention further includes:
S105、若所述标记交易数据为分类交易数据,则根据所述分类标记字段,配置所述分类交易数据的处理机制。S105. If the marked transaction data is classified transaction data, configure a processing mechanism of the classified transaction data according to the classification flag field.
S106、若所述标记交易数据为分类分级交易数据,则根据所述分类标记字段和所述分级标记字段,配置所述分类分级交易数据的处理机制。S106. If the marked transaction data is classified and classified transaction data, configure a processing mechanism of the classified and classified transaction data according to the classified flag field and the classified flag field.
在具体应用中,交易数据的处理机制与标记交易数据的标记字段有关,当标记字段仅包括分类标记字段时,则根据分类标记字段配置分类交易数据的处理机制;当标记字段既包括分类标记字段又包括分级标记字段时,则根据分类标记字段和分级标记字段配置分级分类交易数据的处理机制。In specific applications, the processing mechanism of transaction data is related to the tag field that marks the transaction data. When the tag field includes only the classification tag field, the processing mechanism for classifying transaction data is configured according to the classification tag field; when the tag field includes both the classification tag field When the classification mark field is also included, the processing mechanism of hierarchical classification transaction data is configured according to the classification mark field and the classification mark field.
如图3所示,本发明实施例还提供了区块链交易数据的处理方法的实现原理示意图,用以说明上述实步骤S1011的实现流程在区块链中的表示。As shown in FIG. 3, an embodiment of the present invention also provides a schematic diagram of the implementation principle of a method for processing transaction data of a blockchain, which is used to illustrate the representation of the implementation process of the actual step S1011 in the blockchain.
在本发明实施例中,区块链矿工节点选择处理4个交易数据,其处理类型表现为交易类型A、交易类型B、交易类型C、交易类型D,其对应的标记字段为1、2、3、4;在区块链矿工节点中,建立算法配置表,即根据标记字段1、2、3、4,配置分类交易数据A、B、C、D的处理机制,其中,分类交易数据A所配置的处理机制为PoW,分类交易数据B所配置的处理机制为PoS,分类交易数据C所配置的处理机制为DPoS等,然后区块链矿工节点还将具有相同处理机制的分类交易数据打包成区块,添加到同一个数据链中,最终形成多个数据链,表现为:与分类交易数据A对应的PoW数据链,与分类交易数据B对应的PoS数据链,与分类交易数据C对应的DPoS数据链等。In the embodiment of the present invention, the blockchain miner node chooses to process 4 transaction data, and the processing type is represented by transaction type A, transaction type B, transaction type C, and transaction type D, and the corresponding tag fields are 1, 2, 3, 4; In the blockchain miner node, establish an algorithm configuration table, that is, configure the processing mechanism of classified transaction data A, B, C, and D according to the tag fields 1, 2, 3, and 4, among which, the classified transaction data A The configured processing mechanism is PoW, the processing mechanism configured for classified transaction data B is PoS, the processing mechanism configured for classified transaction data C is DPoS, etc., and then the blockchain miner node will also package the classified transaction data with the same processing mechanism. Blocks are added to the same data chain, and finally multiple data chains are formed, which are: PoW data chain corresponding to classified transaction data A, PoS data chain corresponding to classified transaction data B, corresponding to classified transaction data C DPoS data link etc.
如图4所示,本发明实施例还提供了另一区块链交易数据的处理方法的实现原理示意图,用以说明上述实步骤S1012的实现流程在区块链中的表示。As shown in FIG. 4, an embodiment of the present invention also provides a schematic diagram of an implementation principle of another method for processing transaction data of a blockchain, which is used to illustrate the representation of the implementation process of the actual step S1012 in the blockchain.
在本发明实施例中,区块链矿工节点选择处理4个交易数据,其处理类型表现为交易类型A、交易类型B、交易类型C、交易类型D,安全级别表现为安全级别1、安全级别2、安全级别3、安全级别4,其使用安全级别的分级作为标记字段标记分类交易数据,获得分级分类交易数据,表现为:标记安全级别1的交易类型A,标记安全级别2的交易类型B,标记安全级别3的交易类型C,标记安全级别4的交易类型D;在区块链矿工节点中,建立算法配置表,即根据标记字段:安全级别1、安全级别2、安全级别3、安全级别4,以及交易数据的处理类型:分级分类交易数据A、分级分类交易数据B、分级分类交易数据C、分级分类交易数据D,配置分级分类交易数据的处理机制,其中,标记安全级别1的分级分类交易数据A所配置的处理机制为PoW,标记安全级别2的分级分类交易数据B所配置的处理机制为PoS,标记安全级别3的分级分类交易数据C所配置的处理机制为DPoS等,然后区块链矿工节点还将具有相同处理机制的分级分类交易数据打包成区块,添加到同一个数据链中,最终形成多个数据链,表现为:与分级分类交易数据A对应的PoW数据链,与分级分类交易数据B对应的PoS数据链,与分级分类交易数据C对应的DPoS数据链等。In the embodiment of the present invention, the block chain miner node chooses to process 4 transaction data. The processing type is represented by transaction type A, transaction type B, transaction type C, and transaction type D. The security level is expressed as security level 1 and security level. 2. Security level 3 and security level 4, which use the classification of security level as a tag field to mark classified transaction data to obtain hierarchical classified transaction data, which are expressed as: marking transaction type A of security level 1 and marking transaction type B of security level 2. , Mark the transaction type C of security level 3, mark the transaction type D of security level 4; in the blockchain miner node, establish an algorithm configuration table, that is, according to the marked fields: security level 1, security level 2, security level 3, security Level 4, and the type of transaction data processing: hierarchical classified transaction data A, hierarchical classified transaction data B, hierarchical classified transaction data C, hierarchical classified transaction data D, and a processing mechanism for hierarchical classified transaction data is configured, in which security level 1 is marked The processing mechanism configured for the classified classified transaction data A is PoW, and the classified classified transaction data B of the security level 2 is marked The configured processing mechanism is PoS, and the classified classification transaction data C of security level 3 is marked as DPoS. Then, the blockchain miner node also packs the hierarchical classification transaction data with the same processing mechanism into blocks and adds them to In the same data chain, multiple data chains are finally formed, which are: PoW data chain corresponding to hierarchical classification transaction data A, PoS data chain corresponding to hierarchical classification transaction data B, and DPoS data corresponding to hierarchical classification transaction data C Chain etc.
在具体应用中,区块链矿工节点针对一种处理机制设置多个数据链,以使配置了相同处理机制的标记交易数据(分类交易数据或分级分类交易数据),打包成区块后,可能加入两个或以上的相同的数据链中。In specific applications, blockchain miner nodes set up multiple data chains for a processing mechanism, so that labeled transaction data (classified transaction data or hierarchical classified transaction data) configured with the same processing mechanism may be packaged into blocks, which may be Join two or more of the same data chains.
本发明实施例提供的区块链交易数据的处理方法,在交易数据中添加与其类型对应的标记字段,区分交易数据,获得标记交易数据;区块链矿工节点可以选择部分在节点中进行处理的标记交易数据,根据标记字段配置处理机制,并将具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中,以使区块链矿工节点可以并行处理,具有相同类型的标记交易数据、且处理机制相同的多个数据链,从而减缓单条数据链的数据容量增长,提高区块链上的交易处理速度;同时对于不同场景的交易数据,例如具有不同安全级别的交易数据,增加了标记字段,改进了处理机制的配置方式,从而使得区块链矿工节点在处理交易数据时,能够区分安全级别。In the method for processing blockchain transaction data provided by the embodiment of the present invention, a tag field corresponding to its type is added to the transaction data to distinguish the transaction data and obtain the labeled transaction data; a blockchain miner node may select a part of the node for processing. Tag transaction data, configure processing mechanism according to the tag field, and package tag transaction data with the same processing mechanism into blocks and add them to the same data chain so that blockchain miner nodes can process in parallel with the same type of tag Transaction data and multiple data chains with the same processing mechanism, thereby slowing the data capacity growth of a single data chain and increasing the transaction processing speed on the blockchain; at the same time, for transaction data in different scenarios, such as transaction data with different security levels, The tag field has been added, and the configuration of the processing mechanism has been improved, so that the blockchain miner node can distinguish the security level when processing transaction data.
实施例三Example three
如图5所示,本发明实施例提供了一种区块链交易数据的处理装置50,其包括:As shown in FIG. 5, an embodiment of the present invention provides a blockchain transaction data processing device 50, which includes:
标记模块51,用于根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据;A marking module 51, configured to add a marking field to the transaction data according to the type of the transaction data to obtain the marked transaction data;
交易配置模块52,用于通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制;A transaction configuration module 52, configured to select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field;
打包模块53,用于将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中;A packaging module 53 configured to package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
处理模块54,用于通过所述区块链矿工节点,并行处理所述数据链。The processing module 54 is configured to process the data link in parallel through the blockchain miner node.
在一个实施例中,标记模块51可以包括第一标记单元,用于根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。In one embodiment, the marking module 51 may include a first marking unit, configured to add a classification mark field to the transaction data according to a processing type of the transaction data to obtain classified transaction data.
在一个实施例中,标记模块51还可以包括第二标记单元,用于根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。In one embodiment, the marking module 51 may further include a second marking unit, configured to add a hierarchical marking field to the classified transaction data according to the security level of the transaction data to obtain hierarchical classified transaction data.
本发明实施例还提供一种终端设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如实施例一中所述的区块链交易数据的处理方法中的各个步骤。An embodiment of the present invention further provides a terminal device including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, implementation is as described in the first embodiment. Each step in the processing method of blockchain transaction data.
本发明实施例还提供一种存储介质,所述存储介质为计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如实施例一中所述的区块链交易数据的处理方法中的各个步骤。An embodiment of the present invention also provides a storage medium. The storage medium is a computer-readable storage medium, and a computer program is stored thereon. When the computer program is executed by a processor, the blocks described in the first embodiment are implemented. Various steps in the processing method of chain transaction data.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, but are not limited thereto. Although the foregoing embodiments describe the present invention in detail, those skilled in the art should understand that they can still implement the foregoing embodiments. Modifications to the recorded technical solutions, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the present invention Within the scope of the invention.

Claims (10)

  1. 一种区块链交易数据的处理方法,其特征在于,包括: A method for processing blockchain transaction data is characterized in that it includes:
    根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据;Adding a tag field to the transaction data according to the type of the transaction data to obtain the labeled transaction data;
    通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制;The blockchain transaction miner node selects the marked transaction data to be processed, and configures the same processing mechanism for the marked transaction data having the same marked field;
    将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中;Package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
    通过所述区块链矿工节点,并行处理所述数据链。The data chain is processed in parallel by the blockchain miner node.
  2. 如权利要求1所述的区块链交易数据的处理方法,其特征在于,所述根据交易数据的类型,将标记字段添加至所述交易数据中,获得标记交易数据包括: The method for processing blockchain transaction data according to claim 1, wherein, according to the type of the transaction data, adding a tag field to the transaction data, and obtaining the tag transaction data comprises:
    根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。According to the processing type of the transaction data, a classification mark field is added to the transaction data to obtain classified transaction data.
  3. 如权利要求2所述的区块链交易数据的处理方法,其特征在于,所述根据交易数据的类型,将标记字段添加至所述交易数据中,获得标记交易数据还包括: The method for processing blockchain transaction data according to claim 2, wherein the adding a tag field to the transaction data according to the type of the transaction data, and obtaining the token transaction data further comprises:
    根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。According to the security level of the transaction data, a hierarchical mark field is added to the classified transaction data to obtain hierarchical classified transaction data.
  4. 如权利要求1所述的区块链交易数据的处理方法,其特征在于,所述通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制包括: The method for processing blockchain transaction data according to claim 1, characterized in that, by using a blockchain miner node, the marked transaction data to be processed is selected, and a marked transaction having the same marked field is selected. Data, the same processing mechanism configured includes:
    通过区块链矿工节点,根据所述标记字段,选择进行处理的所述标记交易数据;Selecting, by the blockchain miner node, the marked transaction data for processing according to the marked field;
    建立算法配置表,根据所述标记字段,配置所述标记交易数据的处理机制。An algorithm configuration table is established, and the processing mechanism of the marked transaction data is configured according to the marked field.
  5. 如权利要求1至4任一项所述的区块链交易数据的处理方法,其特征在于,所述区块链交易数据的处理方法还包括: The method for processing blockchain transaction data according to any one of claims 1 to 4, wherein the method for processing blockchain transaction data further comprises:
    若所述标记交易数据为分类交易数据,则根据所述分类标记字段,配置所述分类交易数据的处理机制;If the marked transaction data is classified transaction data, configuring a processing mechanism of the classified transaction data according to the classified flag field;
    若所述标记交易数据为分类分级交易数据,则根据所述分类标记字段和所述分级标记字段,配置所述分类分级交易数据的处理机制。If the marked transaction data is classified and classified transaction data, a processing mechanism for the classified and classified transaction data is configured according to the classified flag field and the classified flag field.
  6. 一种区块链交易数据的处理装置,其特征在于,包括: A processing device for blockchain transaction data is characterized in that it includes:
    标记模块,用于根据交易数据的类型,在所述交易数据中添加标记字段,获得标记交易数据;A marking module, configured to add a marking field to the transaction data according to the type of the transaction data to obtain the marked transaction data;
    交易配置模块,用于通过区块链矿工节点,选择进行处理的所述标记交易数据,并对具有相同所述标记字段的标记交易数据,配置相同的处理机制;A transaction configuration module, configured to select the marked transaction data to be processed through a blockchain miner node, and configure the same processing mechanism for the marked transaction data having the same marked field;
    打包模块,用于将所述具有相同处理机制的标记交易数据打包成区块,添加到同一个数据链中;A packaging module, configured to package the marked transaction data with the same processing mechanism into blocks and add them to the same data chain;
    处理模块,用于通过所述区块链矿工节点,并行处理所述数据链。A processing module is configured to process the data chain in parallel through the blockchain miner node.
  7. 如权利要求6所述的区块链交易数据的处理装置,其特征在于,所述标记模块包括: The processing device for blockchain transaction data according to claim 6, wherein the marking module comprises:
    第一标记单元,用于根据交易数据的处理类型,将分类标记字段添加至所述交易数据中,获得分类交易数据。A first marking unit is configured to add a classification mark field to the transaction data according to a processing type of the transaction data to obtain classified transaction data.
  8. 如权利要求7所述的区块链交易数据的处理装置,其特征在于,所述标记模块还包括: The processing device for blockchain transaction data according to claim 7, wherein the marking module further comprises:
    第二标记单元,用于根据交易数据的安全级别,将分级标记字段添加至所述分类交易数据中,获得分级分类交易数据。A second marking unit is configured to add a hierarchical mark field to the classified transaction data according to the security level of the transaction data to obtain hierarchical classified transaction data.
  9. 一种终端设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现如权利要求1至5任一项所述的区块链交易数据的处理方法中的各个步骤。 A terminal device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, and is characterized in that when the processor executes the computer program, it implements claim 1 Each step in the method for processing blockchain transaction data according to any one of 5 to 5.
  10. 一种存储介质,所述存储介质为计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1至5任一项所述的区块链交易数据的处理方法中的各个步骤。 A storage medium is a computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the computer program according to any one of claims 1 to 5 is implemented. Various steps in the processing method of blockchain transaction data.
PCT/CN2019/082900 2018-09-27 2019-04-16 Blockchain transaction data processing method and apparatus, and terminal device WO2020062842A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811127675.7 2018-09-27
CN201811127675.7A CN109360095A (en) 2018-09-27 2018-09-27 A kind of processing method, device and the terminal device of block chain transaction data

Publications (1)

Publication Number Publication Date
WO2020062842A1 true WO2020062842A1 (en) 2020-04-02

Family

ID=65347785

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082900 WO2020062842A1 (en) 2018-09-27 2019-04-16 Blockchain transaction data processing method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN109360095A (en)
WO (1) WO2020062842A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109360095A (en) * 2018-09-27 2019-02-19 深圳技术大学(筹) A kind of processing method, device and the terminal device of block chain transaction data
CN112529582A (en) * 2019-08-20 2021-03-19 厦门本能管家科技有限公司 Multistage transaction acceleration method and system for block chain
CN110648125B (en) * 2019-09-10 2022-08-02 杭州秘猿科技有限公司 Packaging transaction method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120218918A1 (en) * 2011-02-24 2012-08-30 Sony Corporation Wireless communication apparatus, wireless communication method, program, and wireless communication system
CN106506493A (en) * 2016-10-27 2017-03-15 摩登大道时尚电子商务有限公司 Data processing method based on block platform chain
CN106991164A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and electronic equipment that finance data is handled are used for based on block chain
CN107040582A (en) * 2017-02-17 2017-08-11 阿里巴巴集团控股有限公司 A kind of data processing method and device
CN108345685A (en) * 2018-03-07 2018-07-31 物数(上海)信息科技有限公司 More granularity data processing methods, system, equipment and storage medium under 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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784546B (en) * 2016-08-31 2020-11-10 北京明朝万达科技股份有限公司 Data transaction method and system based on block chain
CN106682984B (en) * 2016-10-27 2019-09-10 深圳壹账通智能科技有限公司 Transaction business process method and system based on block chain
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block
CN107833060B (en) * 2017-11-13 2020-12-25 中国银行股份有限公司 Verification method and system for intelligent contract transaction in block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120218918A1 (en) * 2011-02-24 2012-08-30 Sony Corporation Wireless communication apparatus, wireless communication method, program, and wireless communication system
CN106506493A (en) * 2016-10-27 2017-03-15 摩登大道时尚电子商务有限公司 Data processing method based on block platform chain
CN107040582A (en) * 2017-02-17 2017-08-11 阿里巴巴集团控股有限公司 A kind of data processing method and device
CN106991164A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and electronic equipment that finance data is handled are used for based on block chain
CN108345685A (en) * 2018-03-07 2018-07-31 物数(上海)信息科技有限公司 More granularity data processing methods, system, equipment and storage medium under 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

Also Published As

Publication number Publication date
CN109360095A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
US11841831B2 (en) Technologies for file sharing
WO2020062842A1 (en) Blockchain transaction data processing method and apparatus, and terminal device
TWI695260B (en) Block data verification method and device
CN107579951B (en) Service data processing method, service processing method and equipment
EP3968200A1 (en) Methods and devices for transferring the result of processing on data assets based on blockchain
CN107451175A (en) A kind of data processing method and equipment based on block chain
JP2020531976A (en) A device that provides a set of cryptographically protected, filtered, and sorted transaction datasets for blockchain links.
JP2019079556A5 (en)
CN103020207B (en) Browser label page grouping management method and device
CN110263088B (en) Conditional receipt storage method and node combining code labeling and event type
CN107516038A (en) A kind of method and device for determining device-fingerprint
CN104298687B (en) A kind of hash partition management method and device
CN108765159A (en) A kind of cochain based on block chain and condition processing method, device and interacted system
CN108886536A (en) The entry in forward signal library is adjusted in heart network in the content
CN110263089B (en) Receipt storage method and node combining conditional restrictions of transaction and event types
CN110020544A (en) The Hash information processing method and system of record are stored in the block of block chain
CN108604984A (en) For the encrypted method and system of interest in content center network
Acker When is a Record?
CN108846748A (en) A kind of independent process executes the method and device of contract
JP2022000770A (en) Information processing system, information processing method, server, information processing program, and block chain data structure
CN108134812A (en) Data processing method and device
CN101576919B (en) Mark generating method and device
TW542978B (en) System and method for IP-based LSI design
CN110704438A (en) Method and device for generating bloom filter in block chain
CN112804358A (en) Method and device for transferring data in cross-link mode based on relay equipment network

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19866506

Country of ref document: EP

Kind code of ref document: A1