BIP38 vs BIP39: what each Bitcoin backup actually protects

Compare a BIP38 encrypted Bitcoin private key with a BIP39 mnemonic: what each format can restore, which secret it requires and why they are not interchangeable backups.

BIP38 vs BIP39: what each Bitcoin backup actually protects

BIP38 encrypts one Bitcoin private key with a passphrase and encodes it as a printable string; BIP39 represents initial entropy as a mnemonic that compatible wallet software can turn into a seed and then into many keys. They are not equivalent ways to back up a wallet. A BIP38 record needs its passphrase and restores one key, while a BIP39 backup needs the words, their language, an optional passphrase and the wallet configuration required to discover the expected branches.

What BIP38 actually protects

The BIP38 proposal defines a passphrase-protected private-key record encoded with Base58Check as a 58-character string. It was designed for paper wallets and physical bitcoins, where separating “something you have” from “something you know” can be useful. The record carries the information needed to reconstruct the private key except for the passphrase.

In its basic mode, software starts with an existing Bitcoin private key, calculates the corresponding legacy P2PKH address and uses the first four bytes of that address’s double-SHA256 hash as a check and part of the salt. It then derives key material with scrypt and encrypts the key with AES-256. A flag also records whether the address was produced using a compressed or uncompressed public key. During decryption, software calculates the address again and checks that short fragment. A wrong passphrase should fail that check; there is no central service that can reset it.

BIP38 also specifies an elliptic-curve multiplication (EC-multiply) mode. It lets one party create records and addresses using an intermediate code without knowing the owner’s original passphrase, while the owner needs that passphrase to decrypt. This is a particular BIP38 mode, not an HD wallet and not a conversion from BIP38 to BIP39. If the software that produced the record is unknown, do not infer its exact behavior just from seeing a string beginning with 6P.

The scope of a BIP38 backup

Decrypting BIP38 can return a Bitcoin private key and the address corresponding to the record’s compression flag. It does not automatically describe:

  • other keys a wallet might hold;
  • a derivation path, account, script type or multisignature policy;
  • labels, history, network configuration or device metadata;
  • the mnemonic from which someone might once have obtained that key.

An individual key can control funds at one address, but it is not a backup of a complete hierarchical wallet. The comparison between a seed phrase, binary seed, private key and address helps keep those layers separate. Do not confuse BIP38 with a keystore file either: an Ethereum V3 JSON keystore encrypts an account key with a different structure, password and integrity check.

The passphrase protects the record from someone who finds only the string, but it does not create unlimited security. An attacker who copies the BIP38 text can try to guess the passphrase offline. Scrypt is intended to make those attempts more expensive, not to turn a short or predictable password into a secure backup. If the correct passphrase is exposed, the encryption no longer protects that key. BIP38 specifies UTF-8 NFC normalization for its passphrase; BIP39 uses NFKD. Preserve the original secret and follow the format's rules instead of manually converting it. Store the passphrase separately from the record, using a method you can recover without entering it into a website or chat.

What a BIP39 backup contains

BIP39 follows a different sequence. It starts with entropy and adds a checksum before converting the bits into 12, 15, 18, 21 or 24 words from a word list. The phrase is not encrypted password text: it is mnemonic material that compatible software converts into a binary seed with PBKDF2-HMAC-SHA512. An optional BIP39 passphrase is additional input to that derivation; changing it can produce another valid wallet that appears empty.

The resulting seed can feed a hierarchical wallet through BIP32 or another compatible system. To restore the same addresses, the network, script type, derivation path, account, index and any passphrase must also match. That is why a valid mnemonic alone does not prove that you restored the wallet you meant to find. Word count does not identify the format either: a 12-word phrase may belong to another system.

Do not confuse a BIP39 mnemonic and its passphrase with a device PIN, an application password or a BIP38 passphrase. A PIN may protect local access; it is not necessarily part of the seed. A BIP39 passphrase changes the derivation result; it does not decrypt a BIP38 record. A SeedAddress password belongs to its own derivation method; it does not automatically become a BIP39 or BIP38 passphrase.

A practical recovery comparison

First identify the format by its origin. If you have a BIP38 record, you need the original string, its exact passphrase and software that implements the relevant mode. If you have a BIP39 backup, you need the canonical words in their original language and order, any BIP39 passphrase, and the wallet details that let it discover the same accounts. Do not try to “convert” a BIP38 string into 12 or 24 words: decryption gives you a private key, not the original entropy or mnemonic.

Check it through the official flow of a compatible wallet or with local software whose provenance you can inspect. Do not paste a key, BIP38 string, passphrase or real words into an online converter. Preserve the original record and compare the complete public address on the same network. If you are checking a backup, keep the wallet that still works and do not reset the only device to test an unverified copy. The offline backup-checking guide explains why a valid format and a visible address do not by themselves prove that you control the expected funds.

If a migration takes you from an individual key to a new HD wallet, make the change explicit: create the new wallet through the manufacturer’s documented random-generation process, verify its backup and transfer funds to its new addresses. Do not destroy the BIP38 record, the old wallet or its only backup merely because the transfer appears complete. The SeedAddress migration guide explains this principle without assuming that an import rotates or revokes the old keys.

Where SeedAddress fits

SeedAddress does not decrypt BIP38 or recover a random mnemonic from another wallet. Its generator reproduces a mnemonic in the browser from the selected coordinates, password, language and length. The method is deterministic and adds no random entropy; the location is public, and changing an input can produce a different result. A 24-word output is not automatically 256 bits of effective security if its inputs were predictable; the guide to word count and entropy explains the distinction.

If you use SeedAddress to reproduce a mnemonic created there, keep an independent offline copy of the words and separately preserve the exact coordinates, password, language and length. Do not enter a BIP38 record, private key or another wallet’s words into SeedAddress. The SeedAddress recovery guide explains which inputs its method requires and what it cannot reconstruct.

Checklist

  1. Identify whether the backup is BIP38, BIP39, a keystore, a descriptor or another format.
  2. For BIP38, preserve the record and its passphrase; for BIP39, preserve the words, optional passphrase and recovery configuration.
  3. Use only the official procedure or trusted local software; never use an online checker for real secrets.
  4. Check the public address, network and account before moving funds.
  5. Keep an independent backup and the old wallet until the new one is verified. Migration does not revoke old keys or convert one format into another.

BIP38 can be a transport or storage protection for one private key. BIP39 can be the mnemonic root of a compatible wallet. A safe decision starts by preserving the format and every recovery input it needs, not by choosing the string or word count that looks most familiar.

Sources