Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + var TokenInputSpentMarker = []byte + func GenerateKeyForTest(txID string, index int) (string, error) + type HistoryIterator struct + func (it *HistoryIterator) Next() (string, *token.TokenTransaction, error) + type Issuer struct + func (i *Issuer) RequestExpectation(request *token.ExpectationRequest) (*token.TokenTransaction, error) + func (i *Issuer) RequestImport(tokensToIssue []*token.TokenToIssue) (*token.TokenTransaction, error) + type Manager struct + func (m *Manager) GetTxProcessor(channel string) (transaction.TMSTxProcessor, error) + func (m *Manager) SetPolicyValidator(channel string, validator identity.IssuingValidator) + type MemoryLedger struct + func NewMemoryLedger() *MemoryLedger + func (p *MemoryLedger) Done() + func (p *MemoryLedger) GetState(namespace string, key string) ([]byte, error) + func (p *MemoryLedger) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledger.ResultsIterator, error) + func (p *MemoryLedger) SetState(namespace string, key string, value []byte) error + type MemoryPool struct + func NewMemoryPool() *MemoryPool + func (p *MemoryPool) CommitUpdate(transactionData []tms.TransactionData) error + func (p *MemoryPool) HistoryIterator() *HistoryIterator + func (p *MemoryPool) Iterator() *PoolIterator + func (p *MemoryPool) OutputByID(id string) (*token.PlainOutput, error) + func (p *MemoryPool) TxByID(txID string) (*token.TokenTransaction, error) + type OutputNotFoundError struct + ID string + func (o *OutputNotFoundError) Error() string + type PoolIterator struct + func (it *PoolIterator) Next() (string, *token.PlainOutput, error) + type Transactor struct + Ledger ledger.LedgerReader + PublicCredential []byte + func (t *Transactor) Done() + func (t *Transactor) ListTokens() (*token.UnspentTokens, error) + func (t *Transactor) RequestApprove(request *token.ApproveRequest) (*token.TokenTransaction, error) + func (t *Transactor) RequestExpectation(request *token.ExpectationRequest) (*token.TokenTransaction, error) + func (t *Transactor) RequestRedeem(request *token.RedeemRequest) (*token.TokenTransaction, error) + func (t *Transactor) RequestTransfer(request *token.TransferRequest) (*token.TokenTransaction, error) + func (t *Transactor) RequestTransferFrom(request *token.TransferRequest) (*token.TokenTransaction, error) + type TxNotFoundError struct + TxID string + func (p *TxNotFoundError) Error() string + type Verifier struct + IssuingValidator identity.IssuingValidator + func (v *Verifier) ProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, ...) error