Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogHasher ¶
type LogHasher interface {
// EmptyRoot supports returning a special case for the root of an empty tree.
EmptyRoot() []byte
// HashLeaf computes the hash of a leaf that exists.
HashLeaf(leaf []byte) []byte
// HashChildren computes interior nodes.
HashChildren(l, r []byte) []byte
// Size is the number of bytes in the underlying hash function.
// TODO(gbelvin): Replace Size() with BitLength().
Size() int
}
LogHasher provides the hash functions needed to compute dense merkle trees.
Click to show internal directories.
Click to hide internal directories.