Data operation evidence storage method and system

Through blockchain technology and consensus algorithm, an immutable fingerprint ledger is formed, which solves the risk of system super users modifying or deleting operation logs and ensures the authenticity and integrity of data operations.

CN118796934APending Publication Date: 2024-10-18LIAONING MOBILE COMM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311470000.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-06
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology cannot effectively prevent system super users from modifying or deleting operation logs and covering up the risk of illegal operations.

Method used

Using blockchain technology, the consensus key is calculated through the consensus algorithm between distributed nodes, and the data operation information is signed and verified to form a fingerprint account book that cannot be tampered with to ensure the authenticity and integrity of the record.

Benefits of technology

It realizes the non-tamperability and non-forgery of data operations, ensures the authenticity and integrity of records, and prevents super users from covering up illegal operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796934A_ABST
    Figure CN118796934A_ABST
Patent Text Reader

Abstract

The invention discloses a data operation evidence storage method and system.The data operation evidence storage method comprises the steps that a first node, a second node and a third node in distributed nodes use a consensus algorithm to obtain a consensus key through calculation, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure; the target node signs data operation information of the target node by using the consensus key to form a fingerprint account book, and the target node is a first node, a second node or a third node; the target node verifies the validity of the fingerprint account book through a consensus algorithm, and broadcasts the fingerprint account book; and after the fourth node receives the fingerprint account book, the fingerprint account book is stored in the public fingerprint account book library, and the fourth node is any one of the distributed nodes except the first node, the second node and the third node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of blockchain technology, and in particular, relates to a data operation evidence storage method and system. Background Art

[0002] With the development of science and technology, data has been fully integrated into all aspects of production, life, and social governance. Data has become a new production factor and an important productive force. In the new digital economy, data operations are becoming more frequent. For ordinary users, security technical means such as access control and log record auditing can be used to manage their behavior. However, the permission setting for system super users (such as DBA / root) cannot prevent them from having the permission to delete or modify log files. Therefore, there is a risk that super users can modify or delete their own operation logs to cover up illegal operations. Summary of the invention

[0003] The embodiments of the present application provide a data operation evidence storage method and system, which can record the data operation information of the node, and adopt the tamper-proof characteristics of the blockchain to effectively ensure the authenticity and integrity of the records.

[0004] In a first aspect, an embodiment of the present application provides a data operation evidence storage method, the method comprising:

[0005] The first node, the second node and the third node in the distributed nodes use a consensus algorithm to calculate a consensus key, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure;

[0006] The target node uses the consensus key to sign its own data operation information to form a fingerprint account book, and the target node is the first node, the second node or the third node;

[0007] The target node verifies the validity of the fingerprint ledger through the consensus algorithm and broadcasts the fingerprint ledger;

[0008] After receiving the fingerprint ledger, the fourth node stores the fingerprint ledger in a public fingerprint ledger library. The fourth node is any node among the distributed nodes except the first node, the second node and the third node.

[0009] In a second aspect, an embodiment of the present application provides a data operation evidence storage system, the system comprising distributed nodes, the distributed nodes comprising a first node, a second node, a third node and a fourth node,

[0010] The first node, the second node and the third node use a consensus algorithm to calculate a consensus key, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure;

[0011] A target node is used to sign its own data operation information using the consensus key to form a fingerprint ledger, and the target node is the first node, the second node or the third node;

[0012] The target node is further used to verify the validity of the fingerprint ledger through the consensus algorithm and broadcast the fingerprint ledger;

[0013] The fourth node is used to store the fingerprint ledger in a public fingerprint ledger library after receiving the fingerprint ledger, and the fourth node is any node among the distributed nodes except the first node, the second node and the third node.

[0014] The data operation notarization method and system of the embodiment of the present application can construct a distributed operation fingerprint ledger with a ternary tree data structure. Each node maintains the consistency of the ledger database in the network by using the proposed consensus algorithm, and reaches a consensus between individuals who have no trust in each other. This can ensure that the operation fingerprint of the data cannot be tampered with or forged, and effectively guarantee the authenticity and integrity of the record. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0016] Figure 1 It is a flowchart of a data operation evidence storage method provided by an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of a ternary tree data structure provided by an embodiment of the present application;

[0018] Figure 3 It is a flowchart of a data operation evidence storage method provided by an embodiment of the present application;

[0019] Figure 4 This is a schematic diagram of the architecture of a data operation evidence storage method application provided by an embodiment of the present application;

[0020] Figure 5 It is a structural diagram of a data operation evidence storage system provided by yet another embodiment of the present application. DETAILED DESCRIPTION

[0021] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0022] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0023] In order to solve the problems in the prior art, the present application provides a data operation evidence storage method and system. The data operation evidence storage method provided by the present application is first introduced below.

[0024] Figure 1 The following is a flow chart of a data operation evidence storage method provided by an embodiment of the present application. Figure 1 As shown, the data operation evidence storage method provided in the embodiment of the present application includes the following steps 101 to 104, wherein:

[0025] Step 101: The first node, the second node and the third node in the distributed nodes use a consensus algorithm to calculate a consensus key, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure.

[0026] For example, Figure 2 The schematic diagram of the ternary tree data structure shown in the figure shows that the nodes corresponding to user A, user B and user C are the first node, the second node and the third node respectively. These three nodes calculate the consensus key according to the consensus algorithm.

[0027] In this step, the first node, the second node, and the third node each perform calculations and can obtain the same consensus key.

[0028] Step 102: The target node uses the consensus key to sign its own data operation information to form a fingerprint ledger. The target node is the first node, the second node, or the third node.

[0029] The first node, the second node, and the third node use their respective data operation information, such as a file hash value or transaction details, as a message, and use the previously generated consensus key K to digitally sign the message to generate a signature value, thus forming an operation fingerprint ledger containing the operation information and signature. The content of each operation fingerprint in the fingerprint ledger includes:

[0030] -Hash value of the operation: a digital fingerprint of the operation content generated by a hash function;

[0031] - Timestamp: the time when the operation occurred;

[0032] -User ID: the identity of the person who initiated the operation;

[0033] -Signature value: the result of signing with the consensus key;

[0034] -Other relevant data: such as operation type, etc.;

[0035] Combining this information into an operation fingerprint and recording it in a distributed fingerprint ledger ensures the non-repudiation and integrity of data operations by nodes.

[0036] In this step, after obtaining the consensus key, the first node, the second node, and the third node use the consensus key to sign the data operation information of their own operations on the data to obtain a fingerprint ledger. For example, if the first node operates on the data, the first node signs its own data operation information to obtain a fingerprint ledger.

[0037] Step 103: The target node verifies the validity of the fingerprint ledger through the consensus algorithm and broadcasts the fingerprint ledger.

[0038] For example, the first node verifies the validity of the fingerprint ledger through a consensus algorithm, and after the verification is passed, broadcasts the fingerprint ledger to other nodes in the distributed nodes.

[0039] Exemplarily, the broadcast content may include:

[0040] -Block header: contains version number, timestamp, Merkle tree root, nonce and other information;

[0041] - Operation fingerprint set: all operation fingerprints contained in this block;

[0042] -Merkle tree: construct the operation fingerprint set into a Merkle tree, and the root hash is used as part of the block header;

[0043] -Consensus result: the output of the consensus algorithm, proving that the block has passed the consensus;

[0044] -Block hash: The hash value calculated from the block header and the operation fingerprint set is used as the block identifier;

[0045] The block containing the above content is broadcast to the entire network. Other nodes can verify the content with the block hash, and then verify the consensus result through the consensus algorithm. If they are consistent, they will accept the block and link it to their own blockchain. This ensures that all nodes in the network will eventually reach a consensus and maintain a consistent distributed fingerprint ledger, also known as a public fingerprint ledger library.

[0046] Step 104: After receiving the fingerprint ledger, the fourth node stores the fingerprint ledger in a public fingerprint ledger library. The fourth node is any node among the distributed nodes except the first node, the second node and the third node.

