Cross-chain data subscription method and related devices
Name and background:
Name: Cross-chain Data Subscription
Background technology: Blockchain technology has the characteristics of decentralization, openness and transparency. The cross-chain interaction technology between multiple blockchains enables information to circulate between different blockchains.
Technical field:
It involves the field of blockchain technology, specifically cross-chain data subscription, which aims to promote data circulation between blockchains, break data silos, and enhance the value of data utilization.
Content:
A cross-chain data subscription method is provided, which is applied to a multi-chain system including a data source blockchain and a subscription blockchain. The data source blockchain stores source data related to the target business, and the subscription blockchain requests and subscribes to these data in a cross-chain manner.
The method includes: responding to a subscription request to send a data description, receiving and reviewing the subscription contract code, deploying the subscription contract, executing the data screening logic and returning the target data.
Key steps:
Responding to a data query request: The data source blockchain responds to the data query request of the subscription blockchain and sends the relevant data description.
Receive and review the subscription contract code: The subscription blockchain publishes the subscription contract code across chains, and the first smart contract on the data source blockchain reviews the code.
Deployment of subscription contract: After the review is passed, the subscription contract code is published to the data source blockchain and deployed.
Execution of data screening logic: Call the subscription contract, filter the target data from the source data, and return it to the subscription blockchain.
Extended functions:
Qualification review: The data source blockchain also deploys a second smart contract for qualification review of the subscription blockchain.
Subscription interface authorization: The first smart contract also includes subscription interface authorization logic to set interface call permissions for the subscription blockchain.
Periodic call: The subscription blockchain can request the data source blockchain to call the subscription contract based on a preset time period or trigger condition.
Application scenario:
Commodity information traceability: As an application example, the data source blockchain stores commodity traceability information, and the subscription blockchain obtains this information through a cross-chain data subscription method to perform traceability business.
Device and system:
A cross-chain data subscription device is provided, including a sending unit, a receiving unit, a smart contract execution unit, etc., for implementing the above-mentioned cross-chain data subscription method.
The system includes a data source blockchain, a subscription blockchain, and a cross-chain connection mechanism, and implements cross-chain data subscription by deploying and calling smart contracts.
Technical Effect:
It promotes the data circulation between blockchains, breaks the data information island, and improves the value of data utilization.
The subscription contract code is built based on the data description determined by the data source blockchain, which effectively prevents the leakage of privacy-sensitive information and maintains the privacy security of users.
Short answer questions and answers:
What is the name?
Answer: Cross-Chain Data Subscription.
What type of system is the cross-chain data subscription method mainly used for?
Answer: The cross-chain data subscription method is mainly used in multi-chain systems including data source blockchain and subscription blockchain.
What role does the data source blockchain play in the cross-chain data subscription process?
Answer: The data source blockchain stores the source data related to the target business, responds to the data query request of the subscription blockchain, sends the relevant data description, receives and reviews the subscription contract code published by the subscription blockchain across the chain, deploys the subscription contract, and executes the data screening logic to return the target data.
How does the subscription blockchain obtain the target data?
Answer: The subscription blockchain sends a data query request to the data source blockchain in a cross-chain manner, receives the data description returned by the data source blockchain, formulates a subscription contract based on the data description, and publishes it to the data source blockchain across the chain. After the data source blockchain reviews and deploys the subscription contract, it executes the subscription contract to filter the target data and returns the target data to the subscription blockchain.
What is the key smart contract in the cross-chain data subscription method? What does it do?
Answer: The key smart contract in the cross-chain data subscription method is the first smart contract. Its functions include: reviewing the subscription contract code published by the subscription blockchain across the chain, and publishing it to the data source blockchain to deploy the subscription contract after the review is passed; executing the subscription interface authorization logic, and setting the interface call permission for the subscription contract for the subscription blockchain.
How does the cross-chain data subscription method prevent the leakage of privacy-sensitive information?
Answer: The cross-chain data subscription method effectively prevents the leakage of privacy-sensitive information by constructing the subscription contract code based on the data description determined by the data source blockchain, and deploying and calling the subscription contract in the data source blockchain. At the same time, the data description can be generated based on the source data after desensitization, which further protects the privacy information.
Give an example of the application scenario of the cross-chain data subscription method.
Answer: Product information traceability is an application scenario example. The data source blockchain stores the traceability information of the origin, production process, logistics and other information of the goods. The subscription blockchain operates e-commerce business, and needs to obtain this traceability information to prove the authenticity of the goods. Through the cross-chain data subscription method, the subscription blockchain can obtain the traceability information of the specified goods and perform the traceability business.
What are the main units of the cross-chain data subscription device?
Answer: The cross-chain data subscription device mainly includes a sending unit, a receiving unit and a smart contract execution unit. The sending unit is responsible for responding to data query requests and sending data descriptions; the receiving unit is responsible for receiving the subscription contract code and the subscription interface authorization application; the smart contract execution unit is responsible for calling the smart contract to review, deploy and execute the subscription contract, as well as execute the data screening logic and return the target data.