HK1248841B - Data processing method and equipment based on blockchain - Google Patents
Data processing method and equipment based on blockchain Download PDFInfo
- Publication number
- HK1248841B HK1248841B HK18107749.9A HK18107749A HK1248841B HK 1248841 B HK1248841 B HK 1248841B HK 18107749 A HK18107749 A HK 18107749A HK 1248841 B HK1248841 B HK 1248841B
- Authority
- HK
- Hong Kong
- Prior art keywords
- block
- data
- identifier
- business data
- stored
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及互联网信息处理技术以及计算机技术领域,尤其涉及一种基于区块链的数据处理方法及设备。The present application relates to the fields of Internet information processing technology and computer technology, and in particular to a data processing method and device based on blockchain.
背景技术Background Art
区块链技术也称为分布式账本技术,是一种分布式互联网数据库技术,其特点是去中心化、公开透明、不可篡改、可信任。Blockchain technology, also known as distributed ledger technology, is a distributed Internet database technology characterized by decentralization, openness, transparency, immutability, and trustworthiness.
数据存储作为区块链技术的一个重要功能。每一个区块的数据存储结构为:数据头和数据体。其中,数据头用于与其他区块之间建立链式关系,即实现不同区块之间的链式连接;而数据体用于存储业务数据。Data storage is a key function of blockchain technology. Each block's data storage structure consists of a header and a body. The header is used to establish a chain relationship with other blocks, effectively connecting them together. The body, on the other hand, stores business data.
例如:在第n个区块的数据头中包含第n个区块的摘要信息、第n-1个区块的摘要信息,这样,通过第n-1个区块的摘要信息建立第n个区块与第n-1个区块之间的链式关系。For example, the data header of the nth block includes the summary information of the nth block and the summary information of the n-1th block. In this way, a chain relationship between the nth block and the n-1th block is established through the summary information of the n-1th block.
而在每个区块的数据体中存储的业务数据,通常采用key-value的方式进行存储。例如:假设业务数据为“T时刻用户a向用户b转账100元”,那么若该业务数据被存储在区块上,那么在区块中存储的内容可以为:交易时间(T时刻)、交易源地址(用户a对应的地址)、交易目的地址(用户b对应的地址)和交易标的(100元)。这里的交易时间、交易源地址、交易目的地址和交易标的可以称之为key,而T时刻、用户a对应的地址、用户b对应的地址和100元可以称之为不同key对应的value(即属性值)。The business data stored in each block's data body is typically stored in a key-value format. For example, if the business data is "user a transfers 100 yuan to user b at time T," then if this business data is stored on a block, the content stored in the block may be: transaction time (time T), transaction source address (the address corresponding to user a), transaction destination address (the address corresponding to user b), and transaction amount (100 yuan). The transaction time, transaction source address, transaction destination address, and transaction amount here can be called keys, while time T, the address corresponding to user a, the address corresponding to user b, and 100 yuan can be called the values (i.e., attribute values) corresponding to different keys.
发明内容Summary of the Invention
有鉴于此,本申请实施例提供了一种基于区块链的数据处理方法及设备,用于提高区块链网络的数据分析、数据计算等事务处理能力。In view of this, the embodiments of the present application provide a blockchain-based data processing method and device for improving the transaction processing capabilities of the blockchain network, such as data analysis and data calculation.
本申请实施例采用下述技术方案:The embodiments of this application adopt the following technical solutions:
本申请实施例提供一种基于区块链的数据处理方法,包括:The present invention provides a data processing method based on blockchain, including:
确定区块链网络中各区块的区块标识;Determine the block identifier of each block in the blockchain network;
确定各所述区块中存储的各业务数据的数据标识;Determining the data identifier of each business data stored in each of the blocks;
针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。For each of the blocks, a mapping relationship is established between the block identifier of the block and the data identifier of each of the business data stored in the block, and the mapping relationship is stored in a relational database.
本申请实施例还提供一种基于区块链的数据处理设备,包括:The present application also provides a blockchain-based data processing device, including:
确定单元,确定区块链网络中各区块的区块标识;以及确定各所述区块中存储的各业务数据的数据标识;A determination unit, which determines a block identifier of each block in the blockchain network; and determines a data identifier of each business data stored in each of the blocks;
处理单元,针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。The processing unit establishes, for each of the blocks, a mapping relationship between the block identifier of the block and the data identifier of each of the business data stored in the block, and stores the mapping relationship in a relational database.
本申请实施例还提供一种基于区块链的数据处理设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置成由所述至少一个处理器执行以下步骤:The present application also provides a blockchain-based data processing device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured such that the at least one processor executes the following steps:
确定区块链网络中各区块的区块标识;Determine the block identifier of each block in the blockchain network;
确定各所述区块中存储的各业务数据的数据标识;Determining the data identifier of each business data stored in each of the blocks;
针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。For each of the blocks, a mapping relationship is established between the block identifier of the block and the data identifier of each of the business data stored in the block, and the mapping relationship is stored in a relational database.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
通过本申请实施例提供的方案,基于区块链网络中各区块的区块标识和各所述区块中存储的各业务数据的数据标识;并针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。这样,通过将区块链网络中存储的业务数据由非关系性数据转换成为关系型数据,并存储至关系型数据库中,提升了区块链网络中数据存储的可靠性,借助关系型数据库,有助于提高区块链网络的数据分析、数据计算等事务处理能力,改善区块链网络的系统能力。The solution provided by the embodiments of the present application is based on the block identifiers of each block in the blockchain network and the data identifiers of each business data stored in each block; and for each block, a mapping relationship is established between the block identifier of the block and the data identifier of each business data stored in the block, and the mapping relationship is stored in a relational database. In this way, by converting the business data stored in the blockchain network from non-relational data to relational data and storing it in a relational database, the reliability of data storage in the blockchain network is improved. With the help of the relational database, it helps to improve the transaction processing capabilities of the blockchain network, such as data analysis and data calculation, and improve the system capabilities of the blockchain network.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1为本申请实施例提供的一种区块链的数据处理方法的流程示意图;FIG1 is a flow chart of a data processing method for a blockchain provided in an embodiment of the present application;
图2为本申请实施例提供的区块数据表对应的表结构示意图;FIG2 is a schematic diagram of a table structure corresponding to a block data table provided in an embodiment of the present application;
图3为本申请实施例提供的业务数据表对应的表结构示意图;FIG3 is a schematic diagram of a table structure corresponding to a business data table provided in an embodiment of the present application;
图4为本申请实施例提供的关系数据库对应的表结构示意图;FIG4 is a schematic diagram of a table structure corresponding to a relational database provided in an embodiment of the present application;
图5为本申请实施例提供的一种基于区块链的数据处理方法的场景示意图;FIG5 is a schematic diagram of a scenario of a blockchain-based data processing method provided in an embodiment of the present application;
图6为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。FIG6 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
然而,在区块链网络中采用key-value的方式进行数据存储,虽然能够保证业务数据不被篡改,但是数据存储的可靠性比较低,也不利于后续对其存储的业务数据进行分析、计算等事务性处理。However, although the key-value method is used for data storage in the blockchain network to ensure that business data is not tampered with, the reliability of data storage is relatively low, and it is not conducive to subsequent analysis, calculation and other transactional processing of the stored business data.
所谓数据库中的事务是指数据库运行中的逻辑单元,具有原子性、一致性、隔离性和持久性等特点。它能够有效保证对数据库中数据的处理能力,这里的处理能力包含分析能力、计算能力、查询能力等等。A database transaction is a logical unit of operation within the database, characterized by atomicity, consistency, isolation, and persistence. It effectively ensures the ability to process data within the database, including analytical, computational, and query capabilities.
基于此,本申请实施例提供了一种基于区块链的数据处理方法及设备,用于提高区块链网络的数据分析、数据计算等事务处理能力。Based on this, the embodiments of the present application provide a blockchain-based data processing method and device for improving the transaction processing capabilities of the blockchain network, such as data analysis and data calculation.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
图1为本申请实施例提供的一种区块链的数据处理方法的流程示意图。所述方法可以如下所示。本申请实施例的执行主体可以是区块链节点,也可以是关系数据库对应的服务器,这里不做具体限定。Figure 1 is a schematic flow chart of a blockchain data processing method provided in an embodiment of the present application. The method may be as follows. The execution entity of the embodiment of the present application may be a blockchain node or a server corresponding to a relational database, without specific limitation here.
步骤101:确定区块链网络中各区块的区块标识。Step 101: Determine the block identifier of each block in the blockchain network.
在本申请实施例中,区块链网络中的各区块可以是指新产生的区块,在确定这种区块的区块标识时,该种区块中可能还尚未存储业务数据,也可能已存储业务数据;也可以是指已产生的区块,这种区块中已存储业务数据,这里不做具体限定。In the embodiment of the present application, each block in the blockchain network may refer to a newly generated block. When determining the block identifier of such a block, such a block may not yet store business data or may already store business data; it may also refer to a generated block, which already stores business data. No specific limitation is made here.
具体地,针对区块链网络中各所述区块,分别执行:Specifically, for each block in the blockchain network, execute:
根据该区块的摘要信息,得到该区块的区块标识。According to the summary information of the block, the block identifier of the block is obtained.
需要说明的是,这里的该区块的摘要信息可以包含但不限于:难度值(与该区块相关数学题的难度目标)、随机数(Nonce,记录解密该区块相关数学题的答案的值)等等。It should be noted that the summary information of the block here may include but is not limited to: difficulty value (difficulty target of the math problem related to the block), random number (Nonce, recording the value of the answer to the math problem related to the block), etc.
在得到该区块的摘要信息后,可以利用设定算法,对该摘要信息进行计算,并将计算得到的结果确定为该区块链的区块标识。After obtaining the summary information of the block, the set algorithm can be used to calculate the summary information, and the calculated result is determined as the block identifier of the blockchain.
这里的设定算法可以是哈希算法,还可以是SHA256算法,这里不做具体限定。The set algorithm here can be a hash algorithm or a SHA256 algorithm, and there is no specific limitation here.
需要说明的是,本申请实施例中所记载的区块标识能够唯一标识该区块,即不同区块对应的区块标识不同。It should be noted that the block identifier recorded in the embodiments of the present application can uniquely identify the block, that is, different blocks correspond to different block identifiers.
在本申请实施例中,除了确定各区块的区块标识之外,所述方法还包括:In the embodiment of the present application, in addition to determining the block identifier of each block, the method further includes:
根据该区块中存储的各所述业务数据,得到该区块的状态state值。According to each of the business data stored in the block, the state value of the block is obtained.
这里可以基于bucket-tree得到该区块的state值。Here we can get the state value of the block based on the bucket-tree.
具体地,首先,构建merkle树,该区块中存储的各业务数据作为该merkle树的叶子节点;其次,确定各叶子节点(即各业务数据)的哈希值;最后,由叶子节点向上计算得到merkle树的根节点的哈希值。将得到的merkle树的根节点的哈希值确定为该区块的state值。Specifically, first, a Merkle tree is constructed, with each business data stored in the block as the leaf node of the Merkle tree. Second, the hash value of each leaf node (i.e., each business data) is determined. Finally, the hash value of the root node of the Merkle tree is calculated upward from the leaf node. The hash value of the root node of the Merkle tree is determined as the state value of the block.
在本申请实施例中,所述方法还包括:In an embodiment of the present application, the method further includes:
在得到该区块的state值后,建立该区块的区块标识、所述之间的第一对应关系;After obtaining the state value of the block, establishing a first correspondence between the block identifier of the block and the above;
将所述第一对应关系存储至区块数据表中。The first corresponding relationship is stored in the block data table.
图2为本申请实施例提供的区块数据表对应的表结构示意图。FIG2 is a schematic diagram of the table structure corresponding to the block data table provided in an embodiment of the present application.
从图2中可以看出,区块数据表中除了存储区块的区块标识、state值以及与该区块相邻的前一个区块的区块标识之外,还可以存储区块的版本号、区块的生成时间、区块的高度值(这里的高度值可以理解为该区块在整个区块链所处的高度,也就是说可以根据该高度值确定出该区块在整个区块链中的位置)等。这样,通过区块数据表可以快速获取区块链网络中各区块的属性信息。As can be seen from Figure 2, in addition to storing the block ID, state value, and the block ID of the previous block adjacent to the block, the block data table can also store the block version number, block generation time, block height value (the height value here can be understood as the height of the block in the entire blockchain, that is, the position of the block in the entire blockchain can be determined based on the height value), etc. In this way, the block data table can be used to quickly obtain the attribute information of each block in the blockchain network.
步骤103:确定各所述区块中存储的各业务数据的数据标识。Step 103: Determine the data identifier of each business data stored in each block.
在本申请实施例中,针对各所述区块中存储的各业务数据,分别执行:In the embodiment of the present application, for each business data stored in each of the blocks, the following operations are performed respectively:
根据该业务数据的哈希值,确定该业务数据的数据标识。The data identifier of the business data is determined according to the hash value of the business data.
这里业务数据的哈希值可以是对业务数据对应的字符串进行哈希计算得到,那么该业务数据的数据标识可以为该哈希值。Here, the hash value of the business data may be obtained by performing a hash calculation on a character string corresponding to the business data, and the data identifier of the business data may be the hash value.
需要说明的是,本申请实施例中所记载的数据标识能够唯一标识该业务数据,那么只要能够唯一标识该业务数据的信息也可以作为该业务数据的数据标识,这里不做具体限定。It should be noted that the data identifier recorded in the embodiments of the present application can uniquely identify the business data. Therefore, any information that can uniquely identify the business data can also be used as the data identifier of the business data, and no specific limitation is made here.
在本申请实施例中,所述方法还包括:In an embodiment of the present application, the method further includes:
在得到该业务数据的数据标识后,建立该业务数据的数据标识与该业务数据所存储在的区块的区块标识之间的第二对应关系;After obtaining the data identifier of the business data, establishing a second correspondence between the data identifier of the business data and the block identifier of the block in which the business data is stored;
将所述第二对应关系存储至业务数据表中。The second corresponding relationship is stored in the business data table.
图3为本申请实施例提供的业务数据表对应的表结构示意图。FIG3 is a schematic diagram of the table structure corresponding to the business data table provided in an embodiment of the present application.
从图3中可以看出,业务数据表中除了存储业务数据的数据标识和业务数据所存储在的区块的区块标识之外,还可以存储业务数据的版本号、业务数据的业务类型、业务数据中发起方的公钥、业务数据的发起时间、业务数据中发起方的数字签名(发起方利用私钥进行签名得到的)、业务数据的数据内容、业务数据的存储状态(即业务数据是否存储至区块中)等。As can be seen from Figure 3, in addition to storing the data identifier of the business data and the block identifier of the block where the business data is stored, the business data table can also store the version number of the business data, the business type of the business data, the public key of the initiator in the business data, the initiation time of the business data, the digital signature of the initiator in the business data (obtained by the initiator using the private key to sign), the data content of the business data, the storage status of the business data (that is, whether the business data is stored in the block), etc.
这里需要说明的是,步骤103中记载的业务数据可以是指已存储在区块中的业务数据,也可以是指尚未存储至区块中的业务数据。那么在业务数据尚未存储至区块之前,可以将该业务数据存储至业务数据表中。此时,在该业务数据表中业务数据的存储状态可以为未存储至区块中。It should be noted that the business data recorded in step 103 may refer to business data that has been stored in the block, or may refer to business data that has not yet been stored in the block. Therefore, before the business data is stored in the block, the business data may be stored in the business data table. In this case, the storage status of the business data in the business data table may be "not stored in the block."
如果业务数据已存储在区块中,那么该业务数据在存储至业务数据表中时,该业务数据的存储状态可以为已存储至区块中。If the business data has been stored in the block, then when the business data is stored in the business data table, the storage status of the business data may be "stored in the block."
需要说明的是,本申请实施例中所记载的“第一对应关系”和“第二对应关系”中包含的“第一”和“第二”没有特殊含义,仅表示不同的对应关系。It should be noted that the “first” and “second” contained in the “first corresponding relationship” and “second corresponding relationship” recorded in the embodiments of the present application have no special meanings and only represent different corresponding relationships.
步骤105:针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。Step 105: For each of the blocks, a mapping relationship is established between the block identifier of the block and the data identifier of each of the business data stored in the block, and the mapping relationship is stored in a relational database.
在本申请实施例中,若在步骤101中得到该区块的state值,那么还可以建立该区块的区块标识、所述state值与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将该映射关系存储至关系数据库中。In an embodiment of the present application, if the state value of the block is obtained in step 101, a mapping relationship can also be established between the block identifier of the block, the state value and the data identifier of each business data stored in the block, and the mapping relationship can be stored in a relational database.
图4为本申请实施例提供的关系数据库对应的表结构示意图。FIG4 is a schematic diagram of a table structure corresponding to a relational database provided in an embodiment of the present application.
从图4中可以看出,关系数据库对应的表结构包含区块的区块标识、区块的state值和区块中存储的业务数据的数据标识。这里的区块中存储的业务数据的数据标识可以是一个数据标识集合,也可以是一个数据标识列表,这里不做具体限定。As shown in Figure 4, the table structure corresponding to the relational database includes the block identifier of the block, the block state value, and the data identifier of the business data stored in the block. The data identifier of the business data stored in the block can be a data identifier set or a data identifier list, which is not specifically limited here.
在本申请实施例中,建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系还可以通过以下方式确定:In the embodiment of the present application, establishing a mapping relationship between the block identifier of the block and the data identifier of each of the business data stored in the block can also be determined in the following manner:
根据所述区块数据表中包含的所述第一对应关系和所述业务数据表中包含的所述第二对应关系,基于区块标识,建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系。According to the first corresponding relationship contained in the block data table and the second corresponding relationship contained in the business data table, based on the block identifier, a mapping relationship between the block identifier of the block and the data identifier of each business data stored in the block is established.
例如:建立得到的区块数据表如表1所示:For example, the block data table created is shown in Table 1:
表1Table 1
建立得到的业务数据表如表2所示:The business data table established is shown in Table 2:
表2Table 2
通过分析表1和表2可以确定:By analyzing Table 1 and Table 2, we can determine that:
数据标识为BXMEuqJfnhC7no8n5EPXPUzyiLw21YWxAMqW6fAMpxid的业务数据的存储在区块标识为6XeQRg6Ajw3rTAZddefitnmfpAKA6NspnLhm8byuvJXM的区块中;The business data with the data identifier BXMEuqJfnhC7no8n5EPXPUzyiLw21YWxAMqW6fAMpxid is stored in the block with the block identifier 6XeQRg6Ajw3rTAZddefitnmfpAKA6NspnLhm8byuvJXM;
数据标识为DnTg93xxdYiE88iRxkXrpUGfQemtL1uHs422J6RUizF1的业务数据和数据标识为DkukkEqW4iirM7waHuRh258PCpYd54QwLL8v1ATjGSP6的业务数据存储在区块标识为5Gj5aYzepjcU3gPbFhh9VVcx9jMvsAeP2oCvzKZ4LC4B的区块中。The business data with the data identifier DnTg93xxdYiE88iRxkXrpUGfQemtL1uHs422J6RUizF1 and the business data with the data identifier DkukkEqW4iirM7waHuRh258PCpYd54QwLL8v1ATjGSP6 are stored in the block with the block identifier 5Gj5aYzepjcU3gPbFhh9VVcx9jMvsAeP2oCvzKZ4LC4B.
那么基于区块标识,可以该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,如表3所示:Based on the block identifier, a mapping relationship between the block identifier of the block and the data identifier of each business data stored in the block can be obtained, as shown in Table 3:
表3Table 3
在本申请实施例中,当产生新的区块或者新的业务数据时,可以对区块数据表、业务数据表和关系数据库进行更新操作。In an embodiment of the present application, when a new block or new business data is generated, the block data table, business data table and relational database may be updated.
具体地,在新的区块产生时,确定新产生的区块的区块标识;Specifically, when a new block is generated, the block identifier of the newly generated block is determined;
根据新产生的所述区块的区块标识,同步更新所述区块数据表和/或所述关系数据库。According to the newly generated block identifier of the block, the block data table and/or the relational database are synchronously updated.
在本申请的另一个实施例中,所述方法还包括:In another embodiment of the present application, the method further includes:
在新的业务数据产生时,确定新产生的业务数据的数据标识;When new business data is generated, determine the data identifier of the newly generated business data;
在将新的业务数据存储至区块时或后,建立新产生的业务数据的数据标识与所存储区块的区块标识之间的映射关系;When or after storing new business data in a block, a mapping relationship is established between the data identifier of the newly generated business data and the block identifier of the stored block;
根据所述映射关系,同步更新所述业务数据表和/或所述关系数据库。According to the mapping relationship, the business data table and/or the relational database are synchronously updated.
例如:当新的业务数据产生时,可以将该业务数据存储至业务数据表中,那么表2可以更新为表4:For example, when new business data is generated, the business data can be stored in the business data table, and then Table 2 can be updated to Table 4:
表4Table 4
通过表4中所示的内容,可以确定数据标识为DJu65XmCsLiS7QPWfLaQpboKg2eJZtP6ZYtAsJsSGFjb的业务数据尚未存储至区块中。According to the content shown in Table 4, it can be determined that the business data with the data identifier DJu65XmCsLiS7QPWfLaQpboKg2eJZtP6ZYtAsJsSGFjb has not been stored in the block.
如果将该业务数据存储至区块中,那么业务数据将由表4变更为表5:If the business data is stored in the block, the business data will change from Table 4 to Table 5:
表5Table 5
通过表5中所示的内容,可以确定数据标识为DJu65XmCsLiS7QPWfLaQpboKg2eJZtP6ZYtAsJsSGFjb的业务数据被存储在区块标识为6Un3dbeVx21HfqZwaAZ1DgLnjTFAA7KUokRqg7pkTqcv的区块中。According to the content shown in Table 5, it can be determined that the service data with the data identifier DJu65XmCsLiS7QPWfLaQpboKg2eJZtP6ZYtAsJsSGFjb is stored in the block with the block identifier 6Un3dbeVx21HfqZwaAZ1DgLnjTFAA7KUokRqg7pkTqcv.
显然,区块标识为6Un3dbeVx21HfqZwaAZ1DgLnjTFAA7KUokRqg7pkTqcv的区块为一个新产生的区块,那么在本申请实施例中还将更新区块数据表(表1)中所示的内容,即表6:Obviously, the block identified as 6Un3dbeVx21HfqZwaAZ1DgLnjTFAA7KUokRqg7pkTqcv is a newly generated block. Therefore, the content shown in the block data table (Table 1) in the embodiment of the present application will also be updated, that is, Table 6:
表6Table 6
在产生新的区块和新的业务数据后,还可以按照上述方式对关系数据库进行更新,如表7所示:After generating new blocks and new business data, the relational database can also be updated in the above manner, as shown in Table 7:
表7Table 7
为了方便后续查询或者分析业务数据,在将区块链网络中存储的业务数据由非关系数据转换成为关系型数据时,还可以建立索引,例如:区块数据表中可以以区块标识作为索引;业务数据表中更可以以数据标识作为索引;在关系数据库中既可以以区块标识作为索引,还可以以数据标识作为索引,还可以以区块标识和数据标识作为索引,等等,这里不做具体限定。In order to facilitate subsequent query or analysis of business data, when converting business data stored in the blockchain network from non-relational data to relational data, an index can also be established. For example, the block identifier can be used as the index in the block data table; the data identifier can be used as the index in the business data table; in the relational database, both the block identifier and the data identifier can be used as the index, and both the block identifier and the data identifier can be used as the index, and so on. No specific restrictions are given here.
通过本申请实施例提供的方案,基于区块链网络中各区块的区块标识和各所述区块中存储的各业务数据的数据标识;并针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。这样,通过将区块链网络中存储的业务数据由非关系性数据转换成为关系型数据,并存储至关系型数据库中,提升了区块链网络中数据存储的可靠性,借助关系型数据库,有助于提高区块链网络的数据分析、数据计算等事务处理能力,改善区块链网络的系统能力。The solution provided by the embodiments of the present application is based on the block identifiers of each block in the blockchain network and the data identifiers of each business data stored in each block; and for each block, a mapping relationship is established between the block identifier of the block and the data identifier of each business data stored in the block, and the mapping relationship is stored in a relational database. In this way, by converting the business data stored in the blockchain network from non-relational data to relational data and storing it in a relational database, the reliability of data storage in the blockchain network is improved. With the help of the relational database, it helps to improve the transaction processing capabilities of the blockchain network, such as data analysis and data calculation, and improve the system capabilities of the blockchain network.
图5为本申请实施例提供的一种基于区块链的数据处理方法的场景示意图。FIG5 is a schematic diagram of a scenario of a blockchain-based data processing method provided in an embodiment of the present application.
从图5中可以看出,通过将区块链网络中存储的业务数据由非关系性数据转换成为关系型数据,并存储至关系型数据库中,提升了区块链网络中数据存储的可靠性,借助关系型数据库,有助于提高区块链网络的数据分析、数据计算等事务处理能力,改善区块链网络的系统能力。As can be seen from Figure 5, by converting the business data stored in the blockchain network from non-relational data to relational data and storing it in a relational database, the reliability of data storage in the blockchain network is improved. With the help of a relational database, it helps to improve the transaction processing capabilities of the blockchain network, such as data analysis and data calculation, and improve the system capabilities of the blockchain network.
图6为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。所述数据处理设备包括:确定单元601和处理单元602,其中:FIG6 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The data processing device includes: a determination unit 601 and a processing unit 602, wherein:
确定单元601,确定区块链网络中各区块的区块标识;以及确定各所述区块中存储的各业务数据的数据标识;Determining unit 601, determining a block identifier of each block in the blockchain network; and determining a data identifier of each business data stored in each of the blocks;
处理单元602,针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。The processing unit 602 establishes, for each of the blocks, a mapping relationship between the block identifier of the block and the data identifier of each of the business data stored in the block, and stores the mapping relationship in a relational database.
在本申请的另一个实施例中,所述确定单元601确定区块链网络中各区块的区块标识,包括;In another embodiment of the present application, the determining unit 601 determines the block identifier of each block in the blockchain network, including:
针对区块链网络中各所述区块,分别执行:For each block in the blockchain network, execute:
根据该区块的摘要信息,得到该区块的区块标识。According to the summary information of the block, the block identifier of the block is obtained.
在本申请的另一个实施例中,所述数据处理设备还包括:计算单元603,其中:In another embodiment of the present application, the data processing device further includes: a computing unit 603, wherein:
所述计算单元603,根据该区块中存储的各所述业务数据,得到该区块的状态state值;The calculation unit 603 obtains a state value of the block according to each of the business data stored in the block;
所述处理单元602建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,包括:The processing unit 602 establishes a mapping relationship between the block identifier of the block and the data identifier of each business data stored in the block, including:
建立该区块的区块标识、所述state值与该区块中存储的各所述业务数据的数据标识之间的映射关系。A mapping relationship is established between the block identifier of the block, the state value, and the data identifier of each business data stored in the block.
在本申请的另一个实施例中,所述数据处理设备还包括:第一创建单元604,其中:In another embodiment of the present application, the data processing device further includes: a first creating unit 604, wherein:
所述第一创建单元604,在得到该区块的state值后,建立该区块的区块标识、所述state值以及与该区块相邻的前一个区块的区块标识之间的第一对应关系;The first creation unit 604, after obtaining the state value of the block, establishes a first correspondence between the block identifier of the block, the state value, and the block identifier of a previous block adjacent to the block;
将所述第一对应关系存储至区块数据表中。The first corresponding relationship is stored in the block data table.
在本申请的另一个实施例中,所述确定单元601确定各所述区块中存储的各业务数据的数据标识,包括:In another embodiment of the present application, the determining unit 601 determines the data identifier of each service data stored in each block, including:
针对各所述区块中存储的各业务数据,分别执行:For each business data stored in each block, execute respectively:
根据该业务数据的哈希值,确定该业务数据的数据标识。The data identifier of the business data is determined according to the hash value of the business data.
在本申请的另一个实施例中,所述数据处理设备还包括:第二创建单元605,其中:In another embodiment of the present application, the data processing device further includes: a second creating unit 605, wherein:
所述第二创建单元605,在得到该业务数据的数据标识后,建立该业务数据的数据标识与该业务数据所存储在的区块的区块标识之间的第二对应关系;The second creating unit 605, after obtaining the data identifier of the business data, establishes a second correspondence between the data identifier of the business data and the block identifier of the block in which the business data is stored;
将所述第二对应关系存储至业务数据表中。The second corresponding relationship is stored in the business data table.
在本申请的另一个实施例中,所述处理单元602建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,包括:In another embodiment of the present application, the processing unit 602 establishes a mapping relationship between the block identifier of the block and the data identifier of each of the business data stored in the block, including:
根据所述区块数据表中包含的所述第一对应关系和所述业务数据表中包含的所述第二对应关系,基于区块标识,建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系。According to the first corresponding relationship contained in the block data table and the second corresponding relationship contained in the business data table, based on the block identifier, a mapping relationship between the block identifier of the block and the data identifier of each business data stored in the block is established.
在本申请的另一个实施例中,所述数据处理设备还包括:同步单元606,其中:In another embodiment of the present application, the data processing device further includes: a synchronization unit 606, wherein:
所述同步单元606,在新的区块产生时,确定新产生的区块的区块标识;并根据新产生的所述区块的区块标识,更新所述区块数据表和/或所述关系数据库。The synchronization unit 606 determines the block identifier of the newly generated block when a new block is generated; and updates the block data table and/or the relational database according to the block identifier of the newly generated block.
在本申请的另一个实施例中,所述数据处理设备还包括:更新单元607,其中:In another embodiment of the present application, the data processing device further includes: an updating unit 607, wherein:
所述更新单元607,在新的业务数据产生时,确定新产生的业务数据的数据标识;并在将新的业务数据存储至区块时或后,建立新产生的业务数据的数据标识与所存储区块的区块标识之间的映射关系;The updating unit 607 determines the data identifier of the newly generated business data when new business data is generated; and establishes a mapping relationship between the data identifier of the newly generated business data and the block identifier of the stored block when or after storing the new business data in the block;
根据所述映射关系,更新所述业务数据表和/或所述关系数据库。According to the mapping relationship, the business data table and/or the relational database is updated.
需要说明的是,本申请实施例所提供的数据处理设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。该数据处理设备通过将区块链网络中存储的业务数据由非关系性数据转换成为关系型数据,并存储至关系型数据库中,提升了区块链网络中数据存储的可靠性,借助关系型数据库,有助于提高区块链网络的数据分析、数据计算等事务处理能力,改善区块链网络的系统能力。It should be noted that the data processing device provided in the embodiments of the present application can be implemented by software or hardware, and is not specifically limited here. The data processing device converts the business data stored in the blockchain network from non-relational data to relational data and stores it in a relational database, thereby improving the reliability of data storage in the blockchain network. With the help of the relational database, it helps to improve the transaction processing capabilities of the blockchain network, such as data analysis and data calculation, and improves the system capabilities of the blockchain network.
基于同一个发明构思,本申请实施例还提供了一种基于区块链的数据处理设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置成由所述至少一个处理器执行以下步骤:Based on the same inventive concept, an embodiment of the present application further provides a blockchain-based data processing device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured such that the at least one processor executes the following steps:
确定区块链网络中各区块的区块标识;Determine the block identifier of each block in the blockchain network;
确定各所述区块中存储的各业务数据的数据标识;Determining the data identifier of each business data stored in each of the blocks;
针对各所述区块,分别建立该区块的区块标识与该区块中存储的各所述业务数据的数据标识之间的映射关系,并将所述映射关系存储至关系数据库中。For each of the blocks, a mapping relationship is established between the block identifier of the block and the data identifier of each of the business data stored in the block, and the mapping relationship is stored in a relational database.
在本申请实施例中,处理器还可以按照上述实施例中记载的方案执行,这里不再一一赘述。In the embodiment of the present application, the processor can also execute according to the scheme recorded in the above embodiment, which will not be repeated here.
因此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。Thus, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18107749.9A HK1248841B (en) | 2018-06-14 | Data processing method and equipment based on blockchain |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18107749.9A HK1248841B (en) | 2018-06-14 | Data processing method and equipment based on blockchain |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1248841A1 HK1248841A1 (en) | 2018-10-19 |
| HK1248841B true HK1248841B (en) | 2021-04-01 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI718375B (en) | Data processing method and equipment based on blockchain | |
| TWI748175B (en) | Data processing method, device and equipment | |
| JP6804668B2 (en) | Block data validation method and equipment | |
| CN107247749B (en) | A database state determination method, consistency verification method and device | |
| CN110134668B (en) | Data migration method, device and equipment applied to blockchain | |
| CN108418851B (en) | Policy publishing system, method, apparatus and device | |
| WO2018177250A1 (en) | Block chain based data processing method and device | |
| CN109241026B (en) | Method, device and system for data management | |
| CN111078205B (en) | A modular programming method, device, storage medium and electronic equipment | |
| WO2020125224A1 (en) | Data structure reading method and apparatus, data structure updating method and apparatus, and electronic device | |
| CN114547024A (en) | A SQL statement risk detection method, device, equipment and medium | |
| TW201917571A (en) | Information processing method, apparatus, and device | |
| CN110399359A (en) | A kind of data retrogressive method, device and equipment | |
| TW201933812A (en) | Data processing method, apparatus and device | |
| WO2024066009A1 (en) | State verification method and apparatus in blockchain system, and node and blockchain | |
| CN115617799A (en) | Method, device, equipment and storage medium for data storage | |
| CN115934161A (en) | Method, device and equipment for impact analysis of code changes | |
| WO2024066007A1 (en) | Transaction execution method in blockchain system, consensus node, and blockchain system | |
| CN111967269B (en) | Business risk identification method, device and electronic equipment | |
| WO2025139351A1 (en) | Calling of smart contract | |
| WO2025139355A1 (en) | Code analysis | |
| HK1248841B (en) | Data processing method and equipment based on blockchain | |
| CN116302219B (en) | Data stream batch processing method, device, equipment and medium | |
| CN116827970A (en) | Data management method based on block chain system and block chain link point | |
| CN118378006A (en) | A method, device and equipment for evaluating traceability data |