Ethereum V3 Keystore JSON vs BIP39 Seed: What Each Backup Restores
Distinguish an Ethereum V3 keystore JSON file from a BIP39 seed: file password, KDF, MAC, individual key scope and recovery limits.

An Ethereum Web3 Secret Storage version 3 keystore JSON file and a BIP39 seed phrase are not equivalent ways to back up “the wallet.” A V3 JSON file is an encrypted container for the private key of one account: it needs the corresponding V3 file and the password protecting that export. A BIP39 phrase is a mnemonic that compatible wallet software turns into a binary seed; its scope also depends on an optional passphrase, derivation path, account and application settings. A JSON file can therefore restore an imported account without restoring other accounts or the original phrase.
What a V3 file actually is
Ethereum’s Web3 Secret Storage Definition describes this version as a structured encryption envelope. Its important fields are not human-readable recovery words:
versionidentifies the format version the software must interpret.idis usually a UUID associated with the key record. It is an identifier, not the private key and not proof of who controls the account.cryptocontains the derivation method, cipher, parameters, ciphertext andmac.kdfandkdfparamsdescribe how the file password becomes a derived key. The specification requires PBKDF2 support; Geth also supports its scrypt-based path.cipher,cipherparamsandciphertextdescribe how the secret material is encrypted. AES-128-CTR is the minimum cipher named by the V3 specification.maclets the implementation check whether the supplied password produced a derived key compatible with that ciphertext.
An address field is not required by V3, and the specification explains that including one can harm privacy. A filename, an address written as metadata or a JSON document that opens in an editor does not prove where the file came from or who owns the account. Preserve the original bytes and let compatible wallet software validate the content.
How the password is checked
The conceptual recovery sequence is:
- The program reads the file password and the
kdfandkdfparamsvalues. - It derives a key using the salt, iteration count or cost parameters stored in the file.
- It calculates the MAC from part of that derived key and the
ciphertext, then compares it withmac. - Only when that check matches does it decrypt the
ciphertextwith the declared cipher and IV.
A matching MAC confirms that the password verifies those encrypted bytes. It does not confirm provenance, ownership, absence of duplicates or exclusive control of the account. A file can be genuine and still have been copied or shared. Do not edit fields by hand to “repair” an import: a change can make verification fail or cause the file to no longer represent the export you received.
If the check fails, the password may be wrong, the file may be different or the bytes may be corrupted; the MAC alone cannot diagnose which cause occurred.
The Geth passphrase implementation makes this boundary concrete. DecryptKey checks the format, verifies the MAC and turns the decrypted bytes into a private key; the public address is derived from that key afterwards. The process does not produce a BIP39 phrase.
The file password is not a BIP39 passphrase
The BIP39 specification defines a different sequence: a mnemonic and an optional passphrase are converted through PBKDF2-HMAC-SHA512 into a binary seed. Changing that passphrase can produce another valid wallet even when the words stay the same. It is not the password of a V3 JSON export.
Keep at least these values separate:
- The V3 keystore password unlocks one particular export. It does not reconstruct a mnemonic or other accounts.
- The BIP39 passphrase changes the binary seed derived from a set of words. If one was used, it is part of that wallet’s recovery backup.
- An application password, such as the password for a MetaMask installation, protects that application’s local vault. It does not replace the password requested by an imported JSON file.
- The SeedAddress input password participates earlier, in its deterministic mnemonic derivation. It does not automatically become a BIP39 passphrase or a keystore password.
The guide to seed phrases and private keys explains why one private key is not a complete HD-wallet backup. The guide to a missing imported MetaMask account explains why a JSON-imported account does not reappear merely because another phrase was restored.
What it restores—and what it does not
A V3 JSON file from a known origin may let compatible software use one individual account again. It does not necessarily contain other accounts derived from a phrase, other imported accounts, a BIP39 passphrase, derivation paths, networks, labels, notes, application settings or the mnemonic from which someone obtained the key. Do not assume that exposure of the key is confined to one network: the same account or key may be used on multiple compatible networks. The file is sensitive signing material.
What happens when the password changes
In the Geth KeyStore.Update implementation, the program decrypts the existing account with the old password and stores the same key at the account path with the new password. StoreKey writes a temporary replacement and, when key-file verification is enabled, tries to decrypt it to verify the file before renaming it.
That is not key rotation. Imagine one copy labelled “old export” and another labelled “new export,” without writing real passwords in the inventory. If the first file and its old password remain available, changing the account password does not make that old copy unreadable or revoke its contents. A copy that was already exposed remains exposed; the password change only protects the re-encrypted file. Wallets can implement password changes differently, so attribute this post-write check specifically to Geth rather than treating it as a universal promise.
Back up and restore without risking the original
Work only with a file whose origin and account you know:
- Keep the original JSON unchanged. Make another copy only when you can protect and verify both copies.
- Record which wallet created the export and which account it represents, without putting keys, passwords or a full address in a connected document.
- Store the file password securely and separately from the JSON copy, and also from a phrase, passphrase, PIN and application password.
- For learning, use only disposable unfunded test material. For a real known-origin backup, follow the wallet documentation in a trusted compatible environment, keep the previous wallet and do not make transfers just to test the interface. Never upload the JSON to a website, support chat or unknown checker, and do not import shared or untrusted files.
- Compare the derived public account with a trusted historical record and keep the original until account, network and settings are checked. Do not move funds merely because the JSON looks valid.
If your backup is a BIP39 phrase, follow that wallet’s phrase and passphrase recovery procedure, not a V3 file-import flow. SeedAddress explains how to recover a SeedAddress phrase, but that process does not decrypt keystores.
Where SeedAddress fits
SeedAddress derives a mnemonic in the browser from selected coordinates, an input password, language and word length. The selected physical location is public information, and the method adds no fresh random entropy. It does not import or decrypt V3 files, generate wallet private keys or addresses, or sign.
Keep an independent offline backup of the resulting phrase unconditionally. If you also want to attempt regeneration, store the exact inputs separately; future geocoding can return different coordinates, and the interface cannot restore historical coordinates simply by pasting them later. Do not use the SeedAddress password as an automatic substitute for a JSON password or a BIP39 passphrase.