github.com/status-im/status-go@v1.1.0/eth-node/types/key.go (about) 1 package types 2 3 import ( 4 "crypto/ecdsa" 5 6 "github.com/google/uuid" 7 8 "github.com/status-im/status-go/extkeys" 9 ) 10 11 type Key struct { 12 ID uuid.UUID // Version 4 "random" for unique id not derived from key data 13 // to simplify lookups we also store the address 14 Address Address 15 // we only store privkey as pubkey/address can be derived from it 16 // privkey in this struct is always in plaintext 17 PrivateKey *ecdsa.PrivateKey 18 // ExtendedKey is the extended key of the PrivateKey itself, and it's used 19 // to derive child keys. 20 ExtendedKey *extkeys.ExtendedKey 21 // Deprecated: SubAccountIndex 22 // It was use in Status to keep track of the number of sub-account created 23 // before having multi-account support. 24 SubAccountIndex uint32 25 }