[0047] In the above, in a distributed environment, the first node, the second node and the third node in the distributed node use a consensus algorithm to calculate a consensus key; the target node uses the consensus key to sign its own data operation information to form a fingerprint account book, and the target node is the first node, the second node or the third node; the target node verifies the validity of the fingerprint account book through the consensus algorithm and broadcasts the fingerprint account book; after the fourth node receives the fingerprint account book, it stores the fingerprint account book in the public fingerprint account book library. Through the above steps, a distributed operation fingerprint account book with a ternary tree data structure is constructed. Each node maintains the consistency of the account database in the network by using the proposed consensus algorithm, and reaches a consensus between individuals who have no trust in each other, which can ensure that the operation fingerprint of the data cannot be tampered with, cannot be forged, and has traceability. The target node can record the data operation information of the node, and adopts the tamper-proof characteristics of the blockchain to effectively ensure the authenticity and integrity of the record.

[0048] In some embodiments of the present application, the first node, the second node, and the third node use a consensus algorithm to calculate a consensus key, including:

[0049] The first node sends first information to the second node, where the first information includes a first identifier of the first node, a first random number selected by the first node, and a first initial update value of the first node;

[0050] The second node sends second information to the third node, where the second information includes a second identifier of the second node, a second random number selected by the second node, and a second initial update value of the second node;

[0051] The third node sends third information to the first node, where the third information includes a third identifier of the third node, a third random number selected by the third node, and a third initial update value of the third node;

[0052] The first node, the second node and the third node use a consensus algorithm according to the information they receive to calculate a consensus key.

[0053] Specifically, the first information is (ID A , r A ,u A ), where ID A is the first identifier, r A is the first random number, u A is the first initial update value.

[0054] The first initial update value is calculated based on the selected generator and the fourth random number selected by the first node; specifically, based on the discrete logarithm problem, a group G with a generator of g and an order of q is selected in the system initialization phase. Set the hash function to H 1 :{0,1} * →Z q , H 2 :Z q *Z q →{0,1} l , where l is the length of q.

[0055] Choose a random number x∈Z q , and calculate y = g x .

[0056] The first node selects a fourth random number t A , t A ∈Z q ,calculate

[0057] The second information is (ID B , r B ,u B ), where ID B is the second identifier, r B is the second random number, u B is the second initial update value.

[0058] The second initial update value is calculated based on the generator and the fifth random number selected by the second node. For example, the second node selects the fifth random number t B , t B ∈Z q ,calculate

[0059] The third information is (ID C , r C ,u C ), where ID C is the third identifier, r C is the third random number, u C is the third initial update value.

[0060] The third initial update value is calculated based on the generator and the sixth random number selected by the third node. Exemplarily, the third node selects the sixth random number t C , t C ∈Z q ,calculate

[0061] The first node, the second node and the third node respectively use the consensus algorithm according to the information received by each node to calculate the consensus key. Specifically, the steps include:

[0062] (1) The first node performs calculation according to the fourth random number, the third identifier, the third random number, and the third initial update value to obtain a first result value and a second result value.

[0063] The first node calculates the first result value according to the following expression:

[0064]

[0065] Among them, s A is the partial signature value of the first node;

[0066] The first node calculates the second result value according to the following expression:

[0067]

[0068] (2) The first node sends the first result value and the second result value to the second node.

[0069] (3) The second node performs calculation according to the fifth random number, the first identifier, the first random number, and the first initial update value to obtain a third result value and a fourth result value.

[0070] The second node calculates the third result value according to the following expression:

[0071]

[0072] Among them, s B is the partial signature value of the second node;

[0073] The second node calculates the fourth result value according to the following expression:

[0074]

[0075] (4) The second node sends the third result value and the fourth result value to the third node.

[0076] (5) The third node performs calculation according to the sixth random number, the second identifier, the second random number, and the second initial update value to obtain a fifth result value and a sixth result value.

[0077] The third node calculates the fifth result value according to the following expression:

[0078]

[0079] Among them, s c is the partial signature value of the third node;

[0080] The third node calculates the sixth result value according to the following expression:

[0081]

[0082] (6) The third node sends the fifth result value and the sixth result value to the first node.

