Documentation
¶
Overview ¶
Package commit computes RFC 6962 Merkle roots and inclusion paths: the root a store reference commits to, one per named store, over the commitments (carrier txids) of that store's members.
Domain separation is the point of RFC 6962's prefixes: a leaf hash and an interior node hash can never collide, so a member cannot be passed off as a subtree or the other way round. The prefixes are frozen at an application's first mint along with everything else a reader recomputes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIndex = errors.New("commit: index out of range")
ErrIndex reports an index outside the leaf set.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.