Method and node for realizing decentralized retrieval on block chain, and block chain network

A decentralized and blockchain technology, applied in the computer field, can solve problems such as inconvenient and effective retrieval, and achieve the effect of fast retrieval

Pending Publication Date: 2020-11-24
厦门市易联众易惠科技有限公司
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In some cases, it is necessary to retrieve the transaction data on the blockchain, but the transaction data stored on the blockchain is inconvenient for effective retrieval due to its special data structure. In the worst case, it is necessary to traverse the entire block chain block data

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 node for realizing decentralized retrieval on block chain, and block chain network
  • Method and node for realizing decentralized retrieval on block chain, and block chain network
  • Method and node for realizing decentralized retrieval on block chain, and block chain network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is some embodiments of the present invention, but not all of them. Based on the implementation manners in the present invention, all other implementation manners obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the implementation manners in the present invention, all other implement...

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 provides a method and a node for realizing decentralized retrieval on a block chain, and a block chain network. The method comprises the following steps: S1, obtaining a primary key or akeyword of to-be-retrieved transaction data, and querying whether there is a record with the primary key or the keyword or not according to a first mapping table; S2, when the record exists, obtaining a first block hash of a current block at the tail of a linked list corresponding to the record; S3, obtaining transaction data of the current block from the block chain through the first block hash;S4, based on a preset second mapping table and the first block hash, obtaining a second block hash of a previous block of the current block; S5, judging whether the hash of the second block is zero or not; if not, executing step S6, and if so, executing step S7; S6, updating the first block hash into a second block hash, and returning to step S3; and S7, outputting all queried transaction data. Decentralized distributed quick retrieval in the block chain is realized.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, node and blockchain network for realizing decentralized retrieval on a blockchain. Background technique [0002] In the implementation of blockchain applications, a transaction generates a block, the transaction data is stored in the block in the form of plaintext or ciphertext, and the block data is linked according to the time sequence of the transaction. Each block data will calculate a hash value. When calculating the hash value, the transaction data and the hash value of the previous block will participate in the calculation. Therefore, if a block in the blockchain is maliciously tampered with, the hash value calculated using the modified block data will be inconsistent with the original hash value. By calculating the hash value of the subsequent block, it can be found that the block data has been tampered with. tamper. This is the fundamental principle behind ...

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/27G06F16/242G06F16/22
CPCG06F16/27G06F16/242G06F16/2282G06F16/2246G06F16/2255G06F16/278
Inventor 施建安叶荔姗关涛孙志伟林静
Owner 厦门市易联众易惠科技有限公司
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