Documentation
¶
Index ¶
- Constants
- Variables
- func Close(closer Closer)
- func GetTableNames(prefix string) (tableNames, error)
- func NewAuditTransactionDB(sqlDB *sql.DB, opts NewDBOpts, ci TokenInterpreter) (driver.AuditTransactionDB, error)
- func NewCachedIdentityDB(db *sql.DB, opts NewDBOpts) (driver.IdentityDB, error)
- func NewTokenDB(db *sql.DB, opts NewDBOpts, ci TokenInterpreter) (driver.TokenDB, error)
- func NewTransactionDB(db *sql.DB, opts NewDBOpts, ci TokenInterpreter) (driver.TokenTransactionDB, error)
- func NewWalletDB(db *sql.DB, opts NewDBOpts) (driver.WalletDB, error)
- func QueryUnique[T any](db *sql.DB, query string, args ...any) (T, error)
- func StartPostgresContainer(t *testing.T) (func(), string)
- func StartPostgresWithFmt(configs map[string]*PostgresConfig) (func(), error)
- func TCertification(t *testing.T, db *TokenDB)
- func TDeleteAndMine(t *testing.T, db *TokenDB)
- func TDeleteMultiple(t *testing.T, db *TokenDB)
- func TGetTokenInfos(t *testing.T, db *TokenDB)
- func TListAuditTokens(t *testing.T, db *TokenDB)
- func TListIssuedTokens(t *testing.T, db *TokenDB)
- func TPublicParams(t *testing.T, db *TokenDB)
- func TQueryTokenDetails(t *testing.T, db *TokenDB)
- func TSaveAndGetToken(t *testing.T, db *TokenDB)
- func TSubscribeRead(t *testing.T, db driver.TokenDB, notifier driver.TokenNotifier)
- func TSubscribeStore(t *testing.T, db driver.TokenDB, notifier driver.TokenNotifier)
- func TSubscribeStoreDelete(t *testing.T, db driver.TokenDB, notifier driver.TokenNotifier)
- func TSubscribeStoreNoCommit(t *testing.T, db driver.TokenDB, notifier driver.TokenNotifier)
- func TTokenTypes(t *testing.T, db *TokenDB)
- func TTransaction(t *testing.T, db *TokenDB)
- type AtomicWrite
- func (w *AtomicWrite) AddMovement(r *driver.MovementRecord) error
- func (w *AtomicWrite) AddTokenRequest(txID string, tr []byte, applicationMetadata map[string][]byte, ...) error
- func (w *AtomicWrite) AddTransaction(r *driver.TransactionRecord) error
- func (w *AtomicWrite) AddValidationRecord(txID string, meta map[string][]byte) error
- func (w *AtomicWrite) Commit() error
- func (w *AtomicWrite) Rollback()
- type Closer
- type DBOpener
- type DataSourceProvider
- type Delete
- type IdentityConfigurationIterator
- type IdentityDB
- func (db *IdentityDB) AddConfiguration(wp driver.IdentityConfiguration) error
- func (db *IdentityDB) ConfigurationExists(id, typ string) (bool, error)
- func (db *IdentityDB) GetAuditInfo(id []byte) ([]byte, error)
- func (db *IdentityDB) GetSchema() string
- func (db *IdentityDB) GetSignerInfo(identity []byte) ([]byte, error)
- func (db *IdentityDB) GetTokenInfo(id []byte) ([]byte, []byte, error)
- func (db *IdentityDB) IteratorConfigurations(configurationType string) (driver.Iterator[driver.IdentityConfiguration], error)
- func (db *IdentityDB) SignerInfoExists(id []byte) (bool, error)
- func (db *IdentityDB) StoreIdentityData(id []byte, identityAudit []byte, tokenMetadata []byte, ...) error
- func (db *IdentityDB) StoreSignerInfo(id, info []byte) error
- type Insert
- type NewDBFunc
- type NewDBOpts
- type OpenDBFunc
- type Opener
- type Opts
- type PostgresConfig
- type Select
- type TokenDB
- func (db *TokenDB) Balance(walletID string, typ token.Type) (uint64, error)
- func (db *TokenDB) Close()
- func (db *TokenDB) DeleteTokens(deletedBy string, ids ...*token.ID) error
- func (db *TokenDB) ExistsCertification(tokenID *token.ID) bool
- func (db *TokenDB) GetAllTokenInfos(ids []*token.ID) ([][]byte, error)
- func (db *TokenDB) GetCertifications(ids []*token.ID) ([][]byte, error)
- func (db *TokenDB) GetSchema() string
- func (db *TokenDB) GetTokenMetadata(ids []*token.ID) ([][]byte, error)
- func (db *TokenDB) GetTokenOutputs(ids []*token.ID, callback tdriver.QueryCallbackFunc) error
- func (db *TokenDB) GetTokenOutputsAndMeta(ctx context.Context, ids []*token.ID) ([][]byte, [][]byte, []token.Format, error)
- func (db *TokenDB) GetTokens(inputs ...*token.ID) ([]*token.Token, error)
- func (db *TokenDB) IsMine(txID string, index uint64) (bool, error)
- func (db *TokenDB) ListAuditTokens(ids ...*token.ID) ([]*token.Token, error)
- func (db *TokenDB) ListHistoryIssuedTokens() (*token.IssuedTokens, error)
- func (db *TokenDB) ListUnspentTokens() (*token.UnspentTokens, error)
- func (db *TokenDB) ListUnspentTokensBy(walletID string, typ token.Type) (*token.UnspentTokens, error)
- func (db *TokenDB) NewTokenDBTransaction() (driver.TokenDBTransaction, error)
- func (db *TokenDB) PublicParams() ([]byte, error)
- func (db *TokenDB) PublicParamsByHash(rawHash tdriver.PPHash) ([]byte, error)
- func (db *TokenDB) QueryTokenDetails(params driver.QueryTokenDetailsParams) ([]driver.TokenDetails, error)
- func (db *TokenDB) SetSupportedTokenFormats(formats []token.Format) error
- func (db *TokenDB) SpendableTokensIteratorBy(ctx context.Context, walletID string, typ token.Type) (tdriver.SpendableTokensIterator, error)
- func (db *TokenDB) StoreCertifications(certifications map[*token.ID][]byte) (err error)
- func (db *TokenDB) StorePublicParams(raw []byte) error
- func (db *TokenDB) StoreToken(tr driver.TokenRecord, owners []string) (err error)
- func (db *TokenDB) TransactionExists(ctx context.Context, id string) (bool, error)
- func (db *TokenDB) UnspentTokensIterator() (tdriver.UnspentTokensIterator, error)
- func (db *TokenDB) UnspentTokensIteratorBy(ctx context.Context, walletID string, tokenType token.Type) (tdriver.UnspentTokensIterator, error)
- func (db *TokenDB) WhoDeletedTokens(inputs ...*token.ID) ([]string, []bool, error)
- type TokenInterpreter
- type TokenLockDB
- type TokenRequestIterator
- type TokenTransaction
- func (t *TokenTransaction) Commit() error
- func (t *TokenTransaction) Delete(ctx context.Context, tokenID token.ID, deletedBy string) error
- func (t *TokenTransaction) GetToken(ctx context.Context, tokenID token.ID, includeDeleted bool) (*token.Token, []string, error)
- func (t *TokenTransaction) Rollback() error
- func (t *TokenTransaction) SetSpendable(ctx context.Context, tokenID token.ID, spendable bool) error
- func (t *TokenTransaction) SetSpendableBySupportedTokenFormats(ctx context.Context, formats []token.Format) error
- func (t *TokenTransaction) StoreToken(ctx context.Context, tr driver.TokenRecord, owners []string) error
- type TransactionDB
- func (db *TransactionDB) AddTransactionEndorsementAck(txID string, endorser token.Identity, sigma []byte) (err error)
- func (db *TransactionDB) BeginAtomicWrite() (driver.AtomicWrite, error)
- func (db *TransactionDB) Close() error
- func (db *TransactionDB) GetSchema() string
- func (db *TransactionDB) GetStatus(txID string) (driver.TxStatus, string, error)
- func (db *TransactionDB) GetTokenRequest(txID string) ([]byte, error)
- func (db *TransactionDB) GetTransactionEndorsementAcks(txID string) (map[string][]byte, error)
- func (db *TransactionDB) QueryMovements(params driver.QueryMovementsParams) (res []*driver.MovementRecord, err error)
- func (db *TransactionDB) QueryTokenRequests(params driver.QueryTokenRequestsParams) (driver.TokenRequestIterator, error)
- func (db *TransactionDB) QueryTransactions(params driver.QueryTransactionsParams) (driver.TransactionIterator, error)
- func (db *TransactionDB) QueryValidations(params driver.QueryValidationRecordsParams) (driver.ValidationRecordsIterator, error)
- func (db *TransactionDB) SetStatus(ctx context.Context, txID string, status driver.TxStatus, message string) (err error)
- type TransactionIterator
- type UnspentTokensInWalletIterator
- type UnspentTokensIterator
- type Update
- type ValidationRecordsIterator
- type WalletDB
- func (db *WalletDB) GetSchema() string
- func (db *WalletDB) GetWalletID(identity token.Identity, roleID int) (driver.WalletID, error)
- func (db *WalletDB) GetWalletIDs(roleID int) ([]driver.WalletID, error)
- func (db *WalletDB) IdentityExists(identity token.Identity, wID driver.WalletID, roleID int) bool
- func (db *WalletDB) LoadMeta(identity token.Identity, wID driver.WalletID, roleID int) ([]byte, error)
- func (db *WalletDB) StoreIdentity(identity token.Identity, eID string, wID driver.WalletID, roleID int, ...) error
Constants ¶
const ( QueryLabel tracing.LabelName = "query" ResultRowsLabel tracing.LabelName = "result_rows" )
const ( SelectStatement = `SELECT` SelectDistinctStatement = `SELECT DISTINCT` InsertStatement = `INSERT INTO` UpdateStatement = `UPDATE` DeleteStatement = `DELETE FROM` )
const ( TST = token.Type("TST") ABC = token.Type("ABC") )
Variables ¶
var TokenNotifierCases = []struct { Name string Fn func(*testing.T, driver.TokenDB, driver.TokenNotifier) }{ {"SubscribeStore", TSubscribeStore}, {"SubscribeStoreDelete", TSubscribeStoreDelete}, {"SubscribeStoreNoCommit", TSubscribeStoreNoCommit}, {"SubscribeRead", TSubscribeRead}, }
var TokensCases = []struct { Name string Fn func(*testing.T, *TokenDB) }{ {"Transaction", TTransaction}, {"SaveAndGetToken", TSaveAndGetToken}, {"DeleteAndMine", TDeleteAndMine}, {"GetTokenMetadata", TGetTokenInfos}, {"ListAuditTokens", TListAuditTokens}, {"ListIssuedTokens", TListIssuedTokens}, {"DeleteMultiple", TDeleteMultiple}, {"PublicParams", TPublicParams}, {"Certification", TCertification}, {"QueryTokenDetails", TQueryTokenDetails}, {"TTokenTypes", TTokenTypes}, }
Functions ¶
func GetTableNames ¶
func NewAuditTransactionDB ¶
func NewAuditTransactionDB(sqlDB *sql.DB, opts NewDBOpts, ci TokenInterpreter) (driver.AuditTransactionDB, error)
func NewCachedIdentityDB ¶
func NewTokenDB ¶
func NewTransactionDB ¶
func NewTransactionDB(db *sql.DB, opts NewDBOpts, ci TokenInterpreter) (driver.TokenTransactionDB, error)
func StartPostgresContainer ¶
https://testcontainers.com/guides/getting-started-with-testcontainers-for-go/ Note: Before running tests: docker pull postgres:16.2-alpine Test may time out if image is not present on machine.
func StartPostgresWithFmt ¶
func StartPostgresWithFmt(configs map[string]*PostgresConfig) (func(), error)
func TCertification ¶
func TDeleteAndMine ¶
func TDeleteMultiple ¶
func TGetTokenInfos ¶
GetTokenMetadata retrieves the token information for the passed ids. For each id, the callback is invoked to unmarshal the token information
func TListAuditTokens ¶
// ListAuditTokens returns the audited tokens associated to the passed ids
func TListIssuedTokens ¶
func TPublicParams ¶
func TQueryTokenDetails ¶
func TSaveAndGetToken ¶
func TSubscribeRead ¶
func TSubscribeStore ¶
func TSubscribeStoreDelete ¶
func TSubscribeStoreNoCommit ¶
func TTokenTypes ¶
func TTransaction ¶
Types ¶
type AtomicWrite ¶
type AtomicWrite struct {
// contains filtered or unexported fields
}
func (*AtomicWrite) AddMovement ¶
func (w *AtomicWrite) AddMovement(r *driver.MovementRecord) error
func (*AtomicWrite) AddTokenRequest ¶
func (*AtomicWrite) AddTransaction ¶
func (w *AtomicWrite) AddTransaction(r *driver.TransactionRecord) error
func (*AtomicWrite) AddValidationRecord ¶
func (w *AtomicWrite) AddValidationRecord(txID string, meta map[string][]byte) error
func (*AtomicWrite) Commit ¶
func (w *AtomicWrite) Commit() error
func (*AtomicWrite) Rollback ¶
func (w *AtomicWrite) Rollback()
type DBOpener ¶
func NewSQLDBOpener ¶
type DataSourceProvider ¶
type DataSourceProvider = postgres2.DataSourceProvider
type IdentityConfigurationIterator ¶
type IdentityConfigurationIterator struct {
// contains filtered or unexported fields
}
func (*IdentityConfigurationIterator) Close ¶
func (w *IdentityConfigurationIterator) Close() error
func (*IdentityConfigurationIterator) HasNext ¶
func (w *IdentityConfigurationIterator) HasNext() bool
func (*IdentityConfigurationIterator) Next ¶
func (w *IdentityConfigurationIterator) Next() (driver.IdentityConfiguration, error)
type IdentityDB ¶
type IdentityDB struct {
// contains filtered or unexported fields
}
func NewIdentityDB ¶
func (*IdentityDB) AddConfiguration ¶
func (db *IdentityDB) AddConfiguration(wp driver.IdentityConfiguration) error
func (*IdentityDB) ConfigurationExists ¶
func (db *IdentityDB) ConfigurationExists(id, typ string) (bool, error)
func (*IdentityDB) GetAuditInfo ¶
func (db *IdentityDB) GetAuditInfo(id []byte) ([]byte, error)
func (*IdentityDB) GetSchema ¶
func (db *IdentityDB) GetSchema() string
func (*IdentityDB) GetSignerInfo ¶
func (db *IdentityDB) GetSignerInfo(identity []byte) ([]byte, error)
func (*IdentityDB) GetTokenInfo ¶
func (db *IdentityDB) GetTokenInfo(id []byte) ([]byte, []byte, error)
func (*IdentityDB) IteratorConfigurations ¶
func (db *IdentityDB) IteratorConfigurations(configurationType string) (driver.Iterator[driver.IdentityConfiguration], error)
func (*IdentityDB) SignerInfoExists ¶
func (db *IdentityDB) SignerInfoExists(id []byte) (bool, error)
func (*IdentityDB) StoreIdentityData ¶
func (*IdentityDB) StoreSignerInfo ¶
func (db *IdentityDB) StoreSignerInfo(id, info []byte) error
type NewDBOpts ¶
func NewDBOptsFromOpts ¶
type OpenDBFunc ¶
type Opener ¶
type Opener[V any] struct { // contains filtered or unexported fields }
func NewOpener ¶
func NewOpener[V any](optsKey, envVarKey string, constructors OpenDBFunc[V]) *Opener[V]
func NewOpenerFromMap ¶
func NewOpenerFromMap[V any](optsKey, envVarKey string, constructors map[common.SQLDriverType]OpenDBFunc[V]) *Opener[V]
func (*Opener[V]) OpenWithOpts ¶
type PostgresConfig ¶
type PostgresConfig = postgres2.ContainerConfig
func DefaultPostgresConfig ¶
func DefaultPostgresConfig(node string) *PostgresConfig
type Select ¶
type Select struct {
// contains filtered or unexported fields
}
func NewSelectDistinct ¶
type TokenDB ¶
type TokenDB struct {
// contains filtered or unexported fields
}
func (*TokenDB) Balance ¶
Balance returns the sun of the amounts, with 64 bits of precision, of the tokens with type and EID equal to those passed as arguments.
func (*TokenDB) DeleteTokens ¶
DeleteTokens deletes multiple tokens at the same time (when spent, invalid or expired)
func (*TokenDB) ExistsCertification ¶
func (*TokenDB) GetAllTokenInfos ¶
GetAllTokenInfos retrieves the token information for the passed ids.
func (*TokenDB) GetCertifications ¶
func (*TokenDB) GetTokenMetadata ¶
GetTokenMetadata retrieves the token metadata for the passed ids. For each id, the callback is invoked to unmarshal the token metadata
func (*TokenDB) GetTokenOutputs ¶
func (*TokenDB) GetTokenOutputsAndMeta ¶
func (db *TokenDB) GetTokenOutputsAndMeta(ctx context.Context, ids []*token.ID) ([][]byte, [][]byte, []token.Format, error)
GetTokenOutputsAndMeta retrieves both the token output, metadata, and type for the passed ids.
func (*TokenDB) GetTokens ¶
GetTokens returns the owned tokens and their identifier keys for the passed ids.
func (*TokenDB) ListAuditTokens ¶
ListAuditTokens returns the audited tokens associated to the passed ids
func (*TokenDB) ListHistoryIssuedTokens ¶
func (db *TokenDB) ListHistoryIssuedTokens() (*token.IssuedTokens, error)
ListHistoryIssuedTokens returns the list of issued tokens
func (*TokenDB) ListUnspentTokens ¶
func (db *TokenDB) ListUnspentTokens() (*token.UnspentTokens, error)
ListUnspentTokens returns the list of unspent tokens
func (*TokenDB) ListUnspentTokensBy ¶
func (db *TokenDB) ListUnspentTokensBy(walletID string, typ token.Type) (*token.UnspentTokens, error)
ListUnspentTokensBy returns the list of unspent tokens, filtered by owner and token type
func (*TokenDB) NewTokenDBTransaction ¶
func (db *TokenDB) NewTokenDBTransaction() (driver.TokenDBTransaction, error)
func (*TokenDB) PublicParams ¶
func (*TokenDB) PublicParamsByHash ¶
func (*TokenDB) QueryTokenDetails ¶
func (db *TokenDB) QueryTokenDetails(params driver.QueryTokenDetailsParams) ([]driver.TokenDetails, error)
QueryTokenDetails returns details about owned tokens, regardless if they have been spent or not. Filters work cumulatively and may be left empty. If a token is owned by two enrollmentIDs and there is no filter on enrollmentID, the token will be returned twice (once for each owner).
func (*TokenDB) SetSupportedTokenFormats ¶
func (*TokenDB) SpendableTokensIteratorBy ¶
func (db *TokenDB) SpendableTokensIteratorBy(ctx context.Context, walletID string, typ token.Type) (tdriver.SpendableTokensIterator, error)
SpendableTokensIteratorBy returns the minimum information about the tokens needed for the selector
func (*TokenDB) StoreCertifications ¶
func (*TokenDB) StorePublicParams ¶
func (*TokenDB) StoreToken ¶
func (db *TokenDB) StoreToken(tr driver.TokenRecord, owners []string) (err error)
func (*TokenDB) TransactionExists ¶
func (*TokenDB) UnspentTokensIterator ¶
func (db *TokenDB) UnspentTokensIterator() (tdriver.UnspentTokensIterator, error)
UnspentTokensIterator returns an iterator over all unspent tokens
func (*TokenDB) UnspentTokensIteratorBy ¶
func (db *TokenDB) UnspentTokensIteratorBy(ctx context.Context, walletID string, tokenType token.Type) (tdriver.UnspentTokensIterator, error)
UnspentTokensIteratorBy returns an iterator of unspent tokens owned by the passed id and whose type is the passed on. The token type can be empty. In that case, tokens of any type are returned.
func (*TokenDB) WhoDeletedTokens ¶
WhoDeletedTokens returns information about which transaction deleted the passed tokens. The bool array is an indicator used to tell if the token at a given position has been deleted or not
type TokenInterpreter ¶
type TokenInterpreter interface { common.Interpreter HasTokens(colTxID, colIdx common.FieldName, ids ...*token.ID) common.Condition HasTokenTypes(colTokenType common.FieldName, tokenTypes ...token.Type) common.Condition HasTokenFormats(colTokenType common.FieldName, formats ...token.Format) common.Condition HasTokenDetails(params driver.QueryTokenDetailsParams, tokenTable string) common.Condition HasMovementsParams(params driver.QueryMovementsParams) common.Condition HasValidationParams(params driver.QueryValidationRecordsParams) common.Condition HasTransactionParams(params driver.QueryTransactionsParams, table string) common.Condition }
func NewTokenInterpreter ¶
func NewTokenInterpreter(ci common.Interpreter) TokenInterpreter
type TokenLockDB ¶
func NewTokenLockDB ¶
func NewTokenLockDB(db *sql.DB, opts NewDBOpts) (*TokenLockDB, error)
func (*TokenLockDB) Close ¶
func (db *TokenLockDB) Close() error
func (*TokenLockDB) GetSchema ¶
func (db *TokenLockDB) GetSchema() string
func (*TokenLockDB) Lock ¶
func (db *TokenLockDB) Lock(tokenID *token.ID, consumerTxID transaction.ID) error
func (*TokenLockDB) UnlockByTxID ¶
func (db *TokenLockDB) UnlockByTxID(consumerTxID transaction.ID) error
type TokenRequestIterator ¶
type TokenRequestIterator struct {
// contains filtered or unexported fields
}
func (*TokenRequestIterator) Close ¶
func (t *TokenRequestIterator) Close()
func (*TokenRequestIterator) Next ¶
func (t *TokenRequestIterator) Next() (*driver.TokenRequestRecord, error)
type TokenTransaction ¶
type TokenTransaction struct {
// contains filtered or unexported fields
}
func (*TokenTransaction) Commit ¶
func (t *TokenTransaction) Commit() error
func (*TokenTransaction) Rollback ¶
func (t *TokenTransaction) Rollback() error
func (*TokenTransaction) SetSpendable ¶
func (*TokenTransaction) SetSpendableBySupportedTokenFormats ¶
func (*TokenTransaction) StoreToken ¶
func (t *TokenTransaction) StoreToken(ctx context.Context, tr driver.TokenRecord, owners []string) error
type TransactionDB ¶
type TransactionDB struct {
// contains filtered or unexported fields
}
func (*TransactionDB) AddTransactionEndorsementAck ¶
func (*TransactionDB) BeginAtomicWrite ¶
func (db *TransactionDB) BeginAtomicWrite() (driver.AtomicWrite, error)
func (*TransactionDB) Close ¶
func (db *TransactionDB) Close() error
func (*TransactionDB) GetSchema ¶
func (db *TransactionDB) GetSchema() string
func (*TransactionDB) GetTokenRequest ¶
func (db *TransactionDB) GetTokenRequest(txID string) ([]byte, error)
func (*TransactionDB) GetTransactionEndorsementAcks ¶
func (db *TransactionDB) GetTransactionEndorsementAcks(txID string) (map[string][]byte, error)
func (*TransactionDB) QueryMovements ¶
func (db *TransactionDB) QueryMovements(params driver.QueryMovementsParams) (res []*driver.MovementRecord, err error)
func (*TransactionDB) QueryTokenRequests ¶
func (db *TransactionDB) QueryTokenRequests(params driver.QueryTokenRequestsParams) (driver.TokenRequestIterator, error)
QueryTokenRequests returns an iterator over the token requests matching the passed params
func (*TransactionDB) QueryTransactions ¶
func (db *TransactionDB) QueryTransactions(params driver.QueryTransactionsParams) (driver.TransactionIterator, error)
func (*TransactionDB) QueryValidations ¶
func (db *TransactionDB) QueryValidations(params driver.QueryValidationRecordsParams) (driver.ValidationRecordsIterator, error)
type TransactionIterator ¶
type TransactionIterator struct {
// contains filtered or unexported fields
}
func (*TransactionIterator) Close ¶
func (t *TransactionIterator) Close()
func (*TransactionIterator) Next ¶
func (t *TransactionIterator) Next() (*driver.TransactionRecord, error)
type UnspentTokensInWalletIterator ¶
type UnspentTokensInWalletIterator struct {
// contains filtered or unexported fields
}
func (*UnspentTokensInWalletIterator) Close ¶
func (u *UnspentTokensInWalletIterator) Close()
func (*UnspentTokensInWalletIterator) Next ¶
func (u *UnspentTokensInWalletIterator) Next() (*token.UnspentTokenInWallet, error)
type UnspentTokensIterator ¶
type UnspentTokensIterator struct {
// contains filtered or unexported fields
}
func (*UnspentTokensIterator) Close ¶
func (u *UnspentTokensIterator) Close()
func (*UnspentTokensIterator) Next ¶
func (u *UnspentTokensIterator) Next() (*token.UnspentToken, error)
type ValidationRecordsIterator ¶
type ValidationRecordsIterator struct {
// contains filtered or unexported fields
}
func (*ValidationRecordsIterator) Close ¶
func (t *ValidationRecordsIterator) Close()
func (*ValidationRecordsIterator) Next ¶
func (t *ValidationRecordsIterator) Next() (*driver.ValidationRecord, error)
type WalletDB ¶
type WalletDB struct {
// contains filtered or unexported fields
}