Documentation ¶
Index ¶
- type Vault
- func (vault *Vault) AddPeer(ctx context.Context, foreignKey string, peerID string, userAgent string, ...) error
- func (vault *Vault) RetrieveWallet(ctx context.Context, foreignKey string) (*tss.DkgResult, error)
- func (vault *Vault) StoreWallet(ctx context.Context, foreignKey string, peerID string, userAgent string, ...) (string, error)
- func (vault *Vault) WalletExists(ctx context.Context, foreignKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func (*Vault) AddPeer ¶ added in v1.2.0
func (vault *Vault) AddPeer(ctx context.Context, foreignKey string, peerID string, userAgent string, updatedDkgResult *tss.DkgResult) error
AddPeer adds a device in DB, including updating the BKs Requires the metadata in the context
func (*Vault) RetrieveWallet ¶
RetrieveWallet retrieves a wallet from DB based on the userID of the user (which is a loose foreign key, the format will depend on the auth provider) Tested in integration tests (with throw away db)
func (*Vault) StoreWallet ¶
func (vault *Vault) StoreWallet(ctx context.Context, foreignKey string, peerID string, userAgent string, dkgResult *tss.DkgResult) (string, error)
StoreWallet inserts a wallet (if it already exists, it does nothing, no error returned) Tested in integration tests (with throw away db)
Click to show internal directories.
Click to hide internal directories.