Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificationStorage ¶
type CertificationStorage struct {
*tokendb.StoreService
}
CertificationStorage manages token certifications in the database.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider creates and caches vault instances for TMS identifiers. It manages access to token, transaction, and audit storage services.
func NewVaultProvider ¶
func NewVaultProvider( tokenStoreServiceManager tokendb.StoreServiceManager, ttxStoreServiceManager ttxdb.StoreServiceManager, auditStoreServiceManager auditdb.StoreServiceManager, ) *Provider
NewVaultProvider creates a vault provider with the given storage managers.
type PublicParamsStorage ¶
type PublicParamsStorage struct {
Provider *Provider
}
PublicParamsStorage retrieves public parameters from vault storage.
func (*PublicParamsStorage) PublicParams ¶
func (p *PublicParamsStorage) PublicParams(ctx context.Context, networkID string, channel string, namespace string) ([]byte, error)
PublicParams returns the serialized public parameters for the given TMS coordinates.
type QueryEngine ¶
type QueryEngine struct {
*tokendb.StoreService
// contains filtered or unexported fields
}
QueryEngine provides query operations across token, audit, and transaction databases.
func (*QueryEngine) GetStatus ¶
GetStatus returns the transaction status, checking ttx database first, then audit database.
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault provides access to token storage, query engine, and certification storage.
func NewVault ¶
func NewVault(tmsID token2.TMSID, auditdb *auditdb.StoreService, ttxdb *ttxdb.StoreService, tokenDB *tokendb.StoreService) (*Vault, error)
NewVault creates a vault with the given TMS ID and storage services.
func (*Vault) CertificationStorage ¶
func (v *Vault) CertificationStorage() driver.CertificationStorage
CertificationStorage returns the vault's certification storage.
func (*Vault) DeleteTokens ¶
DeleteTokens removes the specified tokens from storage.
func (*Vault) QueryEngine ¶
func (v *Vault) QueryEngine() driver.QueryEngine
QueryEngine returns the vault's query engine for token and transaction queries.