Versions in this module Expand all Collapse all v0 v0.5.0 Jul 17, 2025 Changes in this version + func GetWallet(context view.Context, id string, opts ...token.ServiceOption) *token.OwnerWallet + func NewFinalityView(tx *Transaction, opts ...ttx.TxOption) view.View + func RequestRecipientIdentity(context view.Context, parties []token.Identity, opts ...token.ServiceOption) (token.Identity, error) + type EndorseSpendView struct + func NewEndorseSpendView(request *SpendRequest) *EndorseSpendView + func (a *EndorseSpendView) Call(context view.Context) (interface{}, error) + type EscrowAuth struct + WalletService driver.WalletService + func NewEscrowAuth(walletService driver.WalletService) *EscrowAuth + func (s *EscrowAuth) AmIAnAuditor() bool + func (s *EscrowAuth) IsMine(ctx context.Context, tok *token3.Token) (string, []string, bool) + func (s *EscrowAuth) Issued(ctx context.Context, issuer driver.Identity, tok *token3.Token) bool + func (s *EscrowAuth) OwnerType(raw []byte) (string, []byte, error) + type OwnerWallet struct + func Wallet(context view.Context, wallet *token.OwnerWallet) *OwnerWallet + func (w *OwnerWallet) ListTokens(ctx context.Context, opts ...token.ListTokensOption) (*token2.UnspentTokens, error) + func (w *OwnerWallet) ListTokensAsEscrow(ctx context.Context, opts ...token.ListTokensOption) (iterators.Iterator[*token2.UnspentToken], error) + func (w *OwnerWallet) ListTokensIterator(ctx context.Context, opts ...token.ListTokensOption) (iterators.Iterator[*token2.UnspentToken], error) + type QueryEngine interface + UnspentTokensIteratorBy func(ctx context.Context, id string, tokenType token2.Type) (driver.UnspentTokensIterator, error) + type ReceiveSpendRequestView struct + func NewReceiveSpendRequestView() *ReceiveSpendRequestView + func (f *ReceiveSpendRequestView) Call(context view.Context) (interface{}, error) + type RequestSpendView struct + func NewRequestSpendView(unspentToken *token.UnspentToken, opts ...token2.ServiceOption) *RequestSpendView + func (c *RequestSpendView) Call(context view.Context) (interface{}, error) + func (c *RequestSpendView) WithTimeout(timeout time.Duration) *RequestSpendView + type SpendRequest struct + Token *token.UnspentToken + func ReceiveSpendRequest(context view.Context, opts ...ttx.TxOption) (*SpendRequest, error) + func (r *SpendRequest) Bytes() ([]byte, error) + func (r *SpendRequest) String() string + type SpendResponse struct + Err error + type TokenVault interface + DeleteTokens func(ctx context.Context, toDelete ...*token2.ID) error + type Transaction struct + func EndorseSpend(context view.Context, request *SpendRequest) (*Transaction, error) + func Wrap(tx *ttx.Transaction) *Transaction + func (t *Transaction) Lock(ctx context.Context, senderWallet *token2.OwnerWallet, tokenType token.Type, ...) error + func (t *Transaction) Spend(senderWallet *token2.OwnerWallet, at *token.UnspentToken, ...) error + type Vault interface + DeleteTokens func(ctx context.Context, toDelete ...*token2.ID) error