Unlock instant, AI-driven research and patent intelligence for your innovation.

Storage method and device for decentralized exchange and storage medium

A decentralization and exchange technology, applied in the computer field, can solve problems such as increasing the complexity of the system and not being directly applicable.

Inactive Publication Date: 2021-08-06
HANGZHOU FUZAMEI TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the state tree of the above-mentioned prior art cannot be directly applied to the AMM decentralized exchange and needs to be converted, which increases the complexity of the system, the present invention provides a storage method, device and Storage medium, suitable for AMM exchange

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
  • Storage method and device for decentralized exchange and storage medium
  • Storage method and device for decentralized exchange and storage medium
  • Storage method and device for decentralized exchange and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] A storage method for decentralized exchanges, which is suitable for AMM decentralized exchanges in the blockchain, stores transaction data through a tree structure, and the tree structure includes a state tree, such as figure 1 As shown, the state tree is used to store account state information and transaction pair information. The state tree includes an account branch tree and a transaction pair branch tree. The leaf nodes of the account branch tree correspond to user accounts one by one. The transaction The leaf nodes of the pair branch tree correspond to the transaction pair accounts one by one; the method includes:

[0035] Blockchain nodes obtain related transactions;

[0036] After the transaction is executed, the accounts and transaction pairs involved in the transaction are obtained, and the account status and transaction pair status are updated according to the transaction content.

[0037] Specifically, the state tree is a multi-fork tree.

[0038] Specifica...

Embodiment 2

[0044] A computer device comprising: one or more processors; memory for storing one or more programs which, when executed by the one or more processors, cause the The one or more processors execute the method as described in Embodiment 1.

[0045] A storage medium storing a computer program, when the program is executed by a processor, implements the method described in Embodiment 1 above.

[0046] Figure 4 It is a schematic structural diagram of a computer device provided in this embodiment.

[0047] Such as Figure 4 As shown, as another aspect, the present application also provides a computer device 500, including one or more central processing units (CPU) 501, which can be The program loaded into the random access memory (RAM) 503 by the part 508 executes various appropriate actions and processes. In the RAM 503, various programs and data necessary for the operation of the device 500 are also stored. The CPU 501 , ROM 502 , and RAM 503 are connected to each other via...

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 belongs to the technical field of computers, and particularly relates to a storage method and device for a decentralized exchange and a storage medium. The storage method for the decentralized exchange is suitable for the AMM decentralized exchange of a block chain, transaction data is stored through a tree structure, the tree structure comprises a state tree, the state tree is used for storing account state information and transaction pair information, and the state tree is used for storing account state information and transaction pair information. The state tree comprises an account branch tree and a transaction pair branch tree, leaf nodes of the account branch tree are in one-to-one correspondence with user accounts, and leaf nodes of the transaction pair branch tree are in one-to-one correspondence with transaction pair accounts; the method comprises the following steps: a block chain node obtains a related transaction; and after the transaction is executed, an account and a transaction pair involved in the transaction are acquired, and the account state and the transaction pair state are updated according to the transaction content. Transaction pair data can be well maintained, conversion is not needed, and the method can be directly adapted to an AMM exchange.

Description

technical field [0001] The invention belongs to the field of computer technology, and in particular relates to a storage method, device and storage medium for a decentralized exchange. Background technique [0002] The most prominent essential feature of blockchain is decentralization. At present, there are two decentralized exchange solutions on the blockchain, one is to provide liquidity in the form of an order book, representing exchanges such as Newdex, IDEX, DDEX, RadarRelay, EtherDelta, etc.; the other is to use automated market making (AMM) to provide liquidity, the representative exchanges are Uniswap, Bancor, etc. [0003] The order book contains a list of buy and sell orders, with buy orders called bids and sell orders called asks. The order book lists the number of tokens bid or asked at each price point. The highest bid (buy one) and lowest ask (sell one) is called the top of the book. They signal market sentiment and the bid and ask prices needed to get an o...

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/23G06F16/27G06Q40/04
CPCG06F16/2246G06F16/2365G06F16/27G06Q40/04
Inventor 俞铠俊王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD