CN110011788B - Data processing method, system and related equipment based on block chain - Google Patents

Data processing method, system and related equipment based on block chain Download PDF

Info

Publication number
CN110011788B
CN110011788B CN201910286774.8A CN201910286774A CN110011788B CN 110011788 B CN110011788 B CN 110011788B CN 201910286774 A CN201910286774 A CN 201910286774A CN 110011788 B CN110011788 B CN 110011788B
Authority
CN
China
Prior art keywords
block
chain
metadata
data
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910286774.8A
Other languages
Chinese (zh)
Other versions
CN110011788A (en
Inventor
陆路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201910286774.8A priority Critical patent/CN110011788B/en
Priority to PCT/CN2019/093484 priority patent/WO2020206847A1/en
Publication of CN110011788A publication Critical patent/CN110011788A/en
Application granted granted Critical
Publication of CN110011788B publication Critical patent/CN110011788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Abstract

The invention discloses a data processing method, a data processing system and related equipment based on a block chain, which are used for reducing block chain data required to be stored by block chain node equipment and reducing the hardware requirement of adding node equipment into a block chain network. The method of the embodiment of the invention can comprise the following steps: sending a request message for requesting to join a target block chain to a metadata chain in a block chain network; storing metadata of each block in a block chain in the metadata chain, wherein the metadata comprises an id of the block chain, a block height, a block hash value and a block valid certificate; receiving metadata of the target block chain returned by the metadata chain; acquiring a block head and block snapshot data of a target block corresponding to the current block height from a distributed data storage system; and checking the correctness of the block header and the block snapshot data, and adding the target block chain if the checking is passed.

Description

Data processing method, system and related equipment based on block chain
Technical Field
The present invention relates to the field of block chain data processing, and in particular, to a data processing method and system based on a block chain, and a related device.
Background
Due to the distributed decentralized and non-tamper-proof characteristics of the BlockChain (BlockChain), a unified account book system can be realized by participants in the BlockChain on the premise of not establishing a trust relationship, and the BlockChain is more and more widely applied. However, with the rapid growth of blockchain data, historical data is continuously increased, which results in heavier and heavier storage burden on nodes, such as the full bit-size data size of more than 200GB and the growth rate of 3-4GB per month.
In the face of this problem, a common solution in the industry at present is to improve the storage layer capacity of a local node, the data storage capacity of the node is not reduced, and a higher configuration requirement is put forward on the node. The improvement of the hardware requirement of the node equipment joining the block chain correspondingly improves the threshold of joining the block chain network, and is not beneficial to the popularization and application of the block chain network.
Disclosure of Invention
The invention mainly aims to provide a data processing method, a data processing system and related equipment based on a block chain, which are used for reducing block chain data required to be stored by block chain node equipment and reducing the hardware requirement of adding node equipment into a block chain network.
A first aspect of an embodiment of the present invention provides a data processing method based on a block chain, including:
sending a request message for requesting to join a target block chain to a metadata chain in a block chain network; storing the metadata of each block chain in the metadata chain;
receiving metadata of the target block chain returned by the metadata chain;
acquiring a block head and block snapshot data of a target block corresponding to the block height from a distributed data storage system; and checking the correctness of the block header and the block snapshot data, and adding the target block chain if the checking is passed.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the request message includes an id of the target block chain and a digital certificate of the block chain node device, and the metadata is returned after the metadata chain verifies that the digital certificate passes.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the data processing method based on a block chain further includes:
sending block data meeting a first preset condition and locally stored by block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block chain node equipment.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the data processing method based on a block chain further includes: when a second preset condition is met, acquiring block snapshot data of a target block, and sending the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data of the target block.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the data processing method based on a block chain further includes: obtaining an MPT certification of a block header of a target block corresponding to the block height from a distributed data storage system;
the verifying the block header and the block snapshot data comprises:
verifying the validity of the block header using the MPT certificate;
verifying correctness of the block header by using the metadata; and the number of the first and second groups,
and checking the correctness of the block snapshot data by utilizing the block header.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the metadata includes an id of a block chain, a block height, a block hash value, and a block validity certification; said use of
The metadata verifying the correctness of the block header comprises:
calculating a first block hash value of a target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
and if the first block hash value is consistent with the block hash value included in the metadata, and the signature in the block header is matched with the block valid certificate, determining that the data of the block header is correct.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the verifying the correctness of the block snapshot data by using the block header includes:
and calculating a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
A second aspect of the embodiments of the present invention provides a data processing method based on a block chain, which is applied to a block chain node device, and includes:
sending block data meeting a first preset condition and locally stored by block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block chain node equipment.
Optionally, as a possible implementation manner, the data processing method based on the block chain in the embodiment of the present invention further includes: and when a second preset condition is met, acquiring block snapshot data of a target block, and sending the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data.
A third aspect of the embodiments of the present invention provides a block chain node device, where the block chain node device includes a memory and a processor, where the memory stores thereon a computer program that is executable on the processor, and the computer program, when executed by the processor, implements the steps in the block chain based data processing method as in any one of the possible embodiments of the first aspect and the second aspect.
Optionally, as a possible implementation manner, the block link node device in the embodiment of the present invention is a node constituting a CDN network or a block link network.
A fourth aspect of the present invention provides a data processing system based on a block chain, including:
the processing unit is used for sending the block data meeting the first preset condition and locally stored by the block chain node equipment to the data storage system so as to enable the distributed data storage system to store the block data meeting the first preset condition;
and the deleting unit is used for locally deleting the block data meeting the first preset condition in the block chain node equipment.
A fifth aspect of embodiments of the present invention provides a blockchain network comprising at least one blockchain, the blockchain network communicatively coupled to a distributed data storage system, wherein,
the block chain node point equipment in the at least one block chain is used for sending block data meeting a first preset condition and locally stored by the block chain node point equipment to the distributed data storage system so that the distributed data storage system stores the block data meeting the preset condition; and the block data meeting the first preset condition is locally deleted at the block link point.
Optionally, as a possible implementation manner, in the block chain network in the embodiment of the present invention, the block chain link point device in the at least one block chain is further configured to, when a second preset condition is met, obtain block snapshot data of a target block, and send the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data.
Optionally, as a possible implementation manner, in the block chain network in the embodiment of the present invention, the block chain network further includes a metadata chain, where the metadata chain is used to synchronize and store metadata of the at least one block chain; the metadata chain is further to: receiving a request for joining a target block chain sent by a block chain node device; returning the metadata of the target block chain to the block chain node equipment; wherein the metadata includes an id of a block chain, a block height, a block hash value, and a block validity identification.
A sixth aspect of embodiments of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program is executable by one or more processors to implement steps in a data processing method based on a block chain as in any one of the possible embodiments of the first aspect and the second aspect.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, when the block chain link point equipment in the block chain network joins the block chain network, only the block head and the block snapshot data need to be downloaded to the distributed storage system, and the whole block chain historical data does not need to be synchronized, so that the block chain network can be rapidly joined; after the node equipment joins the block chain network, the historical block data can be transferred to the distributed storage system for storage, the whole amount of historical block data does not need to be stored, the storage space is saved, the hardware requirement of the node equipment joining the block chain network is reduced, and the popularization and application of the block chain network are facilitated.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a data processing method based on a block chain in an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a data processing method based on a block chain according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a block chain-based data processing method according to the present invention;
FIG. 4 is a block chain-based data processing system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a block link point device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
With the rapid growth of the blockchain data, the historical data is continuously increased, so that the storage burden of the nodes is heavier and heavier. In the embodiment of the invention, the problem caused by the fact that local storage of the blockchain node equipment is continuously increased is solved by storing the block data in the blockchain in the decentralized distributed data storage system.
In one embodiment, the present invention discloses a blockchain network comprising at least one blockchain, the blockchain network communicatively coupled to a distributed data storage system, wherein,
the block chain link point equipment in at least one block chain is used for sending block data meeting a first preset condition and locally stored by the block chain link point equipment to the distributed data storage system so that the distributed data storage system stores the block data meeting the preset condition; and locally deleting the block data meeting the first preset condition at the block link point.
The first preset condition can be set by a user, for example, block data which has been generated for a plurality of time durations is sent to the distributed data storage system as historical data and deleted locally, so that the purpose of saving local storage space is achieved.
The block chain link point device in at least one block chain is further used for acquiring block snapshot data of the target block when a second preset condition is met, and sending the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data.
The second preset condition may be preset, is a logic for performing block snapshot, and may have various forms, such as performing snapshot every several blocks, or performing snapshot every several time durations, which is not limited herein;
for example, a block snapshot may be of the form: < blockhash, statoot, txhash, nonce, validaatorHash, txlist, accountstar … … >
Wherein, the blockhash: the hash value of the block, i.e. the hash of all elements in the block header;
accountstate: all account data;
statrooot: root node hash of mpt (metric Patricia tree) tree of all account data, hash of Accountstate;
txlist: a list of transactions in this block;
txhash: the digest of the transaction list in this block, the hash value of txlist;
and (4) nonce: block nonce, workload proof;
validatorhash, the hash of the MPT tree root of the verifier list of the block;
it should be noted that the block snapshot may be the target block to be snapshot.
Preferably, the block chain network further comprises a metadata chain, wherein the metadata chain is used for synchronizing and storing metadata of at least one block chain;
the metadata includes contents such as id of block chain, block height, block hash value, block valid certification, and the like, and the specific form may be < chainid, block hash, validators, height >
Wherein, chainid is the number of the chain, and is 0 for a single-chain block chain, for example, the block chain system supporting multi-chain or fragmentation is the chain number or fragmentation number;
height: a block height;
blockhash: a block hash value of the corresponding block;
validators, this block is valid proof if the PBFT-based block chain is the voter's signature, e.g. POW-based block chain is the workload proof;
the metadata chain is used for continuously synchronizing and verifying the metadata of the chain, so that the correctness of the metadata is ensured, and the metadata cannot be tampered.
The metadata chain is also used for receiving a request message sent by a block chain link point device (hereinafter referred to as a new node) requesting to join the block chain network, wherein the request message comprises the id of a target block chain requiring to join and a digital certificate of the node device; after the metadata chain verifies that the digital certificate passes, corresponding metadata are returned to the new node;
specifically, if the specified block height is included in the request message, the metadata chain returns the metadata corresponding to the specified block height, otherwise, the metadata with the highest block height is returned.
After the new node acquires the metadata, acquiring a block head and block snapshot data of a target block corresponding to the current block height from the distributed data storage system;
preferably, the block header is obtained and an MPT certificate of the block header is also obtained from the distributed data storage system, and the new node can check whether the obtained block header is valid by using the MPT certificate, and the specific content of the MPT certificate is the prior art and is not described herein again;
preferably, the new node may further check correctness of the block header by using the metadata, and the specific checking method may be:
calculating a first block hash value of the target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
if the first block hash value is consistent with the block hash value included in the metadata and the signature in the block header matches the block valid credential, the data of the block header is determined to be correct.
Preferably, the new node may further check the correctness of the block snapshot data by using a block header, and the specific checking method may be:
and calculating to obtain a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
For example, the way to calculate the second block hash value of the target block by using the block snapshot data may be: calculating txhash and a statoot according to txlist and Accountstate in the block snapshot, and calculating by using the txhash and the statoot to obtain a second block hash value; the advantage of this verification is that the authenticity of the txlist, Accountstate data can be ensured.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. Referring to fig. 1, a block chain-based data processing method according to an embodiment of the present invention may include:
101. sending block data meeting a first preset condition and locally stored by block link point equipment to a data storage system;
the applicant notices that a block in the existing block chain is a transaction, a global state is stored in the block after each block is generated, the global state represents data information of all accounts when the block chain is at the height of the block, the data information of all accounts in the block which is generated most recently (with the highest height of the block) is often used most frequently in the block chain application process, and the rest historical blocks are often used only when the correctness of the block chain is verified, and the use frequency is not high. In view of this, in the embodiment of the present invention, the block data in the block chain may be sent to the decentralized distributed data storage system for storage, so as to reserve the distributed decentralized storage and the non-falsifiable characteristic of the block chain.
Specifically, the decentralized distributed data storage system in the embodiment of the present invention may be a fast thunder link file system TCFS system, or an interplanetary file system IPFS system or another decentralized distributed data storage system, which is not limited herein. By way of example only, the TCFS system is used for illustration, and the block link point device in the embodiment of the present invention may archive the block data in the block chain in the decentralized distributed data storage system. The specific block chain node equipment can generate corresponding block snapshot data according to the block data in the block chain, then a TCFS system is adopted to slice and redundantly encode the block snapshot data, and finally the block snapshot data are dispersedly stored in the TCFS system, wherein the TCFS system comprises million-level guest-playing cloud nodes, and the characteristics of distributed decentralized storage and non-tampering of the block chain can be effectively reserved. It is to be understood that, in the embodiment of the present invention, the frequency of generating the block snapshot is not limited, and each block may be selected to generate one block snapshot, or each 100 blocks may be selected to generate one block snapshot, which is not limited herein.
102. And locally deleting the block data meeting the first preset condition at the block link point equipment.
After sending the block data in the block chain to the decentralized distributed data storage system, the block chain node device in the embodiment of the present invention may locally delete the block data that meets the first preset condition and is stored in the node device in the block chain network corresponding to the block chain, and retain the target block data corresponding to the preset number of blocks with the block height sorted in the top. For example, only the block data with the highest block height may be saved, or the block data with the top three sorted block heights may also be saved, which is not limited herein.
When historical chunk data needs to be used, corresponding data can be actively or passively downloaded from a decentralized distributed data storage system (e.g., a TCFS system).
In the embodiment of the invention, the block chain node device can store the block data in the block chain in the decentralized distributed data storage system, the distributed decentralized storage and the non-falsification characteristic of the block chain are reserved, then the historical block data stored in the node device in the block chain network corresponding to the block chain is deleted, and only the target block data corresponding to the preset number of blocks with the block height sequence higher than the block height sequence is required to be reserved. Compared with the existing scheme, the node device in the block chain network corresponding to the block chain in the embodiment of the invention only needs to store the target block data corresponding to the preset number of blocks with the block height sorted in the front, and does not need to store historical block data, so that the storage space is saved, the hardware requirement of adding the node device into the block chain network is reduced, and the block chain network is beneficial to popularization and application.
Optionally, as a possible implementation manner, on the basis of the embodiment shown in fig. 1, in order to facilitate the new node to join the blockchain network, the block-link node device that has been joined needs to store block snapshot data in the distributed data storage system for the new node to download. Preferably, when the second preset condition is met, the block link node device may further obtain block snapshot data of the target block, and send the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data.
The second preset condition may be pre-specified, and is a logic for performing block snapshot, and may have various forms, such as performing snapshot every several blocks, or performing snapshot every several time durations, which is not limited herein.
For ease of understanding, the data processing method based on the blockchain in the process of adding a new node device to the blockchain network will be described below from the perspective of a new node. Referring to fig. 2, another embodiment of a data processing method based on a block chain according to the present invention may include:
201. sending a request message for requesting to join a target block chain to a metadata chain in a block chain network;
when a target device wants to join a blockchain network corresponding to a blockchain, a request message may be sent to a metadata chain in the blockchain network. Wherein, the metadata of each block of the block chain is stored in the metadata chain.
Optionally, as a possible implementation manner, the request message includes identity verification information (e.g., a digital certificate) of the new node device, and the block node device may perform identity verification or authentication on the new node device based on the identity verification information, and return corresponding metadata only after the verification is passed.
202. Receiving metadata of a target block chain returned by a metadata chain;
the new node device may receive metadata of a target block chain corresponding to a current block height returned by the metadata chain, where the metadata may include an id of the block chain, a block height, a block hash value, and a block validity identification.
203. Acquiring a block head and block snapshot data of a target block corresponding to the current block height from a distributed data storage system;
the new node device may obtain the block header and the block snapshot data of the target block corresponding to the current block height from the distributed data storage system according to the id of the block chain in the metadata and the block height.
204. Checking the correctness of the block head and the block snapshot data, and adding a target block chain if the checking is passed.
Specifically, if the specified block height is included in the request message, the metadata chain returns the metadata corresponding to the specified block height, otherwise, the metadata with the highest block height is returned.
After the new node acquires the metadata, acquiring a block head and block snapshot data of a target block corresponding to the current block height from the distributed data storage system;
preferably, the block header is obtained and an MPT certificate of the block header is also obtained from the distributed data storage system, and the new node can check whether the obtained block header is valid by using the MPT certificate, and details about the MPT certificate are present and are not described herein;
preferably, the new node may further check correctness of the block header by using the metadata, and the specific checking method may be:
calculating a first block hash value of the target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
if the first block hash value is consistent with the block hash value included in the metadata and the signature in the block header matches the block valid credential, the data of the block header is determined to be correct.
Preferably, the new node may further check the correctness of the block snapshot data by using a block header, and the specific checking method may be:
and calculating to obtain a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
In the embodiment of the invention, the node equipment in the block chain network corresponding to the block chain only needs to store the block data corresponding to the block with the current block height, and does not need to store historical block data, so that the storage space is saved, the hardware requirement of adding the node equipment into the block chain network is reduced, and the block chain network is favorable for popularization and application. And secondly, the metadata block chain corresponding to the block chain is stored in the block chain, so that the correctness of the block head and the block snapshot data can be checked according to the metadata, and the safety of the data is improved.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above steps do not mean the execution sequence, and the execution sequence of each step should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
For easy understanding, referring to fig. 3, the data processing method based on the block chain according to the embodiment of the present invention will be described with reference to a specific application example.
The process in this embodiment mainly includes: 1. cold storage of historical data; 2. carrying out data snapshot; 3. generating a metadata chain; 4. the node starts up quickly. The specific process is as follows:
1. cold storage of historical data
When the size of the block data storage space of the block data of the non-synchronized block chain reaches a certain threshold or reaches a preset time period, such as 3 days, the block data in the processing period is archived. The data can be stored in a cold mode, namely a decentralized storage technology is used, and the data are guaranteed not to be lost and not to be tampered. If the TCFS is used for cold storage, the TCFS slices and redundantly encodes data, and then dispersedly stores the data on million levels of guest playing cloud nodes.
2. Data snapshot
One block in the block chain is a transaction, and each block has a global state after being executed, and the global state represents a data snapshot of all accounts when the block chain is at the height of the block. Each block may produce a block snapshot, and a snapshot may take the form as follows.
Block snapshot: < blockhash, statoot, txhash, nonce, validaatorHash, txlist, accountstar … … >
blockhash: hash value of block, i.e. hash of all elements in block header
Accountstate: all account data
statrooot: root node hash of MPT tree of all account data, hash of Accountstate
Txlist: transaction list in this block
txhash: digest of transaction list in this block, hash value of txlist
And (4) nonce: block nonce, workload attestation
Validatorhash-hash of MPT root of verifier list of block
The snapshot information of the block is also subject to cold storage. The invention does not limit the frequency of generating block snapshots, for example, each block may be selected to generate a snapshot, or each 100 blocks may be selected to generate a snapshot.
3. Generating a metadata chain (metashain)
metachain is also a blockchain, and in particular, the chain only synchronizes metadata of the transaction chain.
Metadata < chainid, height, blockhash, validators, height … … >
chain number, which is 0 for a single-chain block chain, for example, the block chain link point device supporting multi-chain or fragmentation is the chain number or fragmentation number;
height: a block height;
blockhash: the block hahs value of the corresponding block;
validators this block is a valid proof, as POW-based block chain is a workload proof, if PBFT-based block chain is a signature of the voter.
The metacache continuously synchronizes and verifies the metadata of the chain, thereby ensuring the correctness of the metadata and ensuring that the metadata cannot be tampered.
4. Node fast start
When a new node wants to join the blockchain network, 4 steps are needed
1) Requesting startup parameters from metahain in the form of request < chain id, digital certificate … … >
2) The metachain verifies the digital certificate according to the request parameters, and then returns the metadata with the latest height of chain chainid;
3) obtaining validators from the metadata;
and downloading a block header with the response height (MPT proof that the node requests the storage system to acquire the block header information and the information of the target block with the height) and snapshot complete data of the response from the cold storage system.
The node verifies the validity of the head information of the metachain response block through the MPT;
calculating the hash of the block head to obtain a blockhash, and comparing the blockhash with the blockhash in the metadata, wherein if the blockhash is consistent with the blockhash, the block head data is correct;
4) the signature in the chunk header (the voter's signature) is checked for a match with the validators obtained in the previous step, e.g., the match verifies that the data in the chunk header is correct.
5) And the correctness of the downloaded block snapshot data is verified through the information in the block header (txhash and the startoot are calculated according to txlist and Accountstate in the block snapshot, the txhash and the startoot are used for calculating the blockhash and are compared with the previous blockhash), and after the verification is passed, the blocksnapshot can be added into a block chain network to start to participate in the consensus process.
Referring to fig. 4, in this embodiment, a data processing system based on a block chain is further provided, where the system includes:
the processing unit 401 is configured to send block data meeting a first preset condition, which is locally stored in the block link point device, to the data storage system, so that the distributed data storage system stores the block data meeting the first preset condition;
a deleting unit 402, configured to locally delete, at the block link point device, the block data that meets the first preset condition.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 5, in the present embodiment, a block link point device is further provided, where the block link point device 1 may be a Personal Computer (PC), a smart phone, a tablet Computer, a palm Computer, a portable Computer, an intelligent router, an ore machine, and a network storage device terminal device.
The block link node device 1 may be a node constituting a CDN network or a block link network.
The block chain node device 1 may include a memory 11, a processor 12, and a bus 13. The processor 12, when executing the computer program, implements the steps in the above-described embodiment of the data processing method based on blockchains shown in fig. 1 to 3, such as the steps 201 to 204 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of each module or unit in the above-described device embodiments.
In some embodiments of the present invention, the processor is specifically configured to implement the following steps:
sending a request message for requesting to join a target block chain to a metadata chain in a block chain network; storing metadata of each block in the block chain in the metadata chain, wherein the metadata comprises an id of the block chain, a height of the block, a hash value of the block and a valid proof of the block;
receiving metadata of a target block chain returned by a metadata chain;
acquiring a block head and block snapshot data of a target block corresponding to the current block height from a distributed data storage system; checking the correctness of the block head and the block snapshot data, and adding a target block chain if the checking is passed.
Optionally, the request message includes an id of the target block chain and a digital certificate of the block chain node device, and the metadata is returned after the metadata chain verifies that the digital certificate passes.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
sending the block data meeting the first preset condition and locally stored by the block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block link point equipment.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
and when the second preset condition is met, acquiring block snapshot data of the target block, and sending the snapshot data of the target block to the distributed data storage system so that the distributed data storage system stores the block snapshot data of the target block.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps: obtaining an MPT certification of a block header of a target block corresponding to a block height from a distributed data storage system;
checking the block header and block snapshot data includes:
verifying the validity of the block header by using MPT;
verifying the correctness of the block header by using the metadata; and the number of the first and second groups,
the block header is used to check the correctness of the block snapshot data.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
calculating a first block hash value of the target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
if the first block hash value is consistent with the block hash value included in the metadata and the signature in the block header matches the block valid credential, the data of the block header is determined to be correct.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps: verifying the correctness of the block snapshot data using the block header includes:
and calculating to obtain a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
sending the block data meeting the first preset condition and locally stored by the block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block link point equipment.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
and when the second preset condition is met, acquiring block snapshot data of the target block, and sending the snapshot data of the target block to the distributed data storage system so that the distributed data storage system stores the block snapshot data.
The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the block-linked dot device 1, such as a hard disk of the block-linked dot device 1. The memory 11 may also be an external storage device of the blockchain dot device 1 in other embodiments, such as a plug-in hard disk provided on the blockchain dot device 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the block-link dot device 1. The memory 11 may be used not only to store application software installed in the blockchain node device 1 and various types of data such as codes of computer programs and the like, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing computer programs.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Further, the blockchain endpoint device may further include a network interface, which may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), and is generally used to establish a communication connection between the blockchain endpoint device 1 and other electronic devices.
Optionally, the block chain node device 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the block link point device 1 and for displaying a visual user interface.
Fig. 5 only shows the block link node device 1 with the components 11-13 and the computer program, it being understood by a person skilled in the art that the structure shown in fig. 1 does not constitute a definition of the block link node device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
sending a request message for requesting to join a target block chain to a metadata chain in a block chain network; storing metadata of each block in the block chain in the metadata chain, wherein the metadata comprises an id of the block chain, a height of the block, a hash value of the block and a valid proof of the block;
receiving metadata of a target block chain returned by a metadata chain;
acquiring a block head and block snapshot data of a target block corresponding to the current block height from a distributed data storage system; checking the correctness of the block head and the block snapshot data, and adding a target block chain if the checking is passed.
Optionally, the request message includes an id of the target block chain and a digital certificate of the block chain node device, and the metadata is returned after the metadata chain verifies that the digital certificate passes.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
sending the block data meeting the first preset condition and locally stored by the block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block link point equipment.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
and when the second preset condition is met, acquiring block snapshot data of the target block, and sending the snapshot data of the target block to the distributed data storage system so that the distributed data storage system stores the block snapshot data of the target block.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps: obtaining an MPT certification of a block header of a target block corresponding to a block height from a distributed data storage system;
checking the block header and block snapshot data includes:
verifying the validity of the block header by using MPT;
verifying the correctness of the block header by using the metadata; and the number of the first and second groups,
the block header is used to check the correctness of the block snapshot data.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
calculating a first block hash value of the target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
if the first block hash value is consistent with the block hash value included in the metadata and the signature in the block header matches the block valid credential, the data of the block header is determined to be correct.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps: verifying the correctness of the block snapshot data using the block header includes:
and calculating to obtain a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
sending the block data meeting the first preset condition and locally stored by the block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block link point equipment.
Optionally, in some embodiments of the present invention, the processor may be further configured to implement the following steps:
and when the second preset condition is met, acquiring block snapshot data of the target block, and sending the snapshot data of the target block to the distributed data storage system so that the distributed data storage system stores the block snapshot data.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data processing method based on a block chain is applied to block chain node equipment, and is characterized in that the method comprises the following steps:
sending a request message for requesting to join a target block chain to a metadata chain in a block chain network; storing the metadata of each block in the block chain in the metadata chain;
receiving metadata of the target block chain returned by the metadata chain;
acquiring a block head and block snapshot data of a target block corresponding to the current block height from a distributed data storage system;
and checking the correctness of the block header and the block snapshot data, and adding the target block chain if the checking is passed.
2. The method according to claim 1, wherein the request message comprises an id of the target blockchain and a digital certificate of the blockchain node device, and the metadata is returned after the metadata chain verifies that the digital certificate passes.
3. The method of claim 1, further comprising:
sending block data meeting a first preset condition and locally stored by block link point equipment to a data storage system so that the distributed data storage system stores the block data meeting the first preset condition;
and locally deleting the block data meeting the first preset condition at the block chain node equipment.
4. The method of claim 1, further comprising:
when a second preset condition is met, acquiring block snapshot data of a target block, and sending the snapshot data of the target block to the distributed data storage system, so that the distributed data storage system stores the block snapshot data of the target block.
5. The method of claim 1, further comprising: obtaining an MPT certification of a block header of a target block corresponding to the block height from a distributed data storage system;
the verifying the block header and the block snapshot data comprises:
verifying the validity of the block header using the MPT certificate;
verifying correctness of the block header by using the metadata; and the number of the first and second groups,
and checking the correctness of the block snapshot data by utilizing the block header.
6. The method of claim 5, wherein the metadata comprises an id of a block chain, a block height, a block hash value, and a block valid identification;
the verifying correctness of the block header using the metadata includes:
calculating a first block hash value of a target block by using the block header, and judging whether the first block hash value is consistent with a block hash value included in the metadata;
judging whether the signature in the block header is matched with the block valid certificate or not;
and if the first block hash value is consistent with the block hash value included in the metadata, and the signature in the block header is matched with the block valid certificate, determining that the data of the block header is correct.
7. The method of claim 6, wherein the checking the correctness of the block snapshot data with the block header comprises:
and calculating a second block hash value of the target block by using the block snapshot data, judging whether the second block hash value is consistent with the first block hash value, and if so, determining that the block snapshot data is correct.
8. A blockchain network comprising at least one blockchain, the blockchain network communicatively coupled to a distributed data storage system, wherein,
the block chain node point equipment in the at least one block chain is used for sending block data meeting a first preset condition and locally stored by the block chain node point equipment to the distributed data storage system so that the distributed data storage system stores the block data meeting the preset condition; the block data meeting the first preset condition is locally deleted at the block chain link point;
the block chain link point device in the at least one block chain is further configured to obtain block snapshot data of a target block and send the snapshot data of the target block to the distributed data storage system when a second preset condition is met, so that the distributed data storage system stores the block snapshot data; the block chain network further comprises a metadata chain, wherein the metadata chain is used for synchronizing and storing metadata of the at least one block chain; the metadata chain is further to: receiving a request for joining a target block chain sent by a block chain node device; returning the metadata of the target block chain to the block chain node equipment; wherein the metadata includes an id of a block chain, a block height, a block hash value, and a block validity identification.
9. A computer-readable storage medium, having stored thereon a computer program executable by one or more processors to perform the steps in the method of blockchain-based data processing according to any one of claims 1 to 7.
10. A blockchain node device, characterized in that the blockchain node device comprises a processor and a memory, wherein the memory stores therein a data processing program, and the processor executes the data processing program to implement the data processing method according to any one of claims 1 to 7.
CN201910286774.8A 2019-04-10 2019-04-10 Data processing method, system and related equipment based on block chain Active CN110011788B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910286774.8A CN110011788B (en) 2019-04-10 2019-04-10 Data processing method, system and related equipment based on block chain
PCT/CN2019/093484 WO2020206847A1 (en) 2019-04-10 2019-06-28 Blockchain-based data processing method and system, and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910286774.8A CN110011788B (en) 2019-04-10 2019-04-10 Data processing method, system and related equipment based on block chain

