Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNodeNotFound = errors.New("node not found")
Deprecated: use github.com/iden3/contracts-abi/onchain-credential-status-resolver/go/abi ErrNodeNotFound instead.
Functions ¶
func GenerateProof ¶ added in v0.0.4
func GenerateProof(ctx context.Context, cli NodeReader, treeRoot *merkletree.Hash, key *merkletree.Hash) (*merkletree.Proof, error)
Types ¶
type Node ¶
type Node struct {
Hash *merkletree.Hash
Children []*merkletree.Hash
}
func (Node) MarshalJSON ¶
func (*Node) UnmarshalJSON ¶
type NodeReader ¶ added in v0.0.4
type ReverseHashCli ¶ added in v0.0.4
type ReverseHashCli interface {
GenerateProof(ctx context.Context,
treeRoot *merkletree.Hash,
key *merkletree.Hash) (*merkletree.Proof, error)
GetNode(ctx context.Context,
hash *merkletree.Hash) (Node, error)
SaveNodes(ctx context.Context,
nodes []Node) error
}
Click to show internal directories.
Click to hide internal directories.