mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
49eaabaca5
* chore_: remove duplicated `StartNodeWithKey` * feat(KeycardPairing)_: added GetPairings method * chore_: simplify startNode... methods * chore_: added encryption path to be derived * fix_: error handling in StartNodeWithKey * feat_: added keycard properties to CreateAccount * feat_: moved KeycardWhisperPrivateKey to LoginAccount * fix_: LoginAccount during local pairing * feat_: added chat key handling to loginAccount * chore_: struct response from generateOrImportAccount * fix_: do not store keycard account to keystore * feat_: added Mnemonic parameter to LoginAccount * chore_: wrap loginAccount errors * feat_: RestoreKeycardAccountAndLogin endpoint * chore_: merge RestoreKeycardAccountRequest into RestoreAccountRequest * fix_: TestRestoreKeycardAccountAndLogin * fix_: MessengerRawMessageResendTest * chore_: cleanup * chore_: cleanup according to pr comments * chore_: better doc for Login.Mnemonic * chore_: add/fix comments * fix_: lint
26 lines
732 B
Go
26 lines
732 B
Go
package types
|
|
|
|
import (
|
|
"crypto/ecdsa"
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"github.com/status-im/status-go/extkeys"
|
|
)
|
|
|
|
type Key struct {
|
|
ID uuid.UUID // Version 4 "random" for unique id not derived from key data
|
|
// to simplify lookups we also store the address
|
|
Address Address
|
|
// we only store privkey as pubkey/address can be derived from it
|
|
// privkey in this struct is always in plaintext
|
|
PrivateKey *ecdsa.PrivateKey
|
|
// ExtendedKey is the extended key of the PrivateKey itself, and it's used
|
|
// to derive child keys.
|
|
ExtendedKey *extkeys.ExtendedKey
|
|
// Deprecated: SubAccountIndex
|
|
// It was use in Status to keep track of the number of sub-account created
|
|
// before having multi-account support.
|
|
SubAccountIndex uint32
|
|
}
|