Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Link ¶
type Link interface {
// contains filtered or unexported methods
}
Link in intermediate instances is a hashNode (reference to next step) At the end, it is often shortNode(valueNode) to capture all remaining key (or key = 16 for direct value) Sometimes this is an embedded fullnode if there is little data
type Proof ¶
func ComputeProof ¶
ComputeProof returns the proof value for a key in given trie. Returned path is the way from the value to the root of the tree.
func (*Proof) RecoverKey ¶
type ProofRecorder ¶
type ProofRecorder struct {
// contains filtered or unexported fields
}
ProofRecorder is used to help us grab proofs
func (*ProofRecorder) Path ¶
func (p *ProofRecorder) Path() []Step
func (*ProofRecorder) Put ¶
func (p *ProofRecorder) Put(hash, value []byte) error
Click to show internal directories.
Click to hide internal directories.