keypairs

package
v0.130.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	KeycardUID        string          `json:"keycard-uid"`
	KeycardName       string          `json:"keycard-name"`
	KeycardLocked     bool            `json:"keycard-locked"`
	AccountsAddresses []types.Address `json:"accounts-addresses"`
	KeyUID            string          `json:"key-uid"`
}

type KeyPairs

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

func NewKeyPairs

func NewKeyPairs(db *sql.DB) *KeyPairs

func (*KeyPairs) AddMigratedKeyPair

func (kp *KeyPairs) AddMigratedKeyPair(kcUID string, kpName string, KeyUID string, accountAddresses []types.Address) (err error)

func (*KeyPairs) DeleteKeycard

func (kp *KeyPairs) DeleteKeycard(kcUID string) (err error)

func (*KeyPairs) DeleteKeypair added in v0.125.4

func (kp *KeyPairs) DeleteKeypair(keyUID string) (err error)

func (*KeyPairs) GetAllKnownKeycards added in v0.117.1

func (kp *KeyPairs) GetAllKnownKeycards() ([]*KeyPair, error)

func (*KeyPairs) GetAllMigratedKeyPairs

func (kp *KeyPairs) GetAllMigratedKeyPairs() ([]*KeyPair, error)

func (*KeyPairs) GetMigratedKeyPairByKeyUID

func (kp *KeyPairs) GetMigratedKeyPairByKeyUID(keyUID string) ([]*KeyPair, error)

func (*KeyPairs) KeycardLocked

func (kp *KeyPairs) KeycardLocked(kcUID string) (err error)

func (*KeyPairs) KeycardUnlocked

func (kp *KeyPairs) KeycardUnlocked(kcUID string) (err error)

func (*KeyPairs) RemoveMigratedAccountsForKeycard added in v0.125.0

func (kp *KeyPairs) RemoveMigratedAccountsForKeycard(kcUID string, accountAddresses []types.Address) (err error)

func (*KeyPairs) SetKeycardName

func (kp *KeyPairs) SetKeycardName(kcUID string, kpName string) (err error)

func (*KeyPairs) UpdateKeycardUID added in v0.110.2

func (kp *KeyPairs) UpdateKeycardUID(oldKcUID string, newKcUID string) (err error)

Jump to

Keyboard shortcuts

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