Consistency storage method for transaction data of distributed application program

A distributed application and transactional data technology, applied in the field of consistent storage of transactional data in distributed applications, to achieve the effect of consistent storage

CN114764405APending Publication Date: 2022-07-19正链科技(深圳)有限公司
0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2022-07-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention discloses a transaction data consistency storage method of a distributed application program, which comprises a distributed consistency storage method of transaction data based on a p2p (peer-to-peer) network kademlia protocol, and is characterized in that: a transaction initiating node can store one lt, one lt, one lt, one lt, one lt, one lt, one lt, one lt, one lt, one lt and one lt; a key, a value gt, a key and a value gt; the key-value pair transaction data is stored to a plurality of nodes, meeting the relatively closest node logic exclusive or distance, on the p2p network, so that effective distributed symmetric storage of storage nodes of the transaction data on the p2p network is ensured, and the consistency storage effect of multi-node distributed synchronous storage data is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a distributed storage technology in a p2p network, in particular to a transaction data consistency storage method for distributed application programs. Background technique

[0002] Distributed storage is an important part of blockchain technology. The consistency of distributed storage is related to the effect and performance of distributed storage. The transaction data consistency storage method of the distributed application program of the invention ensures the effective distributed symmetrical storage of transaction data storage nodes on the p2p network, and achieves the consistent storage effect of multi-node synchronous storage data. SUMMARY OF THE INVENTION

[0003] In order to make up for the deficiencies of the prior art, the technical problem to be solved by the present invention is to design a synchronization technical solution for distributed transaction data storage with simple method and convenient implement...

Examples

Embodiment Construction

[0035] The present invention will be described below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0036] The method for consistent storage of transaction data of distributed applications in this specific embodiment includes a method for distributed consistent storage of transaction data based on p2p network kademlia protocol, characterized in that: a node can store a The key-value pair transaction data is stored in multiple nodes on the p2p network that satisfy the logical XOR distance of the nodes relatively close to ensure the effective distributed symmetrical storage of the transaction data storage nodes on the p2p network. The algorithm steps are as follows:

[0037] Step 1: Build the key-value pair relationship of transaction data data

[0038] Assume

[0039] A transaction initiates node A, which generates a transaction data data

[0040] Define the key-value pair, let

[0041] The hash value of the transaction data da...