Publications (2)

Publication Number Publication Date
CN110011788A CN110011788A (en) 2019-07-12
CN110011788B true CN110011788B (en) 2020-12-25

Family

ID=67170964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910286774.8A Active CN110011788B (en) 2019-04-10 2019-04-10 Data processing method, system and related equipment based on block chain

Country Status (2)

Country Link
CN (1) CN110011788B (en)
WO (1) WO2020206847A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543488B (en) * 2019-09-11 2022-06-07 深圳市迅雷网络技术有限公司 Verification node updating method, device and equipment
CN110619022B (en) * 2019-09-20 2024-03-19 腾讯科技(深圳)有限公司 Node detection method, device, equipment and storage medium based on block chain network
CN110572473B (en) * 2019-09-20 2022-10-14 腾讯科技(深圳)有限公司 Block header synchronization method, equipment and computer readable storage medium
CN111083052B (en) * 2019-12-19 2022-01-28 度小满科技(北京)有限公司 Fragmentation method and device based on ordered balanced binary tree
CN111212074B (en) * 2020-01-02 2024-03-01 腾讯科技(深圳)有限公司 Blockchain-based qualification identification method, device, equipment and storage medium
CN111339191B (en) * 2020-02-20 2023-05-26 百度在线网络技术(北京)有限公司 Data storage method, device, equipment and medium of block chain
CN111370087A (en) * 2020-03-04 2020-07-03 田素芳 Residential health record management system based on block chain
CN111061813B (en) * 2020-03-16 2020-07-07 支付宝(杭州)信息技术有限公司 Method, apparatus and computing device for data synchronization in blockchain network
CN111444203B (en) * 2020-03-24 2021-09-28 腾讯科技(深圳)有限公司 Synchronous processing method, device, equipment and medium
CN111209346B (en) * 2020-04-24 2020-07-28 腾讯科技(深圳)有限公司 Block chain data archiving method and device and computer readable storage medium
CN111611319A (en) * 2020-06-08 2020-09-01 杭州复杂美科技有限公司 Distributed data storage method, device and storage medium
CN112165519B (en) * 2020-09-24 2024-03-26 普华云创科技(北京)有限公司 Synchronous node realization method and system for synchronizing data according to needs
CN112769894B (en) * 2020-12-17 2022-05-17 国网浙江省电力有限公司信息通信分公司 Equipment authentication method based on block chain Merkle tree verification
CN112291376B (en) * 2020-12-31 2021-04-09 腾讯科技(深圳)有限公司 Data processing method and related equipment in block chain system
CN112948350B (en) * 2021-02-02 2023-08-01 中央财经大学 Distributed ledger model cold data archiving and migration storage method based on MPT verification
CN113326332A (en) * 2021-06-18 2021-08-31 深圳前海微众银行股份有限公司 Snapshot synchronization method and device for block chain
CN117318914A (en) * 2023-09-12 2023-12-29 上海兴岩信息科技有限公司 Block chain service platform based on terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728941A (en) * 2017-09-28 2018-02-23 中国银行股份有限公司 A kind of block chain data compression method and system
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
CN108763303A (en) * 2018-04-20 2018-11-06 广东省科技基础条件平台中心 Platform verification method, device, computer equipment and storage medium
CN108805570A (en) * 2018-06-01 2018-11-13 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
US10187214B2 (en) * 2015-01-23 2019-01-22 Daniel Robert Ferrin Method and apparatus for the limitation of the mining of blocks on a block chain
CN109542979A (en) * 2018-11-19 2019-03-29 广州矩阵信息科技有限公司 A kind of block catenary system Fast synchronization and the mode of simple smart data storage

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445302B2 (en) * 2017-01-03 2019-10-15 International Business Machines Corporation Limiting blockchain size to optimize performance
CN107332876B (en) * 2017-05-31 2020-05-08 深圳前海微众银行股份有限公司 Method and device for synchronizing block chain state
CN108459929A (en) * 2018-03-28 2018-08-28 成都汇智远景科技有限公司 A kind of data back up method based on cloud computing
CN109145163B (en) * 2018-08-22 2021-08-24 深圳前海微众银行股份有限公司 Block chain data capacity reduction method and device and storage medium
CN109543455B (en) * 2018-11-06 2021-07-13 联动优势科技有限公司 Data archiving method and device for block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10187214B2 (en) * 2015-01-23 2019-01-22 Daniel Robert Ferrin Method and apparatus for the limitation of the mining of blocks on a block chain
CN107728941A (en) * 2017-09-28 2018-02-23 中国银行股份有限公司 A kind of block chain data compression method and system
CN108763303A (en) * 2018-04-20 2018-11-06 广东省科技基础条件平台中心 Platform verification method, device, computer equipment and storage medium
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
CN108805570A (en) * 2018-06-01 2018-11-13 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN109542979A (en) * 2018-11-19 2019-03-29 广州矩阵信息科技有限公司 A kind of block catenary system Fast synchronization and the mode of simple smart data storage

Also Published As

Publication number Publication date
CN110011788A (en) 2019-07-12
WO2020206847A1 (en) 2020-10-15

Similar Documents

Publication Publication Date Title
CN110011788B (en) Data processing method, system and related equipment based on block chain
US11349674B2 (en) Digital certificate management method and apparatus, computer device, and storage medium
US20200382326A1 (en) Digital certificate verification method and apparatus, computer device, and storage medium
CN110060064B (en) Transaction information verification method and related device
WO2021031473A1 (en) Blockchain asset processing method based on multiple asset models and related device
CN109271115B (en) Storage sharing method and device and block chain distributed network topology
CN110825349A (en) Random number generation method, block chain node, system and medium
US10848466B2 (en) Method, server and storage medium for data distribution
US10778603B2 (en) Systems and methods for controlling access to broker resources
CN110473104B (en) Transaction processing method and related equipment
CN111163182A (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN111414373A (en) Consensus method and consensus system
CN109309651A (en) A kind of document transmission method, device, equipment and storage medium
CN112671720A (en) Token construction method, device and equipment for cloud platform resource access control
CN113505354B (en) Data processing method, device and storage medium
CN111294390A (en) Block data rapid synchronization method, device, equipment and storage medium
KR20180005542A (en) Apparatus and method for verifing data integrity
CN111506327A (en) Block chain node hot upgrading method and related equipment
CN110245912A (en) A kind of electronic contract signature method, apparatus, storage medium and terminal device
CN107566422B (en) Third-party user verification method
CN115809879A (en) Block chain data processing method, device, equipment and storage medium
CN112751878B (en) Page request processing method and device
CN111724165B (en) Block chain-based transaction verification method and device, electronic equipment and medium
CN114912097A (en) Certificate verification method and device, electronic equipment and storage medium
CN111212037B (en) Advertisement data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211008

Address after: 518000 floors 21-23, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, community science and technology south road, high tech Zone, Yuehai street, Shenzhen, Guangdong

Patentee after: Xunlei Networking Technologies, Ltd.

Address before: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right