keypairs

package
v0.115.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MPL-2.0 Imports: 3 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) 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) 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