Data storage between different blockchain networks
Background technology: At present, data interaction between blockchains usually adopts the asset circulation method, and there is a problem that data cannot exist simultaneously on different blockchains.
Existing problem: For example, after the data on blockchain A is transferred to blockchain B, the corresponding data on blockchain A is destroyed, and cross-chain data storage cannot be achieved.
Invention content:
Method overview: The present invention provides a cross-blockchain data storage method, which realizes cross-chain verification, format conversion and storage of data through oracle contracts (Oracle Contract) and cross-chain contracts (Cross-chain Contract).
Main steps: including obtaining initial data from the first blockchain network, verifying data, converting data format, sending data to be transferred to the second blockchain network, and verifying and storing data in the second blockchain network.
Specific implementation method:
Data acquisition and verification: The first node obtains initial data from the first relay node through the first oracle contract and verifies the data format.
Data format conversion: After successful verification, the initial data format is converted from the first data format to the second data format according to the provisions of the second oracle contract.
Data transmission and storage: The first node sends the data to be transferred to the first relay node, the relay node sends the data to the second node, and the second node verifies the data and stores it in the second blockchain.
Technical details:
Oracle contract application: Oracle contract is used to realize the interaction between blockchain and external data, verify the data format attributes, and ensure the consistency and security of data.
Cross-chain data transmission: Encrypted transmission and decryption verification of cross-chain data are realized through relay nodes to ensure the security and integrity of data transmission.
Data storage mechanism: After the second node converts the successfully verified data into the third data format, it generates a block to be verified and broadcasts it to the blockchain network, and writes it to the blockchain after all nodes reach a consensus.
Devices and equipment:
Cross-blockchain data storage device: including acquisition module, verification module, conversion module and sending module, which are responsible for data acquisition, verification, format conversion and sending respectively.
Node device: including processor, memory and network interface, used to execute the cross-blockchain data storage method.
Application scenario:
Cross-chain data storage: applicable to multiple fields such as justice, finance, logistics, etc., to realize data sharing and interoperability between different blockchain networks.
Business callback and mapping relationship: The second node can determine the data classification and perform business callback according to the business contract, and establish a data mapping relationship table to facilitate data traceability and verification.
Advantages and effects:
Realize cross-chain data inter-existence: Solve the problem that data cannot exist on multiple blockchains at the same time in the existing technology, and improve the availability and interoperability of data.
Data security and integrity: Through the verification mechanism of oracle contracts and cross-chain contracts, ensure the security and integrity of data during cross-chain transmission.
Scalability and flexibility: Applicable to different types of blockchain networks, support cross-chain interaction between homogeneous chains and heterogeneous chains, and have good scalability and flexibility.
This document demonstrates the specific implementation process and application effect of the cross-blockchain data inter-existence method through detailed technical solutions and implementation examples, and provides a feasible solution to solve the problem of data sharing between blockchains.