Documentation
¶
Index ¶
- Variables
- type HTTPReverseHashCli
- func (cli *HTTPReverseHashCli) GenerateProof(ctx context.Context, treeRoot *merkletree.Hash, key *merkletree.Hash) (*merkletree.Proof, error)
- func (cli *HTTPReverseHashCli) GetNode(ctx context.Context, hash *merkletree.Hash) (Node, error)
- func (cli *HTTPReverseHashCli) SaveNodes(ctx context.Context, nodes []Node) error
- type Node
- type NodeType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNodeNotFound = errors.New("node not found")
Functions ¶
This section is empty.
Types ¶
type HTTPReverseHashCli ¶
func (*HTTPReverseHashCli) GenerateProof ¶
func (cli *HTTPReverseHashCli) GenerateProof(ctx context.Context, treeRoot *merkletree.Hash, key *merkletree.Hash) (*merkletree.Proof, error)
GenerateProof generates proof of existence or in-existence of a key in a tree identified by a treeRoot.
type Node ¶
type Node struct { Hash *merkletree.Hash Children []*merkletree.Hash }
func (Node) MarshalJSON ¶
func (*Node) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.