Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + var ID = ids.ID + type Credential struct + Sigs [][crypto.SECP256K1RSigLen]byte + func (cr *Credential) MarshalJSON() ([]byte, error) + func (cr *Credential) Verify() error + type Factory struct + func (f *Factory) New(*snow.Context) (interface{}, error) + type Fx struct + SECPFactory crypto.FactorySECP256K1R + VM VM + func (fx *Fx) Bootstrapped() error + func (fx *Fx) Bootstrapping() error + func (fx *Fx) CreateOutput(amount uint64, ownerIntf interface{}) (interface{}, error) + func (fx *Fx) Initialize(vmIntf interface{}) error + func (fx *Fx) InitializeVM(vmIntf interface{}) error + func (fx *Fx) VerifyCredentials(tx Tx, in *Input, cred *Credential, out *OutputOwners) error + func (fx *Fx) VerifyOperation(txIntf, opIntf, credIntf interface{}, utxosIntf []interface{}) error + func (fx *Fx) VerifyPermission(txIntf, inIntf, credIntf, ownerIntf interface{}) error + func (fx *Fx) VerifySpend(tx Tx, in *TransferInput, cred *Credential, utxo *TransferOutput) error + func (fx *Fx) VerifyTransfer(txIntf, inIntf, credIntf, utxoIntf interface{}) error + type Input struct + SigIndices []uint32 + func (in *Input) Verify() error + type Keychain struct + Addrs ids.ShortSet + Keys []*crypto.PrivateKeySECP256K1R + func NewKeychain() *Keychain + func (kc *Keychain) Add(key *crypto.PrivateKeySECP256K1R) + func (kc *Keychain) Match(owners *OutputOwners, time uint64) ([]uint32, []*crypto.PrivateKeySECP256K1R, bool) + func (kc *Keychain) New() (*crypto.PrivateKeySECP256K1R, error) + func (kc *Keychain) PrefixedString(prefix string) string + func (kc *Keychain) Spend(out verify.Verifiable, time uint64) (verify.Verifiable, []*crypto.PrivateKeySECP256K1R, error) + func (kc *Keychain) String() string + func (kc Keychain) Addresses() ids.ShortSet + func (kc Keychain) Get(id ids.ShortID) (*crypto.PrivateKeySECP256K1R, bool) + type MintOperation struct + MintInput Input + MintOutput MintOutput + TransferOutput TransferOutput + func (op *MintOperation) InitCtx(ctx *snow.Context) + func (op *MintOperation) Outs() []verify.State + func (op *MintOperation) Verify() error + type MintOutput struct + func (out *MintOutput) Verify() error + func (out *MintOutput) VerifyState() error + type OutputOwners struct + Addrs []ids.ShortID + Locktime uint64 + Threshold uint32 + func (out *OutputOwners) Addresses() [][]byte + func (out *OutputOwners) AddressesSet() ids.ShortSet + func (out *OutputOwners) Equals(other *OutputOwners) bool + func (out *OutputOwners) InitCtx(ctx *snow.Context) + func (out *OutputOwners) MarshalJSON() ([]byte, error) + func (out *OutputOwners) Sort() + func (out *OutputOwners) Verify() error + func (out *OutputOwners) VerifyState() error + type TestTx struct + Bytes []byte + func (tx *TestTx) UnsignedBytes() []byte + type TestVM struct + CLK timer.Clock + Codec codec.Registry + Log logging.Logger + func (vm *TestVM) Clock() *timer.Clock + func (vm *TestVM) CodecRegistry() codec.Registry + func (vm *TestVM) Logger() logging.Logger + type TransferInput struct + Amt uint64 + func (in *TransferInput) Amount() uint64 + func (in *TransferInput) InitCtx(*snow.Context) + func (in *TransferInput) Verify() error + type TransferOutput struct + Amt uint64 + func (out *TransferOutput) Amount() uint64 + func (out *TransferOutput) Owners() interface{} + func (out *TransferOutput) Verify() error + func (out *TransferOutput) VerifyState() error + type Tx interface + UnsignedBytes func() []byte + type VM interface + Clock func() *timer.Clock + CodecRegistry func() codec.Registry + Logger func() logging.Logger