Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructProof ¶
ConstructProof builds a merkle-branch of the given depth, as a proof of inclusion of the leaf (or something in the path to the root, with a smaller depth) at the given index (at that depth), for a list of leafs of a balanced binary hash-root-tree.
func MerkleRoot ¶
func MerkleRoot(values []Root) Root
MerkleRoot merkleizes values (where len(values) is a power of two) and returns the Merkle root. Note that the leaves are not hashed.
func VerifyMerkleBranch ¶
VerifyMerkleBranch verifies that the given leaf is on the merkle branch at the given depth, at the index at that depth.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.