Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + var ID = ids.NewID([32]byte{ ... }) + type Credential struct + Sigs [][crypto.SECP256K1RSigLen]byte + func (cr *Credential) Verify() error + type Factory struct + func (f *Factory) New() (interface{}, error) + type Fx struct + SECPFactory crypto.FactorySECP256K1R + VM VM + 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) 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) ([]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 MintInput struct + type MintOperation struct + MintInput Input + MintOutput MintOutput + TransferOutput TransferOutput + func (op *MintOperation) Outs() []verify.Verifiable + func (op *MintOperation) Verify() error + type MintOutput struct + func (out *MintOutput) Verify() error + type OutputOwners struct + Addrs []ids.ShortID + Threshold uint32 + func (out *OutputOwners) Addresses() [][]byte + func (out *OutputOwners) Equals(other *OutputOwners) bool + func (out *OutputOwners) Sort() + func (out *OutputOwners) Verify() error + type TestTx struct + Bytes []byte + func (tx *TestTx) UnsignedBytes() []byte + type TestVM struct + CLK *timer.Clock + Code codec.Codec + Log logging.Logger + func (vm *TestVM) Clock() *timer.Clock + func (vm *TestVM) Codec() codec.Codec + func (vm *TestVM) Logger() logging.Logger + type TransferInput struct + Amt uint64 + func (in *TransferInput) Amount() uint64 + func (in *TransferInput) Verify() error + type TransferOutput struct + Amt uint64 + Locktime uint64 + func (out *TransferOutput) Amount() uint64 + func (out *TransferOutput) Verify() error + type Tx interface + UnsignedBytes func() []byte + type VM interface + Clock func() *timer.Clock + Codec func() codec.Codec + Logger func() logging.Logger