[0083] (7) The first node, the second node, and the third node calculate the consensus key based on the result values ​​they receive.

[0084] This step specifically includes: the first node performs calculation according to the fifth result value, the sixth result value and the first random number to obtain the consensus key;

[0085] The second node performs calculation according to the first result value, the second result value and the second random number to obtain the consensus key;

[0086] The third node performs calculation according to the third result value, the fourth result value and the third random number to obtain the consensus key.

[0087] Specifically, the first node calculates the consensus key according to the following expression:

[0088]

[0089] The second node calculates the consensus key according to the following expression:

[0090]

[0091] The third node calculates the consensus key according to the following expression:

[0092]

[0093] Consensus key K <2,0> =H 2 (Z 1 ,Z 2 ). The negotiated key is that the three nodes jointly calculate and generate the same key. 1 ,Z 2 , enter H 2 The hash function obtains the consensus key.

[0094] In another embodiment of the present application, before the first node, the second node, and the third node in the distributed nodes use a consensus algorithm to calculate and obtain a consensus key, the method further includes:

[0095] Constructing the ternary tree data structure, each member node in the ternary tree data structure includes a block header and a block body, and the consensus key of the root node in the ternary tree data structure is calculated according to the consensus key shared by all its child nodes;

[0096] The three leaf nodes of the first root node in the ternary tree data structure are used as the first node, the second node and the third node.

[0097] like Figure 2 As shown, a ternary tree data structure is constructed, in which each root node has three child nodes.

[0098] In another embodiment of the present application, the method further includes:

[0099] In the case where the distributed nodes include a fifth node and a sixth node, the fifth node and the sixth node are used as two leaf nodes of a second root node in the ternary tree data structure, and the second root node has only two leaf nodes.

[0100] In the case where there are multiple administrator nodes in the distributed nodes, for example, in addition to the first node, the second node and the third node being administrator nodes, if administrator nodes D and E are also included, then administrator nodes D and E are connected to leaf nodes with lower heights, for example, the leaf nodes with the lowest height that can be currently inserted into the ternary tree data structure. <2,0> Auxiliary generation, re-execute the above algorithm for calculating the consensus key to generate the key K in the layer where the member is located <1,0> And so on, until the final consensus K is generated. <0,0>, used to digitally sign public operation fingerprints. When there are multiple users, they can be inserted into the lower leaf nodes of the tree, and then the upper key can be used to help generate the lower key, and so on to generate the final consensus key.

[0101] The following is an example of the data operation evidence storage method provided in the embodiment of the present application.

[0102] like Figure 3 As shown, the specific process is as follows:

[0103] Step 1, construct the blockchain structure of the ternary tree;

[0104] Step 2: User A (i.e., the first node) enters his / her identity ID and (ID A , r A ,u A )information;

[0105] Step 3: User B (i.e., the second node) enters his / her identity ID and (ID B , r B ,u B )information;

[0106] Step 4: User C (i.e., the third node) enters his / her identity ID and (ID C , r C ,u C )information;

[0107] Step 5: User A, User B, and User C use the consensus algorithm to calculate the consensus key K.

[0108] Step 6: User A, User B, and User C use the consensus key K to sign their own operations to form a fingerprint ledger;

[0109] Step 7: After verifying the validity of the fingerprint ledger through the consensus algorithm, broadcast the block record to the entire network;

[0110] Step 8: Write to the fingerprint ledger. All other nodes in the network check the correctness of the block. If there is no error, they will continue to the next block after this block, thus forming an operation fingerprint library blockchain.

[0111] Attached Figure 4 The schematic diagram of the architecture of the data operation evidence storage method is shown, which mainly involves the network layer, data layer and application layer. The present invention is described in detail.

[0112] First, at the network layer, the blockchain is a distributed system based on IP communication protocols and peer-to-peer networks. It does not rely on centralized server nodes to forward messages, but each node participates in the forwarding of messages. Therefore, the P2P network has higher security than the traditional network. If any node is attacked, it will not affect the entire network. All nodes save the status information of the entire system.

