kvs

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityConfigurationsIterator

type IdentityConfigurationsIterator struct {
	kvs.Iterator
}

func (*IdentityConfigurationsIterator) Next

type IdentityDB

type IdentityDB struct {
	// contains filtered or unexported fields
}

func NewIdentityDB

func NewIdentityDB(kvs KVS, tmsID token.TMSID) *IdentityDB

func (*IdentityDB) AddConfiguration

func (s *IdentityDB) AddConfiguration(wp driver.IdentityConfiguration) error

func (*IdentityDB) ConfigurationExists

func (s *IdentityDB) ConfigurationExists(id, typ string) (bool, error)

func (*IdentityDB) GetAuditInfo

func (s *IdentityDB) GetAuditInfo(identity []byte) ([]byte, error)

func (*IdentityDB) GetSignerInfo

func (s *IdentityDB) GetSignerInfo(identity []byte) ([]byte, error)

func (*IdentityDB) GetTokenInfo

func (s *IdentityDB) GetTokenInfo(identity []byte) ([]byte, []byte, error)

func (*IdentityDB) IteratorConfigurations

func (s *IdentityDB) IteratorConfigurations(configurationType string) (driver.Iterator[driver.IdentityConfiguration], error)

func (*IdentityDB) SignerInfoExists

func (s *IdentityDB) SignerInfoExists(id []byte) (bool, error)

func (*IdentityDB) StoreIdentityData

func (s *IdentityDB) StoreIdentityData(id []byte, identityAudit []byte, tokenMetadata []byte, tokenMetadataAudit []byte) error

func (*IdentityDB) StoreSignerInfo

func (s *IdentityDB) StoreSignerInfo(id, info []byte) error

type KVS

type KVS interface {
	Exists(id string) bool
	Put(id string, state interface{}) error
	Get(id string, state interface{}) error
	GetByPartialCompositeID(prefix string, attrs []string) (kvs.Iterator, error)
}

type RecipientData

type RecipientData struct {
	// AuditInfo contains private information Identity
	AuditInfo []byte
	// TokenMetadata contains public information related to the token to be assigned to this Recipient.
	TokenMetadata []byte
	// TokenMetadataAuditInfo contains private information TokenMetadata
	TokenMetadataAuditInfo []byte
}

RecipientData contains information about the identity of a token owner

type WalletDB

type WalletDB struct {
	// contains filtered or unexported fields
}

func NewWalletDB

func NewWalletDB(kvs KVS, tmsID token.TMSID) *WalletDB

func (*WalletDB) GetWalletID

func (s *WalletDB) GetWalletID(identity driver2.Identity, roleID int) (driver.WalletID, error)

func (*WalletDB) GetWalletIDs

func (s *WalletDB) GetWalletIDs(roleID int) ([]driver.WalletID, error)

func (*WalletDB) IdentityExists

func (s *WalletDB) IdentityExists(identity driver2.Identity, wID driver.WalletID, roleID int) bool

func (*WalletDB) LoadMeta

func (s *WalletDB) LoadMeta(identity driver2.Identity, wID driver.WalletID, roleID int) ([]byte, error)

func (*WalletDB) StoreIdentity

func (s *WalletDB) StoreIdentity(identity driver2.Identity, eID string, wID driver.WalletID, roleID int, meta []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL