Method and device for forming data micro index in chain contract and electronic equipment
An index and miniature technology, applied in the blockchain field, can solve problems such as limited space on the chain, incomplete data, and inability to store oracle data, so as to achieve the effect of reducing the occupied space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Such as figure 1 As shown, the embodiment of the present invention provides a method for forming a data micro-index in the contract on the chain, and the method is applied to the oracle machine, including:
[0044] S101, establish a micro-index for the data according to the preset index compression method under the chain;
[0045] S102, calculating the hash value of the micro-index under the chain;
[0046] S103. Save the micro index and its hash value in an on-chain contract.
[0047] With the continuous development of blockchain technology, the fields of smart contracts on the chain are becoming more and more extensive, and the scope and quantity of off-chain data that needs to be used are becoming more and more extensive. Using oracle machines to provide blockchain When downloading data, due to the limited storage space on the chain, it is impossible to store a large amount of data. In order to solve this problem, the present invention provides the above method: s...
Embodiment 2
[0098] Such as figure 2 As shown, another aspect of the present invention also includes a functional module architecture that is completely consistent with the aforementioned method flow, that is, the embodiment of the present invention also provides a device for forming a data micro-index in an on-chain contract, and the device is set in the oracle , including:
[0099] A micro-index building module 201, configured to build a micro-index for data under the chain according to a preset index compression method;
[0100] Hash value calculation module 202, used to calculate the hash value of the micro-index under the chain;
[0101] The on-chain contract writing module 203 is configured to save the micro index and its hash value in the on-chain contract.
[0102] Further, the micro-index building module is specifically used for:
[0103] Index data off-chain;
[0104] The index is compressed using a preset index compression method to obtain a miniature index.
[0105] Optio...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap