Documentation
¶
Index ¶
- type MerkleStep
- type MerkleTree
- func (tree *MerkleTree) CheckProof(steps []MerkleStep) error
- func (tree *MerkleTree) EnumerateLeaves(callback func(*MerkleTree) bool) bool
- func (tree *MerkleTree) EnumerateWithProofs(callback func(*MerkleTree, []MerkleStep) (bool, error)) (bool, error)
- func (tree *MerkleTree) FindProofFor(leaf fmt.Stringer) ([]MerkleStep, error)
- func (tree *MerkleTree) Print(indent int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerkleStep ¶
type MerkleTree ¶
type MerkleTree struct { Hash []byte Leaf fmt.Stringer Parent *MerkleTree Left *MerkleTree Right *MerkleTree // contains filtered or unexported fields }
func (*MerkleTree) CheckProof ¶
func (tree *MerkleTree) CheckProof(steps []MerkleStep) error
func (*MerkleTree) EnumerateLeaves ¶
func (tree *MerkleTree) EnumerateLeaves(callback func(*MerkleTree) bool) bool
func (*MerkleTree) EnumerateWithProofs ¶
func (tree *MerkleTree) EnumerateWithProofs(callback func(*MerkleTree, []MerkleStep) (bool, error)) (bool, error)
func (*MerkleTree) FindProofFor ¶
func (tree *MerkleTree) FindProofFor(leaf fmt.Stringer) ([]MerkleStep, error)
func (*MerkleTree) Print ¶
func (tree *MerkleTree) Print(indent int)
Click to show internal directories.
Click to hide internal directories.