Flow type service data uplink processing method and device and medium
By building child chains and parent chains in the blockchain and recording circulation business data, the problem of lack of clear and complete recording of chains in the processing of circulation business data is solved, efficient data query and verification are achieved, and data is ensured. Integrity and immutability.
Patent Information
- Application Number
- CN202410985295.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-29
AI Technical Summary
The lack of clear, complete and difficult to tamper with the record chain in the prior art to process the full process information of the circulating object, resulting in low efficiency in on-chain processing of data for circulating business and difficult to trace data.
By building a child chain and a parent chain in the blockchain, recording the flow data of the on-chain object, and recording the flowing business data association information through the interaction between the child chain and the parent chain, ensuring that all data is on-chain, ensuring the integrity of the data and Improperty.
It realizes clear and complete recording of circulating business data, improves the efficiency of data query, traceability, statistics and verification, and ensures the efficiency and credibility of data.
Smart Images

Figure CN119046337A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure at least relates to the field of blockchain technology, and in particular to a method for processing circulating business data on-chain, a device for processing circulating business data on-chain, and a computer-readable storage medium. Background Art
[0002] In recent years, blockchain technology has been applied to scenarios such as electronic evidence storage, product traceability, supply chain tracking, and data rights confirmation. For example, in scenarios such as agricultural product / drug traceability, product logistics, and e-government, it is necessary to process the entire process of the flow data of a single specific object such as an item, a document, or a transaction on the chain. At present, for the chain processing of the data of the circulation object, there is a lack of a clear, complete, and difficult-to-tamper record chain to process the entire process information of the object. Therefore, it is necessary to find a new chain processing method to process the entire process of the circulation data. Summary of the invention
[0003] The technical problem to be solved by the present disclosure is to provide a method for processing circulating business data on a chain, a device for processing circulating business data on a chain, and a computer-readable storage medium in response to the above-mentioned deficiencies, so as to solve the problem of how to construct a clear, complete, and difficult-to-tamper record chain for circulating business data.
[0004] In a first aspect, the present disclosure provides a method for processing flow-type business data on a chain, the method comprising:
[0005] In response to the transfer of the on-chain object, the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer are obtained, and the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer are recorded in the sub-chain block of the current transfer;
[0006] The on-chain object identifier and the sub-chain block identifier of this transfer are sent to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of this transfer in the parent chain block of this transfer.
[0007] Furthermore, the sub-chain block identifier of the last transfer of the on-chain object, the business data of this transfer, and the parent chain block information of the last transfer are obtained, including:
[0008] Get the object number on the chain and the business data of this transaction;
[0009] According to the object number on the chain, obtain the hash value of the last circulated child chain block from the child chain, and obtain the hash value, height value and sequence value of the last circulated parent chain block from the parent chain;
[0010] The subchain block for this circulation is selected according to the business data of this circulation, and the hash value of the subchain block for this circulation is generated.
[0011] Furthermore, the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer are recorded in the sub-chain block of the current transfer, specifically including:
[0012] Record the first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the currently circulated subchain block in the block header of the currently circulated subchain block;
[0013] The block body of the sub-chain block being transferred this time records: the on-chain object number, the hash value and the first current time of the sub-chain block being transferred this time, the hash value, height value and sequence value of the parent chain block that was transferred last time, and the business data of this transfer;
[0014] In the sub-chain, nodes reach consensus on the data recorded in the sub-chain block of this circulation.
[0015] Furthermore, the on-chain object identifier and the sub-chain block identifier of this transfer are sent to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of this transfer in the parent chain block of this transfer, specifically including:
[0016] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain, so that the parent chain:
[0017] In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number.
[0018] The second timestamp of the second current time, the hash value of the last circulated parent chain block and the hash value of the current circulated parent chain block are recorded in the block header of the current circulated parent chain block.
[0019] The object number of the chain, the hash value of the sub-chain block of this transfer, and the first current time are recorded in the block body of the parent chain block of this transfer.
[0020] In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
[0021] Furthermore, the method further comprises:
[0022] In response to receiving a query request for an on-chain object from a user node, the data recorded in the sub-chain block is sent to the user node, so that the user node determines whether the data recorded in the sub-chain block corresponds to the data recorded in the parent chain block.
[0023] In a second aspect, the present disclosure provides a method for processing flow-type business data on a chain, the method comprising:
[0024] Receive the upchain object identifier and the subchain block identifier of the upchain object that is currently being transferred from the subchain. The upchain object identifier and the subchain block identifier of the current transfer are sent to the parent chain after the subchain responds to the transfer of the upchain object and records the subchain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the child chain block of the current transfer;
[0025] Get the parent chain block ID of the last transfer of the on-chain object, and record the parent chain block ID of the last transfer, the on-chain object ID and the sub-chain block ID of the current transfer in the parent chain block of the current transfer.
[0026] Furthermore, before receiving the on-chain object identifier from the sub-chain and the sub-chain block identifier of the current transfer of the on-chain object, the method further includes:
[0027] In response to receiving a request from the child chain to obtain the hash value, height value and sequence value of the last circulated parent chain block, a request to obtain the hash value, height value and sequence value of the last circulated parent chain block is sent to the child chain, so that the child chain:
[0028] The first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the current circulated subchain block are recorded in the block header of the current circulated subchain block.
[0029] The block body of the sub-chain block that is being transferred this time records: the object number on the chain, the hash value and the first current time of the sub-chain block that is being transferred this time, the hash value, height value and sequence value of the parent chain block that was last transferred, and the business data of this transfer.
[0030] In the sub-chain, the nodes reach consensus on the data recorded in the sub-chain block of this circulation.
[0031] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain.
[0032] Furthermore, the parent chain block identifier of the last transfer of the on-chain object is obtained, and the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of the current transfer are recorded in the parent chain block of the current transfer, specifically including:
[0033] In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number;
[0034] Record the second timestamp of the second current time, the hash value of the last circulated parent chain block, and the hash value of the currently circulated parent chain block in the block header of the currently circulated parent chain block;
[0035] Record the on-chain object number, the hash value of the child chain block being circulated, and the first current time in the block body of the parent chain block being circulated this time;
[0036] In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
[0037] Furthermore, the method further comprises:
[0038] In response to receiving a query request for an on-chain object from a user node, the data recorded in the parent chain block is sent to the user node so that the user node determines whether the data recorded in the child chain block corresponds to the data recorded in the parent chain block.
[0039] In a third aspect, the present disclosure provides a device for processing flow-type service data on a chain, the device comprising:
[0040] A first recording unit is used to obtain the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer in response to the transfer of the on-chain object, and record the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer;
[0041] The first sending unit is connected to the first recording unit, and is used to send the on-chain object identifier and the sub-chain block identifier of the current circulation to the parent chain, so that the parent chain obtains the parent chain block identifier of the last circulation of the on-chain object, and records the parent chain block identifier of the last circulation, the on-chain object identifier and the sub-chain block identifier of the current circulation in the parent chain block of the current circulation.
[0042] In a fourth aspect, the present disclosure provides a device for processing flow-type business data on a chain, the device comprising:
[0043] A second receiving unit is used to receive the up-chain object identifier and the sub-chain block identifier of the up-chain object that is currently transferred from the sub-chain. The up-chain object identifier and the sub-chain block identifier of the current transfer are sent to the parent chain after the sub-chain responds to the transfer of the up-chain object and records the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer.
[0044] The second recording unit is connected to the second receiving unit, and is used to obtain the parent chain block identifier of the last circulation of the on-chain object, and record the parent chain block identifier of the last circulation, the on-chain object identifier and the child chain block identifier of the current circulation in the parent chain block of the current circulation.
[0045] In a fifth aspect, the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for processing flow-type business data on the chain as described above is implemented.
[0046] The present disclosure provides a method for processing circulating business data on-chain, a device for processing circulating business data on-chain, and a computer-readable storage medium. The business data of this circulation is recorded through a sub-chain, and the association information of the sub-chain block and the parent chain block of the last circulation is recorded, and the sub-chain block information of this circulation is recorded in the parent chain. The sub-chain and the parent chain interactively record the association information of the circulating business data, so as to ensure that all data are on-chain and the data is difficult to be tampered with. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flow chart of a method for processing flow-type business data on-chain according to an embodiment of the present disclosure;
[0048] Figure 2 It is an interactive schematic diagram of a method for processing flow-type business data on-chain according to an embodiment of the present disclosure;
[0049] Figure 3 It is a schematic diagram of a system for processing flow-type business data on-chain according to an embodiment of the present disclosure;
[0050] Figure 4 This is a schematic diagram of a method for processing the subchain of the flow-type business data in the embodiment of the present disclosure. Figure 1 ;
[0051] Figure 5 This is a schematic diagram of a method for processing the subchain of the flow-type business data in the embodiment of the present disclosure. Figure 2 ;
[0052] Figure 6 This is a schematic diagram of a method for processing the subchain of the flow-type business data in the embodiment of the present disclosure. Figure 3 ;
[0053] Figure 7 This is a schematic diagram of a method for processing the parent chain of flow-type business data in an embodiment of the present disclosure. Figure 1 ;
[0054] Figure 8 This is a schematic diagram of a method for processing the parent chain of flow-type business data in an embodiment of the present disclosure. Figure 2 ;
[0055] Fig. 9 This is a schematic diagram of a method for processing the parent chain of flow-type business data in an embodiment of the present disclosure. Figure 3 ;
[0056] Fig.10It is a flowchart of another method for processing flow-type business data on-chain according to an embodiment of the present disclosure;
[0057] Fig.11 It is a structural diagram of a device for processing flow-type business data on-chain according to an embodiment of the present disclosure;
[0058] Fig.12 It is a structural diagram of another device for processing uplink of flow-type business data according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0059] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0060] It should be understood that the specific embodiments and drawings described herein are only used to explain the present disclosure rather than to limit the present disclosure.
[0061] It can be understood that, in the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments can be combined with each other.
[0062] It can be understood that, for the convenience of description, the drawings of the present disclosure only show parts related to the present disclosure, while parts irrelevant to the present disclosure are not shown in the drawings.
[0063] It can be understood that each unit or unit involved in the embodiments of the present disclosure may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units or units may be integrated into one physical structure.
[0064] It will be understood that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present disclosure may occur in an order different from that marked in the drawings.
[0065] It is understood that the flowcharts and block diagrams of the present disclosure illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the embodiments of the present disclosure. Each box in the flowchart or block diagram may represent a unit, unit, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0066] It can be understood that the units and units involved in the embodiments of the present disclosure can be implemented by software or hardware, for example, the units and units can be located in a processor.
[0067] Embodiment 1:
[0068] like Figure 1 As shown, the present disclosure provides a method for processing flow-type business data on-chain, the method comprising:
[0069] S11. In response to the transfer of the on-chain object, the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer are obtained, and the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer are recorded in the sub-chain block of the current transfer;
[0070] S12. Send the on-chain object identifier and the sub-chain block identifier of this transfer to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of this transfer in the parent chain block of this transfer.
[0071] In this embodiment, the method can be applied to the sub-chain nodes of the blockchain, and the business data of this circulation is recorded through the sub-chain, and the association information of the sub-chain block and the parent chain block of the last circulation is recorded, and the sub-chain block information of this circulation is recorded in the parent chain. The sub-chain and the parent chain interactively record the association information of the circulation business data to ensure that all data are on the chain and the data is difficult to tamper with.
[0072] Specifically, in the process of constructing a blockchain for the on-chain processing of the data of a circulating object, since the on-chain object may go through multiple different circulation processing links, and since the circulation time span of each link is relatively long, the circulation data of different links of the on-chain object (including direct and indirect processing) may be recorded in different blocks on the chain. When it is necessary to perform business processing (query, statistics, analysis, tracing, verification, etc.) on the circulation data of the on-chain object, it is necessary to find the block where the circulation data of each link is located on the chain, and find the on-chain record of the data on different blocks. This process is very complicated and inefficient.
[0073] In order to solve the above-mentioned various problems existing in the chain processing of circulation business data, the present embodiment provides a chain processing method for circulation business data, including: the first step is to establish a child chain (gradually formed) for the object to be chained (an item, a document, a transaction...); the second step is to establish a parent chain shared by all chained objects; the third step is to hash the data of each circulation process of the chained object first; the fourth step is to upload the circulation data of the chained object in each process and the child chain information (block height, hash value, etc.) to the block body of the parent chain; the fifth step is to finally record the block height and hash value of the parent chain where the child chain of the chained object is located in the basic information (library) of the object to meet the processing requirements such as query, statistics, analysis, tracing, and verification.
[0074] The method uses blockchain technology to record the data of circulation business objects, builds a clear, complete and untampered real record chain for each business object, quickly grasps the full process information of the object, helps users in all links to process business data efficiently, accurately and reliably, and uses the data of the business object sub-chain and the parent chain (including the business data of the chained object and the block information after being chained) to interact, ensure that all data is chained, ensure that the data is difficult to tamper with, and facilitate faster query, tracking, statistics, analysis and other processing of the data.
[0075] In one embodiment, obtaining the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer specifically includes:
[0076] Get the object number on the chain and the business data of this transaction;
[0077] According to the object number on the chain, obtain the hash value of the last circulated child chain block from the child chain, and obtain the hash value, height value and sequence value of the last circulated parent chain block from the parent chain;
[0078] The subchain block for this circulation is selected according to the business data of this circulation, and the hash value of the subchain block for this circulation is generated.
[0079] In this embodiment, each block is identified by a hash value, which can be a Merkle tree root hash value of the block body, which is unique and related to the recorded data. In addition to the business flow status, the business data of this circulation also records the corresponding chain object number, the time when the business flow occurs (the first current time), the blockchain version number, the block body size and other necessary chain information. The chain object number can be used as the basis for sub-chain and parent chain connection query. The parent chain block information of the last circulation includes not only the hash value, but also the height value and sequence value. The sub-chain block of this circulation can be generated in the node through the election method.
[0080] In one implementation, the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer are recorded in the sub-chain block of the current transfer, specifically including:
[0081] Record the first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the currently circulated subchain block in the block header of the currently circulated subchain block;
[0082] The block body of the sub-chain block being transferred this time records: the on-chain object number, the hash value and the first current time of the sub-chain block being transferred this time, the hash value, height value and sequence value of the parent chain block that was transferred last time, and the business data of this transfer;
[0083] In the sub-chain, nodes reach consensus on the data recorded in the sub-chain block of this circulation.
[0084] In this embodiment, if Figure 2 As shown, each block of the child chain and the parent chain includes two parts: a block header and a block body. For any new block of a child chain, the new block header part needs to obtain the hash value of the previous child chain block header, the Merkle tree root hash value of the block body, the current time (timestamp) and other necessary information (version number, size), etc. from the previous child chain block, and record them in the block header of this child chain block; the block body of this child chain block contains two parts of content, the chain object number and its latest status data (business flow data), and the hash value of the previous parent chain block header that records the hash value of the previous child chain block obtained from the parent chain, the block height and the arrangement order value; finally, the child chain verifies the authenticity, integrity and validity of the business data to reach a node consensus, and uploads the chain object number, the hash value of the current child chain block header and the current time (timestamp) to the parent chain, so that the parent chain packages them and records them in the new parent chain block.
[0085] In one embodiment, the on-chain object identifier and the sub-chain block identifier of the current transfer are sent to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of the current transfer in the parent chain block of the current transfer, specifically including:
[0086] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain, so that the parent chain:
[0087] In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number.
[0088] The second timestamp of the second current time, the hash value of the last circulated parent chain block and the hash value of the current circulated parent chain block are recorded in the block header of the current circulated parent chain block.
[0089] The object number of the chain, the hash value of the sub-chain block of this transfer, and the first current time are recorded in the block body of the parent chain block of this transfer.
[0090] In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
[0091] In this embodiment, if Figure 2 As shown, a method for processing flow-type business data on a chain includes the following steps:
[0092] 1) Subchain for on-chain objects: A subchain is established for the objects to be on-chain (gradually formed).
[0093] 1.1) A node on the chain records the initial flow data of the object to be chained and other necessary information for the chain (such as timestamp, version number) into a block, selects a suitable hash function to obtain the hash value of the block, and after the nodes on the chain verify the authenticity and validity of the data, they reach a consensus and use the block as the initial block (the first block) of the subchain of the chained object. After that, the hash value will be placed in the next block header, and the previous block and the next block will form a "chain" relationship through the hash value.
[0094] 1.2) When the circulation status of the object to be chained changes, the business node on the chain puts the new business circulation data, the hash value of the block header of the previous circulation link and other necessary information of the chain into the new block. The business data is the new data generated by the business node when handling the business. The hash value of the previous block header can be directly obtained from the previous block, and the hash value of the current block is calculated. After the node consensus, a new block on the chain is formed, and this hash value is placed in the next block.
[0095] 1.3) In this way, the hash value of the upper block is used as the link between the upper and lower blocks, and finally a sub-chain of the object of the flow data chain is formed.
[0096] 2) Parent chain of on-chain objects: Establish a parent chain shared by all on-chain objects.
[0097] 2.1) Put the status information of several groups of sub-chains of the on-chain objects described in 1) and the hash values of their block headers into the block body of a new block to be packaged, and set the packaged data entry or package cycle. When the block body packaging requirements are met, calculate the Merkle tree root hash of the block body. After consensus among the on-chain nodes, use this block as the initial block of the parent chain, and put the hash value of this block header into the next block header.
[0098] 2.2) As the circulation status of different objects on the chain continues to change, the circulation information of different object sub-chains and their block header hash values are continuously uploaded to the new block to be packaged on the parent chain. When the set packaging data entry or packaging cycle is reached, the hash value of the block header on the parent chain is combined to form a new block, and the hash value of the block header is calculated. After the node consensus, the block on the chain is formed.
[0099] 2.3) In this way, the hash value of the upper block is used as the link between the upper and lower blocks, and finally the parent chain of the circulating data chain object is formed.
[0100] 3) The relationship between the sub-chain and the parent chain: the information interaction record between the sub-chain and the parent chain.
[0101] 3.1) The flow data status information of several on-chain object sub-chains and the block information of their block header hash values are transmitted to the parent chain. Taking the mth block of the parent chain as an example, the block body saves the block header hash value and time information of the on-chain object number A and the state of a certain business flow; the block header hash value and time information of the on-chain object number C and the state of a certain business flow, the block header hash value and time information of the on-chain object number B and the state of a certain business, etc. For example, the information of the n-1th block in a sub-chain is uploaded to the m-1th block body of the parent chain, and the information of the nth block in the sub-chain is uploaded to the m+1th block of the parent chain.
[0102] 3.2) Any sub-chain block information record is recorded on the parent chain, and each record will be uploaded to the next block body of the related sub-chain, bidirectionally linking the sub-chain and the parent chain. For example, a record of the m-1th block in the parent chain is uploaded to the nth block body of the sub-chain, and a piece of information of the m+1th block is uploaded to the n+1th block body of the sub-chain.
[0103] The business data (after preprocessing) and the hash value of the previous block are uploaded to the current block to be packaged (quasi-block), packaged together with other necessary information of the block, and the hash value of the current block is calculated through the hash function. After consensus is reached by all nodes on the chain, a block on the chain is formed. The hash value of the previous block is used as a "bond" to connect all blocks on a chain to build a block "chain". The unique properties of the hash function, such as determinism, uniformity, and irreversibility, can be used to make the data on the chain easy to verify but difficult to tamper with. The construction method of the "chain" can be used to realize the storage and traceability of business data. At the same time, the distributed storage of the blockchain can also be used to enable the nodes on the chain to view the record information on the chain.
[0104] The current circulation data of an object is uploaded directly or indirectly (through compression, desensitization, encryption, etc.) to the current block to be packaged on the parent chain; when the data received by the block (including other on-chain object data) reaches the agreed amount or reaches the deadline for packaging, the system immediately packages the block (including the hash value of the previous block (if any) and other necessary block information data), obtains the hash value of the blockchain through the hash function, and forms a new block on the chain after the nodes reach a consensus; the hash value of the block is recorded in the next block, and in this way, the blockchain of the scenario is finally formed; with the end of the object circulation, the data of the entire process of the object is finally completed on the chain.
[0105] The status of a business flow of the on-chain object number A refers to what the business number A has done on the node and what state the business flow is in, such as application, approval, circulation, end, etc. When a sub-chain completes the packaging of a block, it is immediately uploaded to the block body of the parent chain. At the same time, each node records the sub-chain. How each node strives for the right to package can be through rewards, incentives, etc. After the sub-chain completes the packaging, it will immediately upload the latest business state, block header hash value and timestamp on the sub-chain to the parent chain block body, arrange them by timestamp time, and finally decide the end of packaging based on the packaging time or packaging quantity limit of the parent chain. When recording information in the sub-chain block, it needs to obtain the record information of the previous block in the parent chain from the parent chain.
[0106] In one embodiment, the method further comprises:
[0107] In response to receiving a query request for an on-chain object from a user node, the data recorded in the sub-chain block is sent to the user node, so that the user node determines whether the data recorded in the sub-chain block corresponds to the data recorded in the parent chain block.
[0108] In this embodiment, if Figure 3 As shown, a flow data processing system can also be provided, which is mainly composed of the following modules:
[0109] 4.1) User information module, users include:
[0110] 4.1.1) Manage users, whose rights include creating a directory for on-chain object transfer orders, formulating transfer processes, creating a parent chain for on-chain object transfers, managing node users (including creation / query / modification / deletion, etc.), reviewing on-chain object sub-chain creation applications submitted by node users, managing sub-chain and parent chain information distribution, etc.
[0111] 4.1.2) Node users: permissions include maintaining basic node user information, viewing the entire process of on-chain object transfer, applying to create an on-chain object (transfer order number) sub-chain, generating an object sub-chain number, one transfer business corresponds to a unique object sub-chain number, applying for parent chain block information sharing permissions, processing completed and pending messages, etc.
[0112] 4.2) Flow processing module, functions include:
[0113] 4.2.1) Record information, a summary table of on-chain object transfer information, and real-time display of basic information (library) on the transfer status of all on-chain objects under the user.
[0114] 4.2.2) View information. You can query the specific content of the on-chain object transfer order by the transfer order number (including the transfer time of each link, the transfer operator, the transfer data (including the latest status), the sub-chain block height (value) and its hash value, the parent chain block height (value) and the sequence value of the block, the sub-chain transfer order information, etc.).
[0115] 4.2.3) Information processing can be used to transfer the next link of a certain on-chain object. After the operation, a new block of the object sub-chain of the transfer order is formed, and the transfer order number, the latest transfer status information, block hash value, timestamp and other data are immediately synchronized to the latest block of the parent chain.
[0116] 4.2.4) Feedback information: After the parent chain block is packaged and hashed, the block height (value) of the parent chain where the on-chain object transfer order is located and the sequence value of the area where it is located will be recorded, and the basic information (library) of the on-chain object will also be updated.
[0117] 4.3) Flow data statistics module, statistical methods include:
[0118] 4.3.1) Management users can count the number of node users, the status distribution of the sub-chain (each link) of the on-chain object, the parent chain block height, and the number of user status of each node.
[0119] 4.3.2) Node users can count the number of on-chain object transfer orders and sub-chain statuses they have processed, including the number of statistics under different link states (including newly created sub-chains), and the number of completed or pending items.
[0120] 4.4) Flow data link module, including:
[0121] 4.4.1) Data circulation subchain, functions include:
[0122] 4.4.1.1) Object subchain block query: By searching for the unique subchain number or business flow name of the object corresponding to a certain business, you can query the flow data information of each link of the on-chain object (for example: hash value, subchain block height (value), parent chain blockchain height (value) and its order and other flow information).
[0123] 4.4.1.2) The object sub-chain blocks are increased, and the data flow functions of each object are connected with the sub-chain and the parent chain. That is, when the flow data of the object changes, a new block will be automatically formed, and the relevant information of the block on the sub-chain and the relevant information of the parent chain block will be imported. After confirmation, a new block hash will be formed and uploaded to the parent chain.
[0124] 4.4.1.3) Object sub-chain block traceability: By querying the information of each link of the object sub-chain on the chain, all previous circulation process information can be queried.
[0125] 4.4.2) Data transfer parent chain, functions include:
[0126] 4.4.2.1) Parent chain block query: By searching the sub-chain number, parent chain block height (value), etc., you can query the record information of the flow data of the on-chain object on the parent chain.
[0127] 4.4.2.2) Parent chain block update, connect the sub-chains of each data flow module with the parent chain, that is, when the data of the flow order changes, each sub-chain block and its hash value are automatically uploaded to the parent chain. When the number or time period of the blocks in the parent chain reaches the established requirements, it is automatically packaged to form a new block on the parent chain.
[0128] More specifically, for example Figure 4-9 As shown, Figure 4-6 Record the process of subchain circulation. Figure 7-9 The process of recording the parent chain circulation is described in detail as follows:
[0129] like Figure 4 As shown, the initial flow data of an object to be chained and other basic data of the chain are recorded in a quasi-block, and a suitable hash function is selected to obtain the hash value of the block. After node consensus, the block is used as the first block of the sub-chain of the chained object, and the block information (including basic status information, hash value, etc.) is uploaded to the XXth block of the parent chain; the block body information of the second block includes the blockchain hash value of the first block and its height value sequence number value in the XXth block of the parent chain; the same is true for the third block.
[0130] like Figure 5 As shown, when the nth circulation state of the object to be chained changes, the new circulation data, the hash value of the n-1th block, the block height of the XXth block of the child chain in the parent chain, and other basic data of the child chain block are recorded in the nth quasi-block, and the hash value of the current block is calculated. After the node consensus, an nth block on the child chain is formed, and at the same time, this block information (including basic state information, hash value, etc.) is uploaded to another XX block of the parent chain; the hash value of the nth block and its block height and sequence value in the parent chain will be passed to the n+1th quasi-block.
[0131] like Figure 6 As shown, according to this method, the hash value of the block on the child chain is used as the link between the upper and lower blocks. At the same time, the block contains information such as the block height value of the state in the parent chain, and finally forms the child chain of the flow data on-chain object until the end of the mth block, then this child chain is saved in a block of the parent chain.
[0132] like Figure 7As shown, the status information, hash values and other basic chain data of several groups of on-chain object sub-chains are recorded in the first quasi-block, and the packaged data entries or packaged cycles are set. When the entries or time in the block body meet the block packaging requirements, the hash value of the block is calculated. After the node consensus, this block is used as the first block of the parent chain, and the hash value is placed in the next block; the block body information of the second block in the parent chain includes the blockchain hash value of the first block and the information of each on-chain sub-chain (number, hash value and time, etc.), and the block height value and the sequence value in the block body are fed back to each sub-chain; the same is true for the third block.
[0133] like Figure 8 As shown in the figure, as the circulation status of different objects on the chain continues to change, the circulation information of different object sub-chains and their block hash values are continuously uploaded to the new quasi-block of the parent chain (assuming it is the mth one). When the set packaged data entry or package cycle is reached, the hash value of the m-1th block of the parent chain is combined to form the mth quasi-block, and the hash value of the block is calculated. After the node consensus, the mth block on the chain is formed. The block body information of the m+1th block contains the blockchain hash value of the mth block and the information of each sub-chain on the chain (number, hash value and time, etc.), and at the same time, the block height value and the sequence value in the block body are fed back to each sub-chain on the chain.
[0134] like Fig. 9 As shown, in this way, the hash value of the upper block is used as the link between the upper and lower blocks, and finally the parent chain of the upper chain object is formed. Until the e-th block of the upper chain object sub-chain is packed, the E-th block of the parent chain is completed and the parent chain ends.
[0135] In this embodiment, the subchain is relatively independent from the parent chain. Through the interaction between the subchain and the parent chain, the subchain data to be uploaded and the block information of the subchain are transmitted to the parent chain, and the parent chain returns the block information of the subchain, so as to achieve the interaction between the subchain and the parent chain, forming a close relationship between the parent and the subchain, thereby improving the integrity, tamper-proof and high efficiency of the data uploaded to the subchain. The method of this embodiment can be applied to the underlying functions of blockchains for various types of data uploaded to the chain, and provide protection for blockchain-related system products for on-chain evidence storage.
[0136] Embodiment 2:
[0137] like Fig.10 As shown, the present disclosure provides a method for processing flow-type business data on-chain, the method comprising:
[0138] S21, receiving the up-chain object identifier and the sub-chain block identifier of the up-chain object in this transfer from the sub-chain, where the up-chain object identifier and the sub-chain block identifier of this transfer are sent to the parent chain after the sub-chain responds to the up-chain object transfer, records the sub-chain block identifier of the last transfer, the business data of this transfer, and the parent chain block information of the last transfer in the sub-chain block of this transfer;
[0139] S22. Obtain the parent chain block identifier of the last transfer of the on-chain object, and record the parent chain block identifier of the last transfer, the on-chain object identifier, and the sub-chain block identifier of the current transfer in the parent chain block of the current transfer.
[0140] In this embodiment, the method can be applied to the parent chain node of the blockchain. Through the interaction between the parent chain and the child chain, the child chain records the business data of this circulation, and records the association information of the child chain block and the parent chain block of the last circulation, and the child chain block information of this circulation is recorded in the parent chain. The child chain and the parent chain interact to record the association information of the circulation business data, ensuring that all data are on the chain and that the data is difficult to tamper with.
[0141] In one embodiment, before receiving the on-chain object identifier and the on-chain block identifier of the on-chain object currently transferred from the sub-chain, the method further includes:
[0142] In response to receiving a request from the child chain to obtain the hash value, height value and sequence value of the last circulated parent chain block, a request to obtain the hash value, height value and sequence value of the last circulated parent chain block is sent to the child chain, so that the child chain:
[0143] The first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the current circulated subchain block are recorded in the block header of the current circulated subchain block.
[0144] The block body of the sub-chain block that is being transferred this time records: the object number on the chain, the hash value and the first current time of the sub-chain block that is being transferred this time, the hash value, height value and sequence value of the parent chain block that was last transferred, and the business data of this transfer.
[0145] In the sub-chain, the nodes reach consensus on the data recorded in the sub-chain block of this circulation.
[0146] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain.
[0147] In one embodiment, the parent chain block identifier of the last transfer of the on-chain object is obtained, and the parent chain block identifier of the last transfer, the on-chain object identifier, and the sub-chain block identifier of the current transfer are recorded in the parent chain block of the current transfer, specifically including:
[0148] In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number;
[0149] Record the second timestamp of the second current time, the hash value of the last circulated parent chain block, and the hash value of the currently circulated parent chain block in the block header of the currently circulated parent chain block;
[0150] Record the on-chain object number, the hash value of the child chain block being circulated, and the first current time in the block body of the parent chain block being circulated this time;
[0151] In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
[0152] In one embodiment, the method further comprises:
[0153] In response to receiving a query request for an on-chain object from a user node, the data recorded in the parent chain block is sent to the user node so that the user node determines whether the data recorded in the child chain block corresponds to the data recorded in the parent chain block.
[0154] Embodiment 3:
[0155] like Fig.11 As shown, the present disclosure provides a device for processing flow-type service data on a chain, the device comprising:
[0156] The first recording unit 11 is used to obtain the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer in response to the transfer of the on-chain object, and record the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer;
[0157] The first sending unit 12 is connected to the first recording unit 11, and is used to send the on-chain object identifier and the sub-chain block identifier of the current circulation to the parent chain, so that the parent chain obtains the parent chain block identifier of the last circulation of the on-chain object, and records the parent chain block identifier of the last circulation, the on-chain object identifier and the sub-chain block identifier of the current circulation in the parent chain block of the current circulation.
[0158] In one implementation, the first recording unit 11 includes a first obtaining unit, which is specifically configured to:
[0159] Get the object number on the chain and the business data of this transaction;
[0160] According to the object number on the chain, obtain the hash value of the last circulated child chain block from the child chain, and obtain the hash value, height value and sequence value of the last circulated parent chain block from the parent chain;
[0161] The subchain block for this circulation is selected according to the business data of this circulation, and the hash value of the subchain block for this circulation is generated.
[0162] In one implementation, the first recording unit 11 specifically includes:
[0163] A first block header recording unit, used to record a first timestamp of a first current time, a hash value of a last circulated sub-chain block, and a hash value of a currently circulated sub-chain block in a block header of the currently circulated sub-chain block;
[0164] The first block body recording unit is used to record in the block body of the sub-chain block that is being circulated this time: the on-chain object number, the hash value and the first current time of the sub-chain block that is being circulated this time, the hash value, height value and sequence value of the parent chain block that was circulated last time, and the business data of this time;
[0165] The first node consensus unit is used to perform node consensus on the data recorded in the sub-chain block of this circulation in the sub-chain.
[0166] In one implementation, the first sending unit 12 is specifically configured to:
[0167] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain, so that the parent chain:
[0168] In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number.
[0169] The second timestamp of the second current time, the hash value of the last circulated parent chain block and the hash value of the current circulated parent chain block are recorded in the block header of the current circulated parent chain block.
[0170] The object number of the chain, the hash value of the sub-chain block of this transfer, and the first current time are recorded in the block body of the parent chain block of this transfer.
[0171] In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
[0172] In one embodiment, the device further includes a first query response unit, configured to:
[0173] In response to receiving a query request for an on-chain object from a user node, the data recorded in the sub-chain block is sent to the user node, so that the user node determines whether the data recorded in the sub-chain block corresponds to the data recorded in the parent chain block.
[0174] Embodiment 4:
[0175] like Fig.12As shown, the present disclosure provides a device for processing flow-type service data on a chain, the device comprising:
[0176] The second receiving unit 21 is used to receive the up-chain object identifier and the sub-chain block identifier of the up-chain object that is currently transferred from the sub-chain. The up-chain object identifier and the sub-chain block identifier of the current transfer are sent to the parent chain after the sub-chain responds to the transfer of the up-chain object and records the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer.
[0177] The second recording unit 22 is connected to the second receiving unit 21, and is used to obtain the parent chain block identifier of the last circulation of the on-chain object, and record the parent chain block identifier of the last circulation, the on-chain object identifier and the child chain block identifier of the current circulation in the parent chain block of the current circulation.
[0178] In one embodiment, the device further includes a second sending unit, configured to:
[0179] In response to receiving a request from the child chain to obtain the hash value, height value and sequence value of the last circulated parent chain block, a request to obtain the hash value, height value and sequence value of the last circulated parent chain block is sent to the child chain, so that the child chain:
[0180] The first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the current circulated subchain block are recorded in the block header of the current circulated subchain block.
[0181] The block body of the sub-chain block that is being transferred this time records: the object number on the chain, the hash value and the first current time of the sub-chain block that is being transferred this time, the hash value, height value and sequence value of the parent chain block that was last transferred, and the business data of this transfer.
[0182] In the sub-chain, the nodes reach consensus on the data recorded in the sub-chain block of this circulation.
[0183] Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain.
[0184] In one implementation, the second recording unit 22 specifically includes:
[0185] A second acquisition unit is used to obtain the hash value of the last circulated parent chain block from the parent chain according to the on-chain object number in response to the packaging condition being met;
[0186] A second block header recording unit, used to record a second timestamp of a second current time, a hash value of a parent chain block circulated last time, and a hash value of a parent chain block circulated this time in a block header of the parent chain block circulated this time;
[0187] The second block body recording unit is used to record the on-chain object number, the hash value of the child chain block being circulated, and the first current time in the block body of the parent chain block being circulated this time;
[0188] The second node consensus unit is used to perform node consensus on the data recorded in the parent chain block of this circulation in the parent chain.
[0189] In one embodiment, the apparatus further includes a second query response unit, configured to:
[0190] In response to receiving a query request for an on-chain object from a user node, the data recorded in the parent chain block is sent to the user node so that the user node determines whether the data recorded in the child chain block corresponds to the data recorded in the parent chain block.
[0191] Embodiment 5:
[0192] Embodiment 5 of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for processing the uplink of flow-type business data as described in Embodiments 1 and / or 2 is implemented, or the device for processing the uplink of flow-type business data as described in Embodiments 3 and / or 4 is implemented.
[0193] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program elements or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0194] In addition, the present disclosure may also provide a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the method for processing the on-chain transfer business data as described in Embodiments 1 and / or 2. The computer device may be the on-chain transfer business data processing device as described in Embodiments 3 and / or 4, and more specifically may be a blockchain, a sub-chain of a blockchain, a parent chain of a blockchain, a node of a sub-chain of a blockchain, or a node of a parent chain of a blockchain.
[0195] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.
[0196] Embodiments 1-5 of the present disclosure provide a method for processing circulating business data on-chain, a device for processing circulating business data on-chain, and a computer-readable storage medium, which record the business data of this circulation through a sub-chain, and record the association information of the sub-chain block and the parent chain block of the last circulation, and record the sub-chain block information of this circulation in the parent chain. The sub-chain and the parent chain interactively record the association information of the circulating business data, to ensure that all data are on-chain and difficult to tamper with.
[0197] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. A method for processing data of circulating business on a chain, characterized in that: The method comprises: In response to the transfer of the on-chain object, the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer are obtained, and the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer are recorded in the sub-chain block of the current transfer; The on-chain object identifier and the sub-chain block identifier of this transfer are sent to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of this transfer in the parent chain block of this transfer.
2. The method according to claim 1, characterized in that Get the subchain block identifier of the last transfer of the on-chain object, the business data of this transfer, and the parent chain block information of the last transfer, including: Get the object number on the chain and the business data of this transaction; According to the object number on the chain, obtain the hash value of the last circulated child chain block from the child chain, and obtain the hash value, height value and sequence value of the last circulated parent chain block from the parent chain; The subchain block for this circulation is selected according to the business data of this circulation, and the hash value of the subchain block for this circulation is generated.
3. The method according to claim 2, characterized in that The subchain block identifier of the last transfer, the business data of this transfer, and the parent chain block information of the last transfer are recorded in the subchain block of this transfer, including: Record the first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the currently circulated subchain block in the block header of the currently circulated subchain block; The block body of the sub-chain block being transferred this time records: the on-chain object number, the hash value and the first current time of the sub-chain block being transferred this time, the hash value, height value and sequence value of the parent chain block that was transferred last time, and the business data of this transfer; In the sub-chain, nodes reach consensus on the data recorded in the sub-chain block of this circulation.
4. The method according to claim 2, characterized in that: Send the on-chain object identifier and the sub-chain block identifier of this transfer to the parent chain, so that the parent chain obtains the parent chain block identifier of the last transfer of the on-chain object, and records the parent chain block identifier of the last transfer, the on-chain object identifier and the sub-chain block identifier of this transfer in the parent chain block of this transfer, specifically including: Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain, so that the parent chain: In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number. The second timestamp of the second current time, the hash value of the last circulated parent chain block and the hash value of the current circulated parent chain block are recorded in the block header of the current circulated parent chain block. The object number of the chain, the hash value of the sub-chain block of this transfer, and the first current time are recorded in the block body of the parent chain block of this transfer. In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to receiving a query request for an on-chain object from a user node, the data recorded in the sub-chain block is sent to the user node, so that the user node determines whether the data recorded in the sub-chain block corresponds to the data recorded in the parent chain block.
6. A method for processing data of circulating business on a chain, characterized in that: The method comprises: Receive the upchain object identifier and the subchain block identifier of the upchain object that is currently being transferred from the subchain. The upchain object identifier and the subchain block identifier of the current transfer are sent to the parent chain after the subchain responds to the transfer of the upchain object and records the subchain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the child chain block of the current transfer; Get the parent chain block ID of the last transfer of the on-chain object, and record the parent chain block ID of the last transfer, the on-chain object ID and the sub-chain block ID of the current transfer in the parent chain block of the current transfer.
7. The method according to claim 6, characterized in that Before receiving the on-chain object identifier and the on-chain block identifier of the current transfer of the on-chain object from the sub-chain, the method further includes: In response to receiving a request from the child chain to obtain the hash value, height value and sequence value of the last circulated parent chain block, a request to obtain the hash value, height value and sequence value of the last circulated parent chain block is sent to the child chain, so that the child chain: The first timestamp of the first current time, the hash value of the last circulated subchain block, and the hash value of the current circulated subchain block are recorded in the block header of the current circulated subchain block. The block body of the sub-chain block that is being transferred this time records: the object number on the chain, the hash value and the first current time of the sub-chain block that is being transferred this time, the hash value, height value and sequence value of the parent chain block that was last transferred, and the business data of this transfer. In the sub-chain, the nodes reach consensus on the data recorded in the sub-chain block of this circulation. Send the object number on the chain, the hash value of the sub-chain block being transferred, and the first current time to the parent chain.
8. The method according to claim 7, characterized in that Get the parent chain block ID of the last transfer of the on-chain object, and record the parent chain block ID of the last transfer, the on-chain object ID and the sub-chain block ID of this transfer in the parent chain block of this transfer, including: In response to the packaging condition being met, the hash value of the last circulated parent chain block is obtained from the parent chain according to the on-chain object number; Record the second timestamp of the second current time, the hash value of the last circulated parent chain block, and the hash value of the currently circulated parent chain block in the block header of the currently circulated parent chain block; Record the on-chain object number, the hash value of the child chain block being circulated, and the first current time in the block body of the parent chain block being circulated this time; In the parent chain, node consensus is performed on the data recorded in the parent chain block of this circulation.
9. The method according to any one of claims 6 to 8, characterized in that: The method further comprises: In response to receiving a query request for an on-chain object from a user node, the data recorded in the parent chain block is sent to the user node so that the user node determines whether the data recorded in the child chain block corresponds to the data recorded in the parent chain block.
10. A device for processing data on a chain of circulating services, characterized in that: The device comprises: A first recording unit is used to obtain the sub-chain block identifier of the last transfer of the on-chain object, the business data of the current transfer, and the parent chain block information of the last transfer in response to the transfer of the on-chain object, and record the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer; The first sending unit is connected to the first recording unit, and is used to send the on-chain object identifier and the sub-chain block identifier of the current circulation to the parent chain, so that the parent chain obtains the parent chain block identifier of the last circulation of the on-chain object, and records the parent chain block identifier of the last circulation, the on-chain object identifier and the sub-chain block identifier of the current circulation in the parent chain block of the current circulation.
11. A device for processing data on a chain of circulating services, characterized in that: The device comprises: A second receiving unit is used to receive the up-chain object identifier and the sub-chain block identifier of the up-chain object that is currently transferred from the sub-chain. The up-chain object identifier and the sub-chain block identifier of the current transfer are sent to the parent chain after the sub-chain responds to the transfer of the up-chain object and records the sub-chain block identifier of the last transfer, the business data of the current transfer, and the parent chain block information of the last transfer in the sub-chain block of the current transfer. The second recording unit is connected to the second receiving unit, and is used to obtain the parent chain block identifier of the last circulation of the on-chain object, and record the parent chain block identifier of the last circulation, the on-chain object identifier and the child chain block identifier of the current circulation in the parent chain block of the current circulation.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for processing the flow-type business data on the chain as described in any one of claims 1-5 or 6-9 is implemented.
Citation Information
Patent Citations
Method and device for converting blockchain single chain into primary and secondary double chains, and storage medium
CN111538780A
Data query method, device and equipment based on block chain network, and storage medium
CN113722385A
Method and device for creating mother and child chains of block chain
CN114723445A
Product inspection and detection system and equipment based on block chain
CN114819992A
Data processing method, device and equipment based on block chain and readable storage medium
CN116055052A
