You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add xpub and cold wallet fields to keypair (#7407)
Added xpub (representing extended public key) and cold wallet (representing the cold wallet, StatusKeycard, Ledger, Trezor...) fields to keypair type and updated related database and migration files.
Copy file name to clipboardExpand all lines: internal/accounts-management/types/keypair.go
+35-20Lines changed: 35 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ var (
16
16
typeKeypairTypestring
17
17
typeAccountTypestring
18
18
typeAccountOperablestring
19
+
typeColdWalletTypestring
19
20
20
21
const (
21
22
KeypairTypeProfileKeypairType="profile"
@@ -34,20 +35,28 @@ const (
34
35
AccountNonOperableAccountOperable="no"// an account is non operable it is not a keycard account and there is no keystore file for it and no keystore file for the address it is derived from
35
36
AccountPartiallyOperableAccountOperable="partially"// an account is partially operable if it is not a keycard account and there is created keystore file for the address it is derived from
36
37
AccountFullyOperableAccountOperable="fully"// an account is fully operable if it is not a keycard account and there is a keystore file for it
SyncedFromstring`json:"synced-from,omitempty"`// keeps an info which device this keypair is added from can be one of two values defined in constants or device name (custom)
SyncedFromstring`json:"synced-from,omitempty"`// keeps an info which device this keypair is added from can be one of two values defined in constants or device name (custom)
0 commit comments