Movatterモバイル変換


[0]ホーム

URL:


CN119831746B - A DAG-based blockchain parallel evidence storage and traceability method - Google Patents

A DAG-based blockchain parallel evidence storage and traceability method

Info

Publication number
CN119831746B
CN119831746BCN202510303293.9ACN202510303293ACN119831746BCN 119831746 BCN119831746 BCN 119831746BCN 202510303293 ACN202510303293 ACN 202510303293ACN 119831746 BCN119831746 BCN 119831746B
Authority
CN
China
Prior art keywords
transaction
timestamp
transactions
block
dag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202510303293.9A
Other languages
Chinese (zh)
Other versions
CN119831746A (en
Inventor
赵赫
盛念祖
刘少华
谭海波
李晓风
许金林
周桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Zhongke Lattice Technology Co ltd
Hefei Institutes of Physical Science of CAS
Original Assignee
Anhui Zhongke Lattice Technology Co ltd
Hefei Institutes of Physical Science of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Zhongke Lattice Technology Co ltd, Hefei Institutes of Physical Science of CASfiledCriticalAnhui Zhongke Lattice Technology Co ltd
Priority to CN202510303293.9ApriorityCriticalpatent/CN119831746B/en
Publication of CN119831746ApublicationCriticalpatent/CN119831746A/en
Application grantedgrantedCritical
Publication of CN119831746BpublicationCriticalpatent/CN119831746B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a block chain parallel storage evidence tracing method based on DAG, which comprises the steps of S1, a user signing data needing to be stored and then sending the data to a system as a transaction, wherein the system generates a unique transaction identifier, namely a transaction Key field, a transaction verification node checks data integrity and signature validity to obtain a stored transaction, S2 sequences the transaction according to a TimeStamp and a transaction Hash of the stored transaction, and achieves consensus of a transaction sequence through asynchronous communication among nodes, S3, verifying validity and conflict conditions of father nodes of the transaction in parallel, and writing the transaction into a corresponding account chain if the verification is passed, S4, periodically packing the transaction in a period of time into a new block, and uploading the block as a stable reference point of whole network synchronization to help the nodes to recover or join quickly. According to the DAG-based blockchain, a blockpack ordering step is not needed, and the speed exceeds the ordinary transfer transaction speed.

Description

Block chain parallel evidence-storing and tracing method based on DAG
Technical Field
The invention relates to the field of evidence storage and tracing, in particular to a block chain parallel evidence storage and tracing method based on DAG.
Background
In the federation chain, data access is a common function, where forensics and traceability are particularly critical. The forensic/traceability field is typically mapped by a unique identifier, which may represent a certificate, license, or commodity code.
Traditional blockchains rely on sequential execution of a single chain, resulting in insufficient performance on the chain, very limited data size per second, and only linear sequential chaining to ensure the correctness of the chaining. The single link structure of the conventional alliance link cannot flexibly connect and associate different types of data, and needs to be independently created and stored according to the service type or commodities under the same service, which causes redundancy of data on the link and rapid increase of data volume, thereby affecting the efficiency and expansibility of the link.
Based on the above problems, it is necessary to provide an efficient and effective evidence-preserving and tracing method.
Disclosure of Invention
The invention aims to solve the defect of data access function in a alliance chain, and provides a block chain parallel evidence storage tracing method based on DAG, thereby providing a more efficient and effective evidence storage tracing solution.
The invention provides a block chain parallel certification tracing method based on DAG, which comprises the following steps of S1, a user signing data needing certification and sending the data to a system as a transaction, wherein the system generates a unique transaction identifier, namely a transaction Key field, a transaction verification node checks data integrity and signature validity to obtain certification transaction, the certification transaction further comprises a time stamp TimeStamp, certification information Value, certification tracing service address NotionAddr, a sender address From and a Hash Value, S2, sequencing the transaction according to the TimeStamp of the certification transaction and the transaction Hash, wherein if the transaction A refers to the transaction B, the sequence of the transaction B is required to reach consensus of a transaction sequence through asynchronous communication among nodes before A, S3, the transaction verification node is used for checking validity and conflict conditions of a father node of the transaction in parallel, and if the verification is passed, the transaction is written into a corresponding account chain, S4, the transaction in a period is packaged into a new block, the block is used as a stable reference point of full network synchronization, and the quick recovery is assisted by the node.
Compared with the prior art, the invention has the following technical effects:
1. Based on the DAG type transaction structure, the block packing and sorting steps are not needed, and the speed exceeds the common transfer transaction speed.
2. The certificate-storing and tracing transaction can be written in when the transaction is received without going through a contract, and the sequence is determined according to the transaction Hash and the transaction TimeStamp, namely the transmission is operated.
In addition to the objects, features and advantages described above, the present invention has other objects, features and advantages. The present invention will be described in further detail with reference to the drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 is a transaction transmission diagram in a parallel provenance tracing method of the present invention;
FIG. 2 is a schematic diagram of four transactions to be sequenced enumerated in the parallel provenance tracing method of the present invention;
FIG. 3 is a schematic diagram of a transaction sequencing structure of four transactions in the parallel provenance tracing method of the present invention;
FIG. 4 is a schematic diagram of a provenance transaction write in a parallel provenance tracing method of the present invention;
FIG. 5 is a flow chart of the parallel memory card tracing method of the present invention;
fig. 6 shows the steps performed by the parallel memory certification tracing method of the present invention.
Detailed Description
The invention will be described in detail below with reference to the drawings in connection with embodiments.
DAG (Directed Acyclic Graph) is directed acyclic graph. The block chain based on DAG of the system mainly comprises a consensus node and a witness node.
Each account completes transaction by taking account chains (one account is used as a chain) as a unit, independently accounts, forms a chain structure according to the sequence, and the sending transaction and the receiving transaction of each account are independent and do not interfere with each other. In addition, in one account chain, the transaction block is transmitted, and meanwhile, a DAG structure is formed by supporting a plurality of existing transactions.
The common node is used as a core hub of block circulation and is composed of authoritative trusted nodes to complete the functions of block verification, block witness, block uplink, block broadcasting, block storage and the like. Witness nodes are responsible for supervising and propagating the ledgers. And the data on the chain is pulled to carry out comparison and verification on the data on the chain, and the account book copy is stored, so that the account book is disclosed, transparent, safe and reliable.
Aiming at different pre-consensus of chains, witness nodes can also participate in consensus to carry out block packing operation. In addition, all key data generated during running on the chain can be recorded, the state change process of the chain is completely recorded, and inquiry is provided for the outside, so that the historical running process of the chain can be traced.
The invention provides a new transaction type, namely a certification transaction, which has the characteristics of no need of paying attention to continuity and no attention to specific sequence.
The evidence-based traceable transaction based on the DAG structure allows transactions or data blocks to be processed in parallel, so that different types of data or transactions can be simultaneously uplink without affecting each other, and the transaction throughput is greatly improved. Meanwhile, the DAG structure is connected with a plurality of nodes in the form of a directed acyclic graph, different types of data can be flexibly related through edges of the graph, data redundancy is reduced, and transition expansion of data quantity is avoided.
In order to meet the requirements of higher efficiency and higher efficiency of evidence storage tracing, the invention provides a block chain parallel evidence storage tracing method based on DAG.
The method comprises the steps of firstly, signing data to be authenticated by a user and then sending the data to a network as a transaction, then sequencing the transaction by a system depending on a transaction TimeStamp and a transaction Hash, then checking whether the TimeStamp of the data is within the valid range of the TimeStamp of a current block or not by a node, if the TimeStamp of the transaction is within the valid range, continuing to process and verify the transaction by the node, and after verification, writing the data into a corresponding account chain based on a parallel structure of a DAG. Finally, the network periodically packages the transactions within a period of time into check point blocks, which are used as stable reference points for the synchronization of the whole network, and help the nodes to recover or join quickly.
Specifically, referring to fig. 5 and 6 in combination, the parallel existence check tracing method includes the following steps S1-S4:
s1, transaction transmission, namely submitting the evidence data by a user, generating a unique transaction identifier (namely a transaction Key field) by a system, checking the data integrity and signature validity by a transaction verification node (namely a witness node), broadcasting the transaction to a network after verification, and waiting for sequencing and writing.
S2, sequencing the transactions in the network according to the transaction TimeStamp and the transaction Hash, and if the transaction A references the transaction B, the time sequence of the transaction B must reach consensus of the transaction sequence through asynchronous communication among nodes before the transaction A.
And S3, writing the transaction in parallel, namely verifying the validity and conflict condition of the parent node of the transaction in parallel, and if the transaction passes the verification, writing the transaction in a corresponding position and updating the local account book.
S4, periodically synchronizing, namely after the consensus node triggers a synchronization condition, collecting all evidence and tracing transactions which occur in the current network, generating a merck tree for the collected transactions, calculating merck root hashes, combining the merck root hashes with other key information (time stamps, node signatures and the like) of the current network state, generating block heads, packing the block heads and a transaction list into new blocks, signing the blocks to form new blocks, broadcasting the new blocks to the whole network for other nodes to verify, and when nodes exceeding a certain proportion (such as 2/3) agree on the blocks, confirming the blocks as effective check points, adding the new blocks into a block chain to become stable points of the network state. After the consensus is confirmed, the full network node performs state synchronization based on the new block.
The system sets a time limit (such as half an hour) for each transaction, when the transaction is submitted, the node checks whether the time stamp of the transaction is within the valid range of the current block time stamp, if the time stamp of the transaction is within the valid period, the node continues to process and verify the transaction, and if the time stamp of the transaction exceeds the valid period, the node directly refuses the transaction, so that only the transaction meeting the time limit requirement is ensured to be written into the block chain.
In step S1, a new transaction type-deposit transaction is provided, which does not require attention to continuity nor to a specific order.
Referring to fig. 1, a client sends a forensic transaction to a pool of blockchain nodes. The name of each field in the evidence-based transaction is Hash, timeStamp, key, from, notionAddr, value. The meaning of each field is shown in table one.
Table I, description table of each field of trade
The fields in the block of the DAG-based blockchain are named PARENTHASH, NUMBER, TIMESTAMP, tx list. The meaning of each field is shown in table two.
Table two, block each field description table
The transaction contains a unique Value Key, a TimeStamp TimeStamp, and a Hash Value generated by performing a Hash operation on the Key, value and TimeStamp. During the execution of the transaction, the DAG structure can ensure parallel processing of the transaction, thereby realizing efficient performance.
In step S2, the DAG ensures that each transaction can only be executed after its preceding dependent transaction is completed by maintaining the dependency relationship, timestamp and Hash value between transactions. Therefore, the uplink sequence always accurately reflects the causal relationship and execution logic of the data.
Specifically, the DAG ensures that even if the running order of the transactions is inconsistent, the data of the uplink is still dependent and merged in the correct order by recording the pointing link between each transaction and its dependency relationship, so as to ensure the consistency and the sequency of the data, that is, the earlier the time is, the earlier the order is, and when the time is the same, the smaller the Hash value is, the earlier the order is, and when the time is the same, the order is, according to the Hash value.
Taking fig. 2 as an example, there are four transactions a, B, C, D, where x, y, z and w are Hash values of a, B, C, D, respectively, and x < z, the resulting uplink order is constant regardless of the order in which the transactions are run. Firstly, a=c > D > B is obtained according to the order of the TimeStamp from small to large, and secondly, a > C > D > B is obtained according to the order of the Hash value based thereon. The uplink order of transactions, a- > C- > D- > B, can be taken together as shown in fig. 3.
In step S3, when there are multiple accounts to initiate the deposit transaction at the same time and the same unique value Key is not operated, all the deposit transactions are written in the corresponding account chain in parallel, but when the multiple accounts operate the same unique value Key, the deposit transactions are written in the chain after the transaction sequencing.
The underwriting transaction B is directed to underwriting transaction A in FIG. 4, which illustrates that the writing of transaction B depends on transaction A (transaction A was completed before transaction B), and similarly, the writing of transaction C depends on both transaction D and transaction E (transaction D and transaction E were completed before transaction C), and transaction B and transaction C may be written in parallel.
In step S4, the consensus node generates a new block at predetermined time intervals, and the new block contains all the evidence and trace-to-source transactions already occurring in the current network, and the new block can be regarded as a check point of the blockchain, i.e. a known and commonly confirmed stable point of the current state of the network.
By packing these transactions into blocks, the state synchronization process of the nodes of the whole network can be effectively simplified, the nodes do not need to synchronize all historical transactions every time, and only need to trace back and synchronize the states from the nearest block.
In addition, when a new node is added, the synchronization can be started from the nearest block, thereby avoiding long-time historical transaction verification and improving the node adding and synchronization speed.
Through the process, the integrity and consistency of the data in the system are effectively maintained. Although the provenance tracking transactions are packed into blocks, this process does not involve immediate business logic execution, primarily for data storage and synchronization. Therefore, the processing pressure of each node on the real-time transaction can be reduced, and the evidence-based tracing transaction can be used as a complete reference in the follow-up verification or tracing.
A time limit is set, assuming that the transaction is valid within half an hour, when the time stamp of the transaction exceeds the set valid time limit compared to the time stamp of the current block, the transaction will be considered an invalid transaction and the node will refuse the transaction to be processed.
The invention also provides a block chain parallel storage evidence tracing device based on the DAG, which comprises a transaction sending module, a transaction sequencing module, a transaction parallel writing module, a periodic synchronization module and a transaction timeliness checking module.
The transaction sending module is used for a user to sign data needing to be stored and then send the data serving as a transaction to the system, the system generates a unique transaction identifier, namely a transaction Key field, and the transaction verification node checks the data integrity and the signature validity to obtain the stored transaction.
The transaction sequencing module is used for sequencing the transactions according to the TimeStamp and the transaction Hash of the authenticated transaction, wherein if the transaction A refers to the transaction B, the timing of the transaction B must reach consensus on the transaction sequence through asynchronous communication among nodes before the transaction A.
The transaction parallel writing-in module is used for verifying the validity and conflict condition of the parent node of the transaction in parallel, and if the transaction passes the verification, the transaction is written in the corresponding account chain.
The periodic synchronization module is used for periodically packing transactions within a period of time into new blocks, and uploading the blocks to serve as a stable reference point for full network synchronization so as to help the nodes to recover or join quickly.
The transaction timeliness checking module is used for setting a time limit, and checking whether the transaction within the time limit is valid or not, if yes, the node directly refuses the transaction.
The invention has the following technical characteristics/advantages:
Parallel processing and efficient throughput. The DAG architecture eliminates the bottleneck of sequential execution by processing transactions and data blocks in parallel. Multiple transactions can be simultaneously uplink, so that the transaction processing speed and the throughput of the system are greatly improved, and the higher-frequency data access and traceability requirements can be supported. The parallel processing enables the tracing process to be more efficient, and tracing requests of different businesses or commodities can be responded quickly.
Flexible data association and cross-business tracing. The DAG structure can flexibly connect and associate different types of data by the form of a directed acyclic graph. For example, transactions, certificate information, logistics information and the like in different business fields can be effectively associated in the same graph, so that cross-business tracing and data sharing are realized.
New transaction type-deposit transaction. The transaction type does not need to pay attention to the continuity of the transaction or to the specific sequence, and through the clear dependency relationship and the timestamp record, the real causal relationship of the data can be reflected by the final uplink sequence even if the transaction processing sequence is different, the data inconsistency or the traceability error caused by parallel processing is avoided, the uplink correctness of the transaction is ensured, and the transaction failure probability is effectively reduced.
The above embodiments of the present invention are only examples, and are not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

Translated fromChinese
1.一种基于DAG的区块链并行存证溯源方法,其特征在于,包括以下步骤:1. A DAG-based blockchain parallel evidence storage and traceability method, characterized by comprising the following steps:S1、用户将需要存证的数据签名后作为交易发送至系统,系统生成唯一交易标识即交易Key字段,交易验证节点检查数据完整性及签名有效性,得到存证交易,该存证交易还包括字段:时间戳TimeStamp、存证信息Value、存证溯源业务地址NotionAddr、发送者地址From以及Hash值;S1. The user signs the data to be recorded as a transaction and sends it to the system. The system generates a unique transaction identifier, namely the transaction Key field. The transaction verification node checks the data integrity and signature validity to obtain a recorded transaction. The recorded transaction also includes the following fields: Timestamp, recorded information Value, recorded traceability business address NotionAddr, sender address From, and Hash value.S2、根据存证交易的TimeStamp和交易Hash对交易进行定序,其中,若交易A引用交易B,则交易B的时序必须在A之前,通过节点间异步通信达成对交易顺序的共识;S2. Sequence transactions based on the timestamp and transaction hash of the stored transactions. If transaction A references transaction B, then transaction B must be before transaction A. A consensus on the transaction order is reached through asynchronous communication between nodes.S3、并行验证交易的父节点的有效性及冲突情况,若通过验证,则将交易写入对应的账户链中,之后更新本地账本;S3. Verify the validity and conflict of the parent node of the transaction in parallel. If the verification is successful, write the transaction to the corresponding account chain and then update the local ledger.S4、定期将一段时间内的交易打包成新区块,将区块上链,作为全网同步的稳定参考点,以帮助节点快速恢复或加入,共识确认后,全网节点基于新区块进行状态同步,S4. Regularly package transactions within a period of time into new blocks and put the blocks on the chain as a stable reference point for network-wide synchronization to help nodes quickly recover or join. After consensus is confirmed, all network nodes synchronize their status based on the new blocks.基于DAG的区块链由共识节点和见证节点组成,每个账户以账户链为单位完成交易事务,单独记账,按先后顺序形成链式结构,在一条账户链中,发送交易区块的同时,支持指向多笔已存在的交易,形成DAG结构,The DAG-based blockchain consists of consensus nodes and witness nodes. Each account completes transactions in an account chain, records them separately, and forms a chain structure in sequence. In an account chain, while sending transaction blocks, it supports pointing to multiple existing transactions, forming a DAG structure.根据存证交易的TimeStamp和交易Hash对交易进行定序,包括:根据各个交易的TimeStamp来寻找上链的顺序,时间越早顺序越靠前,当TimeStamp相同时,根据Hash值来排序,Hash值越小顺序越靠前。Transactions are sequenced based on the timestamp and transaction hash of the evidence transaction, including: finding the order of on-chain transactions based on the timestamp of each transaction, with the earlier the time, the higher the order; when the timestamp is the same, they are sorted based on the hash value, with the smaller the hash value, the higher the order.2.根据权利要求1所述的基于DAG的区块链并行存证溯源方法,其特征在于,所述存证交易的哈希值Hash由交易Key、Value和TimeStamp进行hash运算生成。2. The DAG-based blockchain parallel evidence storage and traceability method according to claim 1 is characterized in that the hash value Hash of the evidence storage transaction is generated by hashing the transaction key, value and timestamp.3.根据权利要求1所述的基于DAG的区块链并行存证溯源方法,其特征在于,在交易定序之后,节点检查该交易的时间戳是否在当前区块时间戳的有效范围内,若交易时间戳超出有效期,节点则直接拒绝该交易。3. The DAG-based blockchain parallel evidence storage and traceability method according to claim 1 is characterized in that after transaction sequencing, the node checks whether the transaction timestamp is within the valid range of the current block timestamp. If the transaction timestamp exceeds the validity period, the node directly rejects the transaction.4.根据权利要求1所述的基于DAG的区块链并行存证溯源方法,其特征在于,共识节点定期将一段时间内的交易打包成新区块包括:共识节点触发同步条件后,收集当前网络中已发生的所有存证和溯源交易,对收集到的交易生成默克尔树,计算默克尔根哈希,将默克尔根哈希与当前网络状态的其它关键信息结合,生成区块头,将区块头与交易列表打包成新的区块,并对区块进行签名形成新区块。4. The DAG-based blockchain parallel evidence storage and traceability method according to claim 1 is characterized in that the consensus node regularly packages transactions within a period of time into a new block, including: after the consensus node triggers the synchronization condition, it collects all evidence storage and traceability transactions that have occurred in the current network, generates a Merkle tree for the collected transactions, calculates the Merkle root hash, combines the Merkle root hash with other key information of the current network status, generates a block header, packages the block header and the transaction list into a new block, and signs the block to form a new block.5.根据权利要求1所述的基于DAG的区块链并行存证溯源方法,其特征在于,区块上链包括:将新区块广播至全网供其他节点验证,当超过一定比例的节点对区块达成一致时,区块被确认为有效检查点,新区块被添加到区块链中,成为网络状态的稳定点。5. The DAG-based blockchain parallel evidence storage and traceability method according to claim 1 is characterized in that the block on-chain includes: broadcasting the new block to the entire network for verification by other nodes. When more than a certain proportion of nodes reach a consensus on the block, the block is confirmed as a valid checkpoint, and the new block is added to the blockchain, becoming a stable point of the network status.6.根据权利要求1所述的基于DAG的区块链并行存证溯源方法,其特征在于,6. The DAG-based blockchain parallel evidence storage and traceability method according to claim 1 is characterized in that:所述区块中包括如下字段:父区块哈希值ParentHash、区块号Number、时间戳TimeStamp、交易列表Tx list。The block includes the following fields: parent block hash value ParentHash, block number Number, timestamp TimeStamp, and transaction list Tx list.7.一种基于DAG的区块链并行存证溯源装置,其特征在于,包括:7. A DAG-based blockchain parallel evidence storage and traceability device, comprising:交易发送模块,用于用户将需要存证的数据签名后作为交易发送至系统,系统生成唯一交易标识即交易Key字段,交易验证节点检查数据完整性及签名有效性,得到存证交易,该存证交易还包括字段:时间戳TimeStamp、存证信息Value、存证溯源业务地址NotionAddr、发送者地址From以及Hash值;The transaction sending module is used by users to sign the data to be recorded as a transaction and send it to the system. The system generates a unique transaction identifier, namely the transaction Key field. The transaction verification node checks the data integrity and signature validity to obtain the recorded transaction. The recorded transaction also includes the following fields: Timestamp, recorded information Value, recorded traceability business address NotionAddr, sender address From, and Hash value;交易定序模块,用于根据存证交易的TimeStamp和交易Hash对交易进行定序,其中,若交易A引用交易B,则交易B的时序必须在A之前,通过节点间异步通信达成对交易顺序的共识;The transaction sequencing module is used to sequence transactions based on the timestamp and transaction hash of the evidence transaction. If transaction A references transaction B, then transaction B must be sequenced before transaction A. Consensus on the transaction order is reached through asynchronous communication between nodes.交易并行写入模块,用于并行验证交易的父节点的有效性及冲突情况,若通过验证,则将交易写入对应的账户链中,之后更新本地账本;The transaction parallel writing module is used to verify the validity and conflict of the parent node of the transaction in parallel. If the verification is passed, the transaction is written to the corresponding account chain and then the local ledger is updated;定期同步模块,用于定期将一段时间内的交易打包成新区块,将区块上链,作为全网同步的稳定参考点,以帮助节点快速恢复或加入,共识确认后,全网节点基于新区块进行状态同步;The regular synchronization module is used to regularly package transactions within a period of time into new blocks and upload the blocks to the chain as a stable reference point for network-wide synchronization to help nodes quickly recover or join. After consensus is confirmed, all nodes in the network synchronize their status based on the new blocks.交易时效性检查模块,用于设定一个时间限制,并约定在该时间限制内的交易就是有效的,检查该交易的时间戳是否在当前区块时间戳的有效范围内,若交易时间戳超出有效期,节点则直接拒绝该交易,The transaction timeliness check module is used to set a time limit and stipulate that transactions within the time limit are valid. It checks whether the timestamp of the transaction is within the valid range of the current block timestamp. If the transaction timestamp exceeds the validity period, the node will directly reject the transaction.基于DAG的区块链由共识节点和见证节点组成,每个账户以账户链为单位完成交易事务,单独记账,按先后顺序形成链式结构,在一条账户链中,发送交易区块的同时,支持指向多笔已存在的交易,形成DAG结构,The DAG-based blockchain consists of consensus nodes and witness nodes. Each account completes transactions in an account chain, records them separately, and forms a chain structure in sequence. In an account chain, while sending transaction blocks, it supports pointing to multiple existing transactions, forming a DAG structure.根据存证交易的TimeStamp和交易Hash对交易进行定序,包括:根据各个交易的TimeStamp来寻找上链的顺序,时间越早顺序越靠前,当TimeStamp相同时,根据Hash值来排序,Hash值越小顺序越靠前。Transactions are sequenced based on the timestamp and transaction hash of the evidence transaction, including: finding the order of on-chain transactions based on the timestamp of each transaction, with the earlier the time, the higher the order; when the timestamp is the same, they are sorted based on the hash value, with the smaller the hash value, the higher the order.
CN202510303293.9A2025-03-142025-03-14 A DAG-based blockchain parallel evidence storage and traceability methodActiveCN119831746B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202510303293.9ACN119831746B (en)2025-03-142025-03-14 A DAG-based blockchain parallel evidence storage and traceability method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202510303293.9ACN119831746B (en)2025-03-142025-03-14 A DAG-based blockchain parallel evidence storage and traceability method

Publications (2)

Publication NumberPublication Date
CN119831746A CN119831746A (en)2025-04-15
CN119831746Btrue CN119831746B (en)2025-08-05

Family

ID=95301420

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202510303293.9AActiveCN119831746B (en)2025-03-142025-03-14 A DAG-based blockchain parallel evidence storage and traceability method

Country Status (1)

CountryLink
CN (1)CN119831746B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN120410528B (en)*2025-07-032025-09-16数金公共服务(青岛)有限公司DAG-based hard wallet transaction rapid synchronization method, medium and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112508573A (en)*2021-01-292021-03-16腾讯科技(深圳)有限公司Transaction data processing method and device and computer equipment
CN113674095A (en)*2021-10-202021-11-19浙商银行股份有限公司Method for improving block chain throughput based on transaction DAG

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US11070360B2 (en)*2018-08-132021-07-20International Business Machines CorporationParallel transaction validation and block generation in a blockchain
CN113869902A (en)*2021-12-032021-12-31深圳前海微众银行股份有限公司 A blockchain transaction execution method and device
CN116846674B (en)*2023-05-162025-03-18北京邮电大学 A high-throughput distributed ledger system based on DAG
CN116881361A (en)*2023-06-302023-10-13蚂蚁区块链科技(上海)有限公司Transaction execution method, node and blockchain system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112508573A (en)*2021-01-292021-03-16腾讯科技(深圳)有限公司Transaction data processing method and device and computer equipment
CN113674095A (en)*2021-10-202021-11-19浙商银行股份有限公司Method for improving block chain throughput based on transaction DAG

Also Published As

Publication numberPublication date
CN119831746A (en)2025-04-15

Similar Documents

PublicationPublication DateTitle
CN108805570B (en) Data processing method, device and storage medium
CN107147735B (en)Distributed account book system based on hierarchical structure
CN119831746B (en) A DAG-based blockchain parallel evidence storage and traceability method
CN111770102B (en)Block chain cross-chain method and device, computer equipment and storage medium
CN112270550B (en)New energy power tracing method and system based on blockchain
CN110009338B (en)Accounting method and device based on block chain and electronic equipment
WO2023045620A1 (en)Transaction data processing method and apparatus, computer device and storage medium
CN115701078B (en)Cross-chain transaction processing method, device, electronic equipment and storage medium
CN113570479B (en)Block chain transmission method, system and storage medium for real estate transaction data
WO2023020242A1 (en)Blockchain-based data processing method and apparatus, computer device, computer-readable storage medium, and computer program product
CN111192146B (en) Method and device for correcting blockchain data
CN113706313B (en) Financing method, system and computer-readable storage medium based on blockchain
CN112750037A (en)Block chain-based data compression and query method and device and electronic equipment
CN111723406A (en)Consensus algorithm and system of block chain
CN110599175B (en) A block processing method and related equipment
CN112381552A (en)Supply chain tracing method based on hierarchical block chain and application
CN113419823A (en)Alliance chain system suitable for high-concurrency affairs and design method thereof
CN110597922A (en)Data processing method, device, terminal and storage medium
CN113111125A (en)Business evidence storage method based on block chain
US20250156584A1 (en)Data processing method and apparatus based on hierarchical chain network
CN117097481A (en)Block consensus method, synchronization method, device, electronic equipment and storage medium
CN116977067A (en)Block chain-based data processing method, device, equipment and readable storage medium
CN114785776B (en)Blockchain-based clearing system and blockchain-based clearing method
CN113760909A (en)Method and system for cross-chain transaction and verification based on UTXO
CN118826994A (en) Consensus method, system, storage medium and program product of blockchain system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp