Versions in this module Expand all Collapse all v0 v0.3.1 Aug 25, 2023 Changes in this version + const DerPrefix + const RootKey + func DomainSeparator(t string) []byte + func Lookup(path [][]byte, node Node) []byte + func LookupPath(p ...string) [][]byte + func Serialize(node Node) ([]byte, error) + type Cert struct + Delegation *Delegation + Signature []byte + Tree HashTree + type Certificate struct + func New(canisterID principal.Principal, rootKey []byte, certificate []byte) (*Certificate, error) + func (c Certificate) Verify() error + type Delegation struct + Certificate Certificate + SubnetId principal.Principal + func (d *Delegation) UnmarshalCBOR(bytes []byte) error + type Empty struct + func (e Empty) Reconstruct() [32]byte + func (e Empty) String() string + type Fork struct + LeftTree Node + RightTree Node + func (f Fork) Reconstruct() [32]byte + func (f Fork) String() string + type HashTree struct + func NewHashTree(root Node) HashTree + func (t *HashTree) UnmarshalCBOR(bytes []byte) error + func (t HashTree) Digest() [32]byte + func (t HashTree) MarshalCBOR() ([]byte, error) + type Label []byte + func (l Label) String() string + type Labeled struct + Label Label + Tree Node + func (l Labeled) Reconstruct() [32]byte + func (l Labeled) String() string + type Leaf []byte + func (l Leaf) Reconstruct() [32]byte + func (l Leaf) String() string + type Node interface + Reconstruct func() [32]byte + func Deserialize(data []byte) (Node, error) + func DeserializeNode(s []any) (Node, error) + type Pruned [32]byte + func (p Pruned) Reconstruct() [32]byte + func (p Pruned) String() string