Documentation
¶
Index ¶
Constants ¶
View Source
const MaxMemtreeSize = 256 << 20
View Source
const NODE_SIZE = 32
Variables ¶
This section is empty.
Functions ¶
func BuildSha254Memtree ¶
BuildSha254Memtree builds a sha256 memtree from the input data Returned slice should be released to the pool after use
Types ¶
type RawMerkleProof ¶
func MemtreeProof ¶
func MemtreeProof(memtree []byte, leafIndex int64) (*RawMerkleProof, error)
MemtreeProof generates a Merkle proof for the given leaf index from the memtree. The memtree is a byte slice containing all the nodes of the Merkle tree, including leaves and internal nodes.
Click to show internal directories.
Click to hide internal directories.