Documentation
¶
Index ¶
Constants ¶
View Source
const (
DigestLength = 32
)
DigestLength is the length of a Digest in number of bytes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Digest ¶
type Digest = [DigestLength]byte
Digest is a 32-byte hash digest.
var ZeroDigest Digest
func BatchTree ¶ added in v0.8.3
BatchTree creates a batch of prefixes of values: [[0], [0, 1], [0, 1, 2], ...] and provides digests for all of them.
func TreeWithProofs ¶
TreeWithProofs returns a the root of the merkle-tree of the given values, along with merkle-proofs for each leaf.
Click to show internal directories.
Click to hide internal directories.