unicitytree

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnicityTree

type UnicityTree struct {
	// contains filtered or unexported fields
}

func New

func New(hashAlgorithm crypto.Hash, data []*types.UnicityTreeData) (*UnicityTree, error)

New creates a new unicity tree with given input records.

func (*UnicityTree) GetCertificate

func (u *UnicityTree) GetCertificate(sysID types.SystemID) (*types.UnicityTreeCertificate, error)

GetCertificate returns an unicity tree certificate for given system identifier.

func (*UnicityTree) GetRootHash

func (u *UnicityTree) GetRootHash() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL