Block generation method and device and computer equipment

By using preset hash algorithm and modulus operation in the Merkel tree to calculate the hash change amount and update the hash value of the ancestor node, the problem of low update efficiency of Merkel tree is solved, and the block generation efficiency is improved. System performance.

CN119094359APending Publication Date: 2024-12-06WEBANK (CHINA)
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411056536.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, the update efficiency of Merkel trees is low, which affects the efficiency of block generation and leads to performance bottlenecks in the blockchain network.

Method used

By introducing preset hashing algorithms and modulus operations in the Merkel tree, the hash change of the leaf node is calculated, and the hash value of the ancestor node is updated based on this, the node update sequence is decoupled, and multi-threaded parallel calculation is used. The amount of change is desired to improve the update efficiency.

Benefits of technology

It significantly improves the update efficiency and block generation speed of Merkel trees, increases the flexibility and concurrency of the system, and improves the performance of the blockchain network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094359A_ABST
    Figure CN119094359A_ABST
Patent Text Reader

Abstract

The invention discloses a block generation method, a block generation device and computer equipment, which are characterized in that a hash value of a leaf node is calculated by combining a preset hash algorithm and modulo operation, and a hash value of a father node is calculated based on a hash value of a child node of the father node by combining summation operation and modulo operation. Therefore, the leaf node can be updated based on the transaction data needing to be packaged for generating the target block, the difference value between the new hash value and the old hash value corresponding to the leaf node is used as the hash variable quantity, and then the position information of each path node on the target path leading to the root node of the Merkel tree from the leaf node is acquired; according to the method, the Hash variation generated by each tree node corresponding to the leaf node is determined based on the Hash variation of the leaf node and the position information of the path node, then the Merkel tree is updated based on each Hash variation, finally, transaction data is packaged, and the transaction data is stored in the Merkel tree based on the packaged data and the Hash value of the root node in the updated Merkel tree. And generating a target block.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Cited By

  • Sparse Merkel tree storage and verification method and device, medium and equipment

    CN120950508A