Wallets
Keystore
An encrypted file that stores a private key, secured with a password, used for importing/exporting wallet access.
Last Updated
2026-03-19
Related Concepts
What is Keystore?
A keystore is an encrypted file containing a private key, protected by a password. Keystores allow exporting your wallet from one application and importing it into another.
How does Keystore work?
- User generates or imports a private key.
- The user sets a password.
- The key is encrypted using the password (typically using scrypt).
- The encrypted key and encryption parameters are saved as a JSON file.
- The file is downloaded or saved locally.
- To import, the user uploads the file and enters their password.
- The application decrypts the key using the password.
- The decrypted key is used to sign transactions.
- The key should never be stored unencrypted.
Why does Keystore matter?
Keystores enable wallet portability. Without keystores, you'd be locked into one wallet application.
Key features of Keystore
- Encrypted file containing private key
- Password-protected
- Portable between applications
- Can be stored locally or backed up
- Less secure than hardware wallets
- Requires strong password
- Standard format (JSON)
- Key recovery depends on password
Examples of Keystore
MetaMask allows exporting keystore files. MyEtherWallet lets you work with keystores.
Geth generates keystores. Mobile wallets often don't support keystore import due to security.
Hardware wallets can import keystores but store keys securely on the device.
