Versions in this module Expand all Collapse all v1 v1.0.1 Feb 24, 2023 Changes in this version + var ErrNotSupportedType = errors.New("not supported key type") + func MigrateAccountToValidatorKey(acckeypath string, valkeypath string, pubkey validatorpk.PubKey) error + type EncryptedKeyJSON struct + Crypto keystore.CryptoJSON + PublicKey string + Type uint8 + type Keystore struct + func New(scryptN int, scryptP int) *Keystore + func (ks Keystore) EncryptKey(pubkey validatorpk.PubKey, key []byte, auth string) ([]byte, error) + func (ks Keystore) ReadKey(wantPubkey validatorpk.PubKey, filename, auth string) (*PrivateKey, error) + func (ks Keystore) StoreKey(filename string, pubkey validatorpk.PubKey, key []byte, auth string) error + type PrivateKey struct + Bytes []byte + Decoded interface{} + Type uint8 + func DecryptKey(keyjson []byte, auth string) (*PrivateKey, error)