Documentation
¶
Index ¶
- type EncryptedKeyRing
- type KeyRing
- type KeyStates
- func (ks *KeyStates) Add(state *ethkey.State)
- func (ks *KeyStates) Delete(addr common.Address)
- func (ks *KeyStates) Disable(addr common.Address, chainID *big.Int, updatedAt time.Time)
- func (ks *KeyStates) Enable(addr common.Address, chainID *big.Int, updatedAt time.Time)
- func (ks *KeyStates) Get(addr common.Address, chainID *big.Int) *ethkey.State
- type LegacyKeyStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedKeyRing ¶
type KeyRing ¶
type KeyRing struct {
CSA map[string]csakey.KeyV2
Eth map[string]ethkey.KeyV2
OCR map[string]ocrkey.KeyV2
OCR2 map[string]ocr2key.KeyBundle
P2P map[string]p2pkey.KeyV2
Cosmos map[string]cosmoskey.Key
Solana map[string]solkey.Key
StarkNet map[string]starkkey.Key
Sui map[string]suikey.Key
Aptos map[string]aptoskey.Key
Tron map[string]tronkey.Key
TON map[string]tonkey.Key
VRF map[string]vrfkey.KeyV2
Workflow map[string]workflowkey.Key
DKGRecipient map[string]dkgrecipientkey.Key
LegacyKeys LegacyKeyStorage
}
func NewKeyRing ¶
func NewKeyRing() *KeyRing
func (*KeyRing) Encrypt ¶
func (kr *KeyRing) Encrypt(password string, scryptParams keystore.ScryptParams) (ekr EncryptedKeyRing, err error)
type KeyStates ¶
type KeyStates struct {
// Key ID => chain ID => state
KeyIDChainID map[string]map[string]*ethkey.State
// Chain ID => Key ID => state
ChainIDKeyID map[string]map[string]*ethkey.State
All []*ethkey.State
}
func NewKeyStates ¶
func NewKeyStates() *KeyStates
type LegacyKeyStorage ¶
type LegacyKeyStorage struct {
// contains filtered or unexported fields
}
func (*LegacyKeyStorage) StoreUnsupported ¶
func (k *LegacyKeyStorage) StoreUnsupported(allRawKeysJSON []byte, keyRing *KeyRing) error
StoreUnsupported will store the raw keys that no longer have support in the node it will check if raw json contains keys that have not been added to the key ring and stores them internally
func (*LegacyKeyStorage) UnloadUnsupported ¶
func (k *LegacyKeyStorage) UnloadUnsupported(supportedRawKeyRingJson []byte) ([]byte, error)
UnloadUnsupported will inject the unsupported keys into the raw key ring json
Click to show internal directories.
Click to hide internal directories.