Documentation ¶
Overview ¶
Package merkle implements the Merkle tree hash computation.
Index ¶
Constants ¶
View Source
const ( LeafHashPrefix = 0 NodeHashPrefix = 1 )
Domain separation prefixes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher struct {
// contains filtered or unexported fields
}
Hasher implements the hashing algorithm described in the IOTA protocol RFC-12.
func (*Hasher) EmptyRoot ¶
EmptyRoot returns a special case for an empty tree. This is equivalent to Hash(nil).
Click to show internal directories.
Click to hide internal directories.