Documentation ¶
Index ¶
Constants ¶
View Source
const (
HashSize = 32
)
HashSize defines the size of hash
Variables ¶
View Source
var ( // ZeroHash32B is 32-bytes of all zero ZeroHash32B = Hash32B{} )
Functions ¶
func NewKeyPair ¶
NewKeyPair wraps ed25519.GenerateKey() for now.
Types ¶
type Merkle ¶
type Merkle struct {
// contains filtered or unexported fields
}
Merkle tree struct
func NewMerkleTree ¶
NewMerkleTree creates a merkle tree given hashed leaves
Click to show internal directories.
Click to hide internal directories.