Versions in this module Expand all Collapse all v0 v0.1.1 Oct 1, 2023 v0.1.0 Sep 29, 2023 Changes in this version + const Size + type Commitment struct + func New(index slot.Index, prevID ID, rootsID types.Identifier, cumulativeWeight int64) (newCommitment *Commitment) + func NewEmptyCommitment() (newCommitment *Commitment) + func (c *Commitment) CumulativeWeight() (cumulativeWeight int64) + func (c *Commitment) Equals(other *Commitment) bool + func (c *Commitment) ID() (id ID) + func (c *Commitment) Index() (index slot.Index) + func (c *Commitment) PrevID() (prevID ID) + func (c *Commitment) RootsID() (rootsID types.Identifier) + type ID struct + Identifier types.Identifier + SlotIndex slot.Index + func NewID(index slot.Index, idBytes []byte) (newCommitmentID ID) + func (b *ID) DecodeJSON(val any) error + func (b *ID) FromBase58(base58EncodedString string) (err error) + func (b *ID) FromBytes(serialized []byte) (consumedBytes int, err error) + func (b *ID) FromRandomness(optionalSlot ...slot.Index) (err error) + func (b ID) Alias() (alias string) + func (b ID) Base58() (base58Encoded string) + func (b ID) Bytes() (serialized []byte, err error) + func (b ID) CompareTo(other ID) int + func (b ID) EncodeJSON() (any, error) + func (b ID) Index() slot.Index + func (b ID) Length() int + func (b ID) RegisterAlias(alias string) + func (b ID) String() (humanReadable string) + func (b ID) UnregisterAlias() + type Roots struct + func NewRoots(...) (newRoots *Roots) + func (r *Roots) ActivityRoot() (activityRoot types.Identifier) + func (r *Roots) ID() (id types.Identifier) + func (r *Roots) ManaRoot() (manaRoot types.Identifier) + func (r *Roots) MeshRoot() (meshRoot types.Identifier) + func (r *Roots) StateMutationRoot() (stateMutationRoot types.Identifier) + func (r *Roots) StateRoot() (stateRoot types.Identifier)