[0113] Secondly, at the data level, a distributed operation fingerprint ledger based on a ternary tree data structure is constructed. Each node maintains the consistency of the ledger database in the network by using the consensus algorithm proposed in the present invention. The algorithm reaches a consensus between individuals who have no trust in each other without central control. It can ensure that the operation fingerprint of the data cannot be tampered with, cannot be forged, and has traceability.

[0114] Thirdly, at the application level, the blockchain designed in step 2 is used to replace the traditional log management system, which significantly reduces the high cost of traditional systems in terms of ledger maintenance and retrieval.

[0115] The construction of the ternary tree data structure blockchain, such as Figure 2 As shown, the present invention uses a ternary key tree to organize members and establish the data structure of the blockchain. In the application scenario of processing integrity verification, especially when verifying in a distributed environment, the ternary tree will greatly reduce the amount of data transmission and the complexity of calculation. Figure 2 is the logical structure of the ternary tree. Each member node is divided into two parts: the block header and the block body (including operation data), which are represented by square nodes in the figure. The circular nodes represent the consensus key nodes of this layer. Assuming the height of the key tree is h,<l,v> represents the vth node in the lth layer of the key tree, then 0≤l≤h, 0≤v≤2. The root node <0,0> is located in the 0th layer, and the bottom leaf node is located in the hth layer. There are two types of nodes in the key tree: leaf nodes and intermediate nodes CN j (i.e. <j,0>, 0≤j≤h-1), the intermediate node is the logical node, and the private key of the root node is the consensus key shared by all members.

[0116] Calculate the consensus key:

[0117] (1) First, the public parameters and identifiers used in the protocol are defined as follows: Based on the discrete logarithm problem, at the system initialization stage, a group G with a generator of g and an order of q is selected. The hash function is set to H 1 :{0,1} * →Z q , H 2 :Z q *Z q →{0,1} l, where l is the length of q. Select a random number x∈Zq and calculate y=g x KGC publishes the public system parameters MPK = (G, g, y, H 1 , H 2 ). 1 and H 2 is a hash function, Z q Represents the ring of integers, where q is a large prime number.

[0118] Use the user ID as its public key and calculate r ID =g k ,s ID =k+H 1 (ID,r ID )x is the user's private key pair, where k∈Z q . Users can use the equation To verify whether your public-private key pair is correct.

[0119] (2) For example, if there are three super users A, B, and C, the consensus key will be calculated as follows:

[0120] 1) A selects the fourth random number t A , t A ∈Z q ,calculate (ID A , r A ,u A ) is sent to B; B selects the fifth random number t B , t B ∈Z q ,calculate (ID B , r B ,u B ) is sent to C; C selects the sixth random number t C , t C ∈Z q ,calculate (ID C , r C ,u C ) is sent to A.

[0121] 2) A calculation (Z 11 , Z 12 ) is sent to B; B calculates (Z 21 , Z 22 ) is sent to C; C calculates (Z 31 , Z 32 ) is sent to A.

[0122] 3) A calculation B Calculation C calculation

[0123] because So A, B, and C negotiate the consensus key K <2,0> =H 2 (Z 1 ,Z 2 ).

[0124] (3) If there are multiple administrators, connect members D and E to leaf nodes with lower heights. <2,0> Auxiliary generation, re-execute the above three-party consensus building protocol to generate the key K in the layer where the member is located <1,0> And so on, until the final consensus K is generated. <0,0> , used to digitally sign the public operation fingerprint.

[0125] Data operation and evidence collection process

[0126] In order to make the operation evidence of super users easy to combine and retrieve, the process of evidence storage and retrieval is designed to include multiple inputs and outputs, that is, multiple operations can be recorded in one block. From generation to propagation in the network, to verification by the entire network node, and finally recorded in the fingerprint ledger of the blockchain, it constitutes the entire life cycle of the entire data operation access process. The specific process is as follows Figure 4 shown.

[0127] 1. New operation behavior evidence means that super administrators A, B, and C use the consensus algorithm to digitally sign their respective operation behaviors to form an operation fingerprint ledger.

[0128] 2. The operation fingerprint ledger is broadcast to the entire network, and each node incorporates the received information into a block.

[0129] 3. Operation fingerprint verification;

[0130] 4. The verification results are propagated through the P2P network. When a node verifies the validity of the fingerprint ledger through the consensus algorithm, it broadcasts the block record to the entire network.

[0131] (5) Write to the fingerprint ledger. Other nodes in the entire network check the correctness of the block. If there is no error, they will continue to the next block after this block, thus forming an operation fingerprint library blockchain.

[0132] The data operation evidence storage system based on blockchain has the following advantages. First, it is trusted sharing. The data operation fingerprint ledger is unified and distributed for storage, ensuring that the operation behavior data is authentic and reliable and difficult to tamper with. Secondly, the super administrator's operation behavior data is uploaded to the chain, and the operator's identity is private. At the same time, in the scenario of processing integrity verification, especially when verifying in a distributed environment, the ternary tree will greatly reduce the amount of data transmission and the complexity of calculation. By using the on-chain and off-chain data signature comparison, the identity of the operator can be quickly traced, improving the efficiency of handling security incidents.

[0133] The above-mentioned data operation evidence storage method provided in the embodiment of the present application focuses on the structure and consensus algorithm of the blockchain. First of all, the blockchain refers to a data structure that combines data blocks (super user operation logs) in a ternary tree in chronological order. And the consensus algorithm designed by the present application forms a distributed fingerprint account book that cannot be tampered with or forged for its operation behavior.

[0134] The blockchain is constructed according to the ternary tree data structure, and a consensus algorithm is formed based on the administrator's identity ID. After each layer forms a consensus key, the logs operated by it are signed to form a log fingerprint data archive. After that, as more members join, the consensus key of the upper layer is formed layer by layer, and the operation logs of the members of the upper layer are signed to form the log fingerprint database of this layer. Until the final consensus key K<0,0> is generated, the blockchain is created. This ensures that each member in the structure stores the consensus key in a distributed manner, and the information has the properties of being unforgeable, verifiable, traceable, and non-repudiation, so as to realize the chain operation of the super user operation log.

[0135] The data operation evidence storage system based on blockchain has the following advantages. First, it is trusted sharing. The data operation fingerprint ledger is unified and distributed for storage, ensuring that the operation behavior data is authentic and reliable and difficult to tamper with. Secondly, the super administrator's operation behavior data is uploaded to the chain, and the operator's identity is private. At the same time, in the scenario of processing integrity verification, especially when verifying in a distributed environment, the ternary tree will greatly reduce the amount of data transmission and the complexity of calculation. By using the on-chain and off-chain data signature comparison, the identity of the operator can be quickly traced, improving the efficiency of handling security incidents.

[0136] like Figure 5 As shown, the embodiment of the present application also provides a data operation evidence storage system, the system comprising: distributed nodes, the distributed nodes comprising a first node 501, a second node 502, a third node 503 and a fourth node 504,

[0137] The first node 501, the second node 502 and the third node 503 use a consensus algorithm to calculate a consensus key, and the first node 501, the second node 502 and the third node 503 are leaf nodes of the same root node in a ternary tree data structure;

[0138] A target node is used to sign its own data operation information using the consensus key to form a fingerprint ledger, and the target node is the first node 501, the second node 502 or the third node 503;

[0139] The target node is further used to verify the validity of the fingerprint ledger through the consensus algorithm and broadcast the fingerprint ledger;

[0140] The fourth node 504 is used to store the fingerprint ledger in the public fingerprint ledger library after receiving the fingerprint ledger. The fourth node 504 is any node in the distributed nodes except the first node 501, the second node 502 and the third node 503. Figure 5 As shown in FIG. 1 , the fingerprint ledger is broadcast by the third node 503 . It should be noted that the first node 501 and the second node 502 may also broadcast the fingerprint ledger.

[0141] In some embodiments of the present application, the first node 501 is further used to send first information to the second node 502, where the first information includes a first identifier of the first node 501, a first random number selected by the first node 501, and a first initial update value of the first node 501;

[0142] The second node 502 is further used to send second information to the third node 503, where the second information includes a second identifier of the second node 502, a second random number selected by the second node 502, and a second initial update value of the second node 502;

[0143] The third node 503 is further used to send third information to the first node 501, where the third information includes a third identifier of the third node 503, a third random number selected by the third node 503, and a third initial update value of the third node 503;

[0144] The first node 501, the second node 502 and the third node 503 are further configured to calculate a consensus key using a consensus algorithm according to the information received by each node.

[0145] In some embodiments of the present application, the first node 501 is further used to perform calculation according to the fourth random number, the third identifier, the third random number and the third initial update value to obtain a first result value and a second result value; and send the first result value and the second result value to the second node 502;

[0146] The second node 502 is further configured to perform calculation according to the fifth random number, the first identifier, the first random number, and the first initial update value to obtain a third result value and a fourth result value; and send the third result value and the fourth result value to the third node 503;

[0147] The third node 503 is further configured to perform calculation according to the sixth random number, the second identifier, the second random number, and the second initial update value to obtain a fifth result value and a sixth result value; and send the fifth result value and the sixth result value to the first node 501;

[0148] The first node 501, the second node 502 and the third node 503 are also used to calculate the consensus key according to the result values ​​received by each of them.

[0149] In some embodiments of the present application, the first node 501 is further used to calculate according to the fifth result value, the sixth result value and the first random number to obtain the consensus key;

[0150] The second node 502 is further configured to perform calculation according to the first result value, the second result value and the second random number to obtain the consensus key;

[0151] The third node 503 is further used to perform calculation according to the third result value, the fourth result value and the third random number to obtain the consensus key.

[0152] In some embodiments of the present application, the first initial update value is calculated based on the selected generator and a fourth random number selected by the first node;

[0153] The second initial update value is calculated based on the generator and a fifth random number selected by the second node;

[0154] The third initial update value is calculated based on the generator and a sixth random number selected by the third node.

[0155] In some embodiments of the present application, the system also includes a construction module for constructing the ternary tree data structure, each member node in the ternary tree data structure includes a block header and a block body, and the consensus key of the root node in the ternary tree data structure is calculated based on the consensus key shared by all its child nodes; the three leaf nodes of the first root node in the ternary tree data structure are used as the first node 501, the second node 502 and the third node 503.

[0156] In some embodiments of the present application, the building module is also used to, when the distributed nodes include a fifth node and a sixth node, use the fifth node and the sixth node as two leaf nodes of the second root node in the ternary tree data structure, and the second root node has only two leaf nodes.

[0157] The data operation evidence storage system provided in the embodiment of the present application can implement each process implemented by the aforementioned data operation evidence storage method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0158] In addition, in combination with the data operation evidence storage method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data operation evidence storage methods in the above embodiment is implemented.

[0159] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0160] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0161] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0162] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0163] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A data operation evidence storage method, characterized in that: The method comprises: The first node, the second node and the third node in the distributed nodes use a consensus algorithm to calculate a consensus key, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure; The target node uses the consensus key to sign its own data operation information to form a fingerprint account book, and the target node is the first node, the second node or the third node; The target node verifies the validity of the fingerprint ledger through the consensus algorithm and broadcasts the fingerprint ledger; After receiving the fingerprint ledger, the fourth node stores the fingerprint ledger in a public fingerprint ledger library. The fourth node is any node among the distributed nodes except the first node, the second node and the third node.

2. The method according to claim 1, characterized in that: The first node, the second node, and the third node use a consensus algorithm to calculate a consensus key, including: The first node sends first information to the second node, where the first information includes a first identifier of the first node, a first random number selected by the first node, and a first initial update value of the first node; The second node sends second information to the third node, where the second information includes a second identifier of the second node, a second random number selected by the second node, and a second initial update value of the second node; The third node sends third information to the first node, where the third information includes a third identifier of the third node, a third random number selected by the third node, and a third initial update value of the third node; The first node, the second node and the third node use a consensus algorithm according to the information they receive to calculate a consensus key.

