Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidProofError = avl.NewWrapError("invalid proof")
)
Functions ¶
func SetTreeNodeHash ¶
func SetTreeNodeHash(node HashableMutableNode, hashFunc NodeHashFunc) error
Types ¶
type HashableMutableNode ¶
type HashableMutableNode interface { avl.MutableNode SetHash([]byte) error ResetHash() // contains filtered or unexported methods }
type HashableNode ¶
type NodeHashFunc ¶
type NodeHashFunc func(HashableNode) ([]byte, error)
type Proof ¶
type Proof interface { encoding.BinaryMarshaler }
type Prover ¶
type Prover interface { Proof(node HashableNode, parents []HashableNode) (Proof, error) GenerateNodeHash(HashableNode) ([]byte, error) Prove(Proof, rootHash []byte) error }
Click to show internal directories.
Click to hide internal directories.