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
Click to show internal directories.
Click to hide internal directories.