package
Version:
v0.0.0-...-020e20f
Opens a new window with list of versions in this module.
Published: Jun 1, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MergeTwoHash computes the hash of the concatenate of two hash.
Merkle is a merkle tree implementation (https://en.wikipedia.org/wiki/Merkle_tree).
NewMerkle generate a merkle tree according
to some hashable values like transactions or blocks.
GetRoot returns the root of merkle tree.
Trie is a patricia trie.
NewPatricia is patricia construction.
Get returns the value according to the key.
Insert serializes key into binary and computes its hash,
then stores the (hash(key), value) into the trie.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.