Transaction recording method, transaction query method, electronic equipment and storage medium

A technology of transaction records and query methods, applied in the field of blockchain, can solve the problems of high false alarm rate and inability to adjust the length of the array.

Active Publication Date: 2021-05-11
HANGZHOU QULIAN TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, as the number of recorded transactions increases, the number of marked positions in the array increases, and the length of the array in the Bloom filter cannot be adjusted. When querying transactions, non-existent transactions will be mapped to the array, and a The Bloom filter determines that there is a transaction that matches the queried transaction in the blockchain, but there is actually no transaction that matches the queried transaction in the blockchain, resulting in a high false positive rate

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
  • Transaction recording method, transaction query method, electronic equipment and storage medium
  • Transaction recording method, transaction query method, electronic equipment and storage medium
  • Transaction recording method, transaction query method, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0057] In order to illustrate the technical solutions described in this application, specific examples are used below to illustrate.

[0058]It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude one or more o...

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 is suitable for the technical field of block chains, and provides a transaction recording method, a transaction query method, electronic equipment and a storage medium. The transaction recording method comprises the steps that a hash value corresponding to a transaction is acquired, a character string corresponding to the hash value is determined, the character string is composed of characters at a preset position of the hash value, a numerical value corresponding to the character string is marked by adopting a preset identifier, the numerical value is stored in a block chain, and the preset identifier is used for representing that the transaction exists in the block chain. The character strings are extracted from the hash values corresponding to the transactions, and the numerical values correspond to the character strings, so that one transaction corresponds to one numerical value, and compared with a method that the transactions are mapped into the positions of the arrays by a Bloom filter, the transactions are mapped into the numerical values, so that the probability that multiple transactions correspond to one mapping can be reduced, namely the probability that the non-existing transaction is judged to exist is reduced, the false alarm rate in the transaction query process is reduced.

Description

technical field [0001] The application belongs to the technical field of blockchain, and in particular relates to a transaction recording method, a transaction query method, electronic equipment and a storage medium. Background technique [0002] When it is necessary to determine whether an element exists in a collection, the conventional method is to determine it by retrieving the elements in the collection, but as the number of elements in the collection increases, the retrieval speed will become slower and slower, for example, blockchain There are a large number of transactions in the blockchain. When receiving a query request from a user, it will be very slow to determine whether there is a transaction corresponding to the query request in the blockchain by means of retrieval. [0003] In the existing blockchain technology, Bloom filters are generally used to record transactions and determine whether transactions exist in the blockchain. The Bloom filter records the tra...

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/24
CPCG06F16/27G06F16/24
Inventor 蔡亮李伟匡立中曾磊梅王清
Owner HANGZHOU QULIAN TECH 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