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 + type Input interface + String func() (humanReadable string) + type Output interface + Bytes func() (serialized []byte, err error) + ID func() (id OutputID) + SetID func(id OutputID) + String func() (humanReadable string) + type OutputCommitment struct + NumberOfOutputs uint64 + StateRoot types.Identifier + func (o *OutputCommitment) Bytes() (serialized []byte) + func (o *OutputCommitment) FromOutputs(outputs ...Output) (err error) + func (o *OutputCommitment) Proof(outputIndex uint64) (proof *OutputCommitmentProof, err error) + type OutputCommitmentProof struct + OutputCommitment *OutputCommitment + ProofIndex uint64 + ProofSet [][32]byte + func (o *OutputCommitmentProof) Bytes() (bytes []byte) + func (o *OutputCommitmentProof) Validate(output Output) (err error) + type OutputFactory func([]byte) (output Output, err error) + type OutputID struct + Index uint16 + TransactionID TransactionID + var EmptyOutputID OutputID + func NewOutputID(txID TransactionID, index uint16) OutputID + func (o *OutputID) FromBase58(base58EncodedString string) (err error) + func (o *OutputID) FromBytes(outputBytes []byte) (consumedBytes int, err error) + func (o *OutputID) FromRandomness() (err error) + func (o OutputID) Alias() (alias string) + func (o OutputID) Base58() (base58Encoded string) + func (o OutputID) Bytes() (serialized []byte, err error) + func (o OutputID) Length() int + func (o OutputID) RegisterAlias(alias string) + func (o OutputID) String() (humanReadable string) + func (o OutputID) UnregisterAlias() + type OutputIDs = *advancedset.AdvancedSet[OutputID] + func NewOutputIDs(ids ...OutputID) (newOutputIDs OutputIDs) + type OutputStateProof struct + OutputCommitmentProof *OutputCommitmentProof + OutputID OutputID + TransactionCommitment TransactionCommitment + func (o *OutputStateProof) Validate(output Output) (err error) + type Outputs struct + func NewOutputs(outputs ...Output) (newOutputs *Outputs) + func (o *Outputs) Add(output Output) + func (o *Outputs) ForEach(callback func(output Output) error) (err error) + func (o *Outputs) IDs() (ids OutputIDs) + func (o *Outputs) String() (humanReadable string) + type Snapshot interface + Outputs func() (outputs []Output) + type Transaction interface + ID func() (id TransactionID) + Inputs func() (inputs []Input) + SetID func(id TransactionID) + String func() (humanReadable string) + type TransactionCommitment types.Identifier + type TransactionID struct + var EmptyTransactionID TransactionID + func NewTransactionID(txData []byte) (newTransactionID TransactionID) + func (t *TransactionID) FromBytes(data []byte) (consumedBytes int, err error) + func (t TransactionID) Bytes() (serialized []byte, err error) + func (t TransactionID) IsEmpty() (isEmpty bool) + func (t TransactionID) Length() (length int) + func (t TransactionID) String() (humanReadable string) + type TransactionIDs = *advancedset.AdvancedSet[TransactionID] + func NewTransactionIDs(ids ...TransactionID) (newTransactionIDs TransactionIDs)