keypairs

package
v0.140.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MPL-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 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"`
	LastUpdateClock   uint64
}

func (*KeyPair) FromSyncKeycard added in v0.133.2

func (kp *KeyPair) FromSyncKeycard(kc *protobuf.SyncKeycard)

func (*KeyPair) ToSyncKeycard added in v0.133.2

func (kp *KeyPair) ToSyncKeycard() *protobuf.SyncKeycard

type KeyPairs

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

func NewKeyPairs

func NewKeyPairs(db *sql.DB) *KeyPairs

func (*KeyPairs) AddMigratedKeyPairOrAddAccountsIfKeyPairIsAdded added in v0.133.2

func (kp *KeyPairs) AddMigratedKeyPairOrAddAccountsIfKeyPairIsAdded(keyPair KeyPair) (addedKc bool, addedAccs bool, err error)

func (*KeyPairs) DeleteKeycard

func (kp *KeyPairs) DeleteKeycard(kcUID string, clock uint64) (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, clock uint64) (err error)

func (*KeyPairs) KeycardUnlocked

func (kp *KeyPairs) KeycardUnlocked(kcUID string, clock uint64) (err error)

func (*KeyPairs) RemoveMigratedAccountsForKeycard added in v0.125.0

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

func (*KeyPairs) SetKeycardName

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

func (*KeyPairs) SyncKeycards added in v0.133.2

func (kp *KeyPairs) SyncKeycards(syncingClock uint64, keypairsToSync []*KeyPair) (err error)

func (*KeyPairs) UpdateKeycardUID added in v0.110.2

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

type KeycardAction added in v0.133.2

type KeycardAction struct {
	Action        string   `json:"action"`
	OldKeycardUID string   `json:"old-keycard-uid,omitempty"`
	Keycard       *KeyPair `json:"keycard"`
}

Jump to

Keyboard shortcuts

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