3. The method according to claim 2, characterized in that The first node, the second node, and the third node use a consensus algorithm according to the information received by each node to calculate a consensus key, including: The first node performs calculation according to a fourth random number, the third identifier, the third random number, and the third initial update value to obtain a first result value and a second result value, wherein the fourth random number is selected by the first node; The first node sends the first result value and the second result value to the second node; The second node performs calculation according to a fifth random number, the first identifier, the first random number, and the first initial update value to obtain a third result value and a fourth result value, wherein the fifth random number is selected by the second node; The second node sends the third result value and the fourth result value to the third node; The third node performs calculation according to the sixth random number, the second identifier, the second random number, and the second initial update value to obtain a fifth result value and a sixth result value, wherein the sixth random number is selected by the third node; The third node sends the fifth result value and the sixth result value to the first node; The first node, the second node, and the third node calculate the consensus key according to the result values ​​received by each node.

4. The method according to claim 3, characterized in that The first node, the second node, and the third node calculate the consensus key according to the result values ​​received by each node, including: The first node performs calculation according to the fifth result value, the sixth result value, and the first random number to obtain the consensus key; The second node performs calculation according to the first result value, the second result value and the second random number to obtain the consensus key; The third node performs calculation according to the third result value, the fourth result value and the third random number to obtain the consensus key.

5. The method according to claim 2, characterized in that: The first initial update value is calculated based on the selected generator and a fourth random number selected by the first node; The second initial update value is calculated based on the generator and a fifth random number selected by the second node; The third initial update value is calculated based on the generator and a sixth random number selected by the third node.

6. The method according to claim 1, characterized in that Before the first node, the second node, and the third node in the distributed nodes use a consensus algorithm to calculate and obtain a consensus key, the method further includes: Constructing the ternary tree data structure, each member node in the ternary tree data structure includes a block header and a block body, and the consensus key of the root node in the ternary tree data structure is calculated according to the consensus key shared by all its child nodes; The three leaf nodes of the first root node in the ternary tree data structure are used as the first node, the second node and the third node.

7. The method according to claim 6, characterized in that The method further comprises: In the case where the distributed nodes include a fifth node and a sixth node, the fifth node and the sixth node are used as two leaf nodes of a second root node in the ternary tree data structure, and the second root node has only two leaf nodes.

8. A data operation evidence storage system, characterized in that: The system includes distributed nodes, wherein the distributed nodes include a first node, a second node, a third node and a fourth node. The first node, the second node and the third node use a consensus algorithm to calculate a consensus key, and the first node, the second node and the third node are leaf nodes of the same root node in a ternary tree data structure; A target node is used to sign its own data operation information using the consensus key to form a fingerprint ledger, and the target node is the first node, the second node or the third node; The target node is further used to verify the validity of the fingerprint ledger through the consensus algorithm and broadcast the fingerprint ledger; The fourth node is used to store the fingerprint ledger in a public fingerprint ledger library after receiving the fingerprint ledger, and the fourth node is any node among the distributed nodes except the first node, the second node and the third node.

9. The system according to claim 8, characterized in that The first node is further used to send first information to the second node, where the first information includes a first identifier of the first node, a first random number selected by the first node, and a first initial update value of the first node; The second node is further used to send second information to the third node, where the second information includes a second identifier of the second node, a second random number selected by the second node, and a second initial update value of the second node; The third node is further used to send third information to the first node, where the third information includes a third identifier of the third node, a third random number selected by the third node, and a third initial update value of the third node; The first node, the second node and the third node are further configured to calculate a consensus key using a consensus algorithm according to the information received by each node.

10. The system according to claim 9, characterized in that The first node is further configured to perform calculation according to the fourth random number, the third identifier, the third random number, and the third initial update value to obtain a first result value and a second result value; and send the first result value and the second result value to the second node; The second node is further used to perform calculation according to a fifth random number, the first identifier, the first random number and the first initial update value to obtain a third result value and a fourth result value; and send the third result value and the fourth result value to the third node; The third node is further configured to perform calculation according to the sixth random number, the second identifier, the second random number, and the second initial update value to obtain a fifth result value and a sixth result value; and send the fifth result value and the sixth result value to the first node; The first node, the second node and the third node are further used to calculate the consensus key according to the result values ​​received by each node.