Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rfc9162

Crate docs. The module documentation includes a tested example that hashes alpha, beta and gamma and checks the inclusion proof for beta.

ItemRole
leaf_hashSHA-256(0x00 || entry)
node_hashSHA-256(0x01 || left || right)
rootMerkle root of a leaf slice, including the empty slice
inclusion_proofsibling hashes, innermost first, or None when the index is outside the slice
verify_inclusionfolds a path back to a hexadecimal root
consistency_proofnodes that recompute an old root and a new root, or None when old is 0 or past the slice
verify_consistencychecks that pair of roots
Headsize and hexadecimal root; over builds one; material is the tab-separated signing input
hex / from_hexlowercase hexadecimal for a 32-byte hash; from_hex accepts 64 digits in 0-9 and a-f

The tree how-to runs these functions. The Merkle tree, inclusion and consistency pages describe the results.