A blockchain data architecture, regulatory architecture, regulatory method and computer-readable storage medium

By introducing a parallel structure of chain of custody and business chains into the blockchain architecture, using hash values ​​and data strips for tampering and judgment, and saving data to IPFS, the traditional blockchain data architecture has been solved by low throughput and data credibility. The problem of insufficient achieves high throughput and data security and transparency.

CN109766723BActive Publication Date: 2025-02-14YE CHAIN (SHANGHAI) TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN201811513385.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-11
Publication Date
2025-02-14
Estimated Expiration
2038-12-11

AI Technical Summary

Technical Problem

The throughput of traditional blockchain data architecture is difficult to improve, and users maintaining the credibility of on-chain data is questioned, and third parties need to confirm their rights.

Method used

Using the architecture of at least two business chains and one mother chain (chain of supervision), the business chain interacts with the chain of supervision. The chain of supervision makes data tampering and judgments through hash value and data number, and saves the block data to IPFS to Ensure the security and transparency of data.

Benefits of technology

It significantly improves the throughput of the entire blockchain architecture, ensures data security and transparency, and reduces the need for third-party rights confirmation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109766723B_ABST
    Figure CN109766723B_ABST
Patent Text Reader

Abstract

The present invention provides a blockchain data architecture, a regulatory architecture, a regulatory method and a computer-readable storage medium. The blockchain data architecture includes at least two business chains and a parent chain; the at least two business chains are connected in parallel as subchains of the parent chain; the parent chain interacts with each business chain for data. Compared with the prior art, the technical solution of the present invention can multiply the throughput of the entire blockchain architecture (i.e., the processing capacity of all chains).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain, and in particular to a blockchain data architecture, a regulatory architecture, a regulatory method and a computer-readable storage medium. Background Art

[0002] The traditional blockchain data architecture relies on a single business chain to carry out business. The system throughput is the throughput of a single business chain, and it is difficult to improve the throughput of the entire system architecture.

[0003] Only blockchain has a block-chain structure to store data. Although blockchain is nominally open, transparent and tamper-proof, it is still theoretically possible to modify the data on the blockchain through forks and other means. Therefore, the credibility of the data maintained by the user on the chain is still questionable. A third-party blockchain is needed to confirm the data rights of the user's chain blocks to ensure that the user's chain has not been tampered with. Summary of the invention

[0004] The present invention provides a blockchain data architecture having a higher throughput capability than a blockchain system architecture.

[0005] The present invention also provides a blockchain data supervision architecture, a supervision method and a computer-readable storage medium, which are implemented on the basis of the above-mentioned blockchain data architecture and have the characteristics of higher technical applicability.

[0006] A blockchain data architecture provided according to the present invention includes at least two business chains and a parent chain; the at least two business chains are connected in parallel to each other as sub-chains of the parent chain; and the parent chain interacts with each business chain for data.

[0007] The parent chain is a regulatory chain that performs data supervision on the business chain that is its child chain.

[0008] According to a blockchain data supervision architecture provided by the present invention, based on the above blockchain data architecture, the parent chain is a supervision chain, including a main chain and IPFS;

[0009] The first hash value acquisition module performs hash calculation on the block data in the supervised business chain to generate a first hash value, and saves the generated first hash value to the text space of the main chain;

[0010] The first tampering judgment module performs hash calculation on the block data to generate a second hash value, and compares the generated second hash value with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

[0011] Also includes,

[0012] A data number acquisition module is used to acquire the number of data in the block data block and save it to the text space of the main chain;

[0013] The second tampering judgment module compares the number of data in the block data block with the number of data stored in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

[0014] It also includes a block data acquisition module, which saves the block data in the IPFS of the supervision chain.

[0015] According to a blockchain data supervision method provided by the present invention, based on the above blockchain data supervision architecture, the specific method includes:

[0016] Perform hash calculation on the block data in the supervised business chain to generate a first hash value, and save the generated first hash value to the text space of the main chain;

[0017] When performing anti-tampering confirmation, a hash calculation is performed on the block data to generate a second hash value, and the generated second hash value is compared with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

[0018] The method also includes saving the number of data items in the block data block to the text space of the main chain; when performing anti-tampering confirmation, comparing the number of data items in the block data block with the number of data items saved in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

[0019] The method also includes saving the block data in the IPFS of the custody chain.

[0020] The method also includes obtaining a file index of the block data saved in IPFS and saving it to the text space of the main chain.

[0021] The method further includes saving the block summary information of the block data into the text space of the main chain.

[0022] A computer storage medium provided by the present invention stores a computer program that can be loaded by a processor and execute any one of the above methods.

[0023] Compared with the prior art, the technical solution of the present invention can expand the throughput of the entire blockchain architecture (i.e. the processing capacity of all chains) exponentially. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of the architecture of the custody chain and the business chain according to one embodiment of the present invention.

[0025] Figure 2 FIG. 1 is a schematic diagram of a chain of custody architecture according to an embodiment of the present invention.

[0026] Figure 3 The figure is a flowchart of a method for storing data according to one embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0028] Any feature disclosed in this specification (including abstract and drawings), unless otherwise stated, may be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

[0029] A blockchain data architecture provided according to the present invention includes at least two business chains and a parent chain; the at least two business chains are connected in parallel to each other as sub-chains of the parent chain; and the parent chain interacts with each business chain for data.

[0030] Traditional solutions rely on a single business chain to develop services, and the system throughput is the throughput of the single business.

[0031] As an implementation scheme of the present invention, Figure 1 As shown, the parent chain is a regulatory chain that performs data supervision on the business chain as its child chain.

[0032] Each supervised business chain is a parallel sub-chain of the supervision chain. A multi-chain solution is adopted, and the supervision chain organically connects each business chain in parallel. In this way, the supervision chain only needs to interact with the business chain. Its performance ceiling (maximum TPS) is not the maximum number of business transactions that can be undertaken, but the number of business chains undertaken. The throughput of the entire architecture is the sum of the throughput of all business chains connected to the supervision chain. The number of business chains that the supervision chain can theoretically carry is the throughput of the supervision chain itself. This can double the throughput of the entire framework (that is, the processing capacity of all chains).

[0033] According to a blockchain data supervision architecture provided by the present invention, based on the above blockchain data architecture, such as Figure 2 As shown, the parent chain is a custody chain, including the main chain and IPFS;

[0034] The first hash value acquisition module performs hash calculation on the block data in the supervised business chain to generate a first hash value, and saves the generated first hash value to the text space of the main chain;

[0035] The first tampering judgment module performs hash calculation on the block data to generate a second hash value, and compares the generated second hash value with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

[0036] The blocks of the main chain are composed of transaction records, which include transaction information and text information. The text space is the storage space for storing text information in the transaction record. The block data of the existing business chain under supervision is hashed to generate a first hash value, and the generated first hash value is saved in the text space of the main chain. When anti-tampering confirmation is required, the hash value of the block data is calculated again to obtain a second hash value. If the first hash value and the second hash value are the same, it means that the block data should not have been tampered with. If the first hash value and the second hash value are different, it means that the block data has been tampered with. In the implementation of the solution of the present invention, the business chain and the supervision chain do not need to use the same technology, and the business chains do not need to use the same technology. The scope of application is wide and the technical applicability is higher.

[0037] As an embodiment of the present invention, it also includes:

[0038] A data number acquisition module is used to acquire the number of data in the block data block and save it to the text space of the main chain;

[0039] The second tampering judgment module compares the number of data in the block data block with the number of data stored in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

[0040] As an implementation scheme of the present invention, if there is an inconsistency between the hash value and the number of data items, it indicates that the block data has been tampered with. As a specific implementation scheme, the hash value can be compared first and then the number of data items, or the number of data items can be compared first and then the hash value, or they can be compared simultaneously.

[0041] It also includes a block data acquisition module, which saves the block data in the IPFS of the supervision chain.

[0042] As an implementation scheme of the present invention, the block data is saved. On the one hand, since the original data may be lost when the block data is stored in the block, the block data stored here can be used as a backup of the lost data; on the other hand, if the block data is tampered with, the additionally stored block data can be used as evidence of tampering. As an embodiment of the present invention, the block data is saved in the IPFS of the supervision chain, so that the block data stored in the IPFS cannot be tampered with, ensuring security and transparency.

[0043] According to a blockchain data supervision method provided by the present invention, based on the above blockchain data supervision architecture, the specific method includes:

[0044] Perform hash calculation on the block data in the supervised business chain to generate a first hash value, and save the generated first hash value to the text space of the main chain;

[0045] When performing anti-tampering confirmation, a hash calculation is performed on the block data to generate a second hash value, and the generated second hash value is compared with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

[0046] By adopting the solution of the present invention, the existing blockchain system can use this solution without making too many modifications, and can strike a balance between enterprise user data confidentiality and government supervision.

[0047] As an implementation scheme of the present invention, the method further includes saving the number of data items in the block data block to the text space of the main chain; when performing anti-tampering confirmation, comparing the number of data items in the block data block with the number of data items saved in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

[0048] As an embodiment of the present invention, the method further includes saving the block data in the IPFS of the custody chain.

[0049] As an implementation scheme of the present invention, the method further includes obtaining the file index of the block data saved in IPFS and saving it to the text space (transaction memo) of the main chain. Different from the storage method of the file index in the prior art, the present invention applies to store the file index in the text space of the main chain, ensuring that the stored file index cannot be tampered with and is secure and transparent.

[0050] As an implementation scheme of the present invention, the method further includes saving the block summary information of the block data to the text space of the main chain. The present invention applies to store the block summary information in the text space of the main chain, ensuring that the stored block summary information cannot be tampered with and is secure and transparent.

[0051] As an embodiment of the present invention, Figure 3 As shown, for the block data in the business chain block, first extract the number of transactions (i.e., the number of data items) and the block data summary information in the block, and then calculate the first hash value of the block data; third, save the block data to the IPFS of the supervision chain, and obtain the saved file index; fourth, save the obtained transaction number, summary information, first hash value and file index to the transaction memo (i.e., text space) of the main chain. This embodiment is only used as a specific implementation method and is not used to limit other solutions for changing the order or interaction method.

[0052] A computer storage medium provided by the present invention stores a computer program that can be loaded by a processor and execute any one of the above methods.

[0053] This technical solution is completed through the transformation of the access layer, and the chains of the same technology can be completed through the transformation of the bottom layer.

Claims

1. A blockchain data architecture, characterized in that: include: At least two business chains and a parent chain; wherein the parent chain interacts with each business chain for data, and the parent chain is a supervision chain that supervises whether the block data contained in the business chain as its child chain has been tampered with; The at least two business chains are connected in parallel to each other as sub-chains of the parent chain; The parent chain is a supervision chain, including a main chain and IPFS; the IPFS is used to store the block data contained in the business chain, and the block data includes multiple pieces of data in each block; The first hash value acquisition module performs hash calculation on the block data in the supervised business chain to generate a first hash value, and saves the generated first hash value to the text space of the main chain; The first tampering judgment module performs hash calculation on the block data to generate a second hash value when anti-tampering confirmation is required, and compares the generated second hash value with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

2. The blockchain data architecture according to claim 1, characterized in that: It also includes a data number acquisition module, which acquires the number of data in the block data block and saves it to the text space of the main chain; The second tampering judgment module compares the number of data in the block data block with the number of data stored in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

3. A blockchain data supervision method, based on the blockchain data architecture described in any one of claims 1 to 2, the specific method comprising: Perform hash calculation on the block data in the supervised business chain to generate a first hash value, save the generated first hash value to the text space of the main chain, and save the block data to the IPFS of the supervision chain, wherein the block data includes multiple pieces of data in each block; When performing anti-tampering confirmation, a hash calculation is performed on the block data to generate a second hash value, and the generated second hash value is compared with the first hash value. If the hash values ​​are different, it indicates that the block data has been tampered with.

4. The blockchain data supervision method according to claim 3, further comprising saving the number of data in the block data block to the text space of the main chain; When performing anti-tampering confirmation, the number of data items in the block data block is compared with the number of data items saved in the text space to see if they are consistent. If they are inconsistent, it indicates that the block data has been tampered with.

5. According to the blockchain data supervision method according to claim 3, the method also includes obtaining the file index of the block data saved in IPFS and saving it to the text space of the main chain.

6. According to the blockchain data supervision method according to claim 3, the method also includes saving the block summary information of the block data to the text space of the main chain.

7. A computer storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute any one of the methods of claims 3 to 6.

Citation Information

Patent Citations

  • Disaster recovery cloud storage system construction method based on block chain technology

    CN106534317A

  • Block-chain-based information authorization method and apparatus

    CN107040384A

  • School roll tracing authentication method based on block chains

    CN107257341A

  • Data storage state detecting method and device and computer readable storage medium

    CN107391298A

  • Program running method, terminal and computer readable storage medium

    CN107545181A