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

Pending Publication Date: 2021-07-02
BEIJING RZXT TECH DEV CO LTD
View PDF15 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the space on the chain is limited, and it is impossible to store all the data provided by the oracle machine, resulting in incomplete data stored on the chain
Therefore, some smart contracts on the blockchain cannot query the necessary data to reach the trigger state, and thus cannot complete the corresponding transaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for forming data micro index in chain contract and electronic equipment
  • Method and device for forming data micro index in chain contract and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for forming a data micro index in an on-chain contract and electronic equipment. The method comprises the following steps: establishing a micro index for data under a chain according to a preset index compression method; calculating a hash value of the micro index under the chain; and storing the micro index and the hash value thereof in an on-chain contract. According to the method, the data provided by the oracle machine forms the micro index under the chain and then is stored in the on-chain contract, so that the occupied space on the chain is greatly reduced, a large amount of complete data can be inquired by storing a small amount of necessary data in the extremely small on-chain space, and the smooth completion of on-chain transactions is further ensured.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a method, device and electronic equipment for forming a data micro-index in a contract on the chain. Background technique [0002] The blockchain is a closed environment, and smart contracts on the chain cannot actively obtain real-world data off the chain. Moreover, the smart contract is a program that reaches the trigger state only when the corresponding conditions are met. If the triggering condition of the smart contract depends on the information under the blockchain, it is necessary to provide the information under the blockchain through the oracle machine and write it into the record on the blockchain. [0003] At present, with the continuous development of blockchain technology, the amount of data that the oracle machine needs to write into the contract on the chain is increasing. However, the space on the chain is limited, and it is impossible to store all...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/27G06F16/23
CPCG06F16/2272G06F16/27G06F16/23
Inventor 张诚朱国君张勇
Owner BEIJING RZXT TECH DEV CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products