BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

BIP 38

BIP 38 specifies a portable, passphrase-protected Bitcoin private-key record. Mike Caldwell and Aaron Voisine are named as authors in the current document. Its Base58Check string is 58 characters beginning with 6P, designed particularly for paper wallets and physical bitcoin objects. It encrypts an individual spending key; it neither changes Bitcoin's transaction rules nor supplies the recoverable hierarchy of a deterministic wallet. The BIP records 20 November 2012 as its assigned date, while the surviving bitcoin/bips repository first added its file on 19 November 2013. These dates describe different records. BIP 38 — current specification · First preserved repository addition

The paper-wallet problem

An early paper wallet could store a private key as text or a QR code. Anyone who copied that key could spend the corresponding outputs; a paper object offered no cryptographic protection against copying the secret. A passphrase added a second required secret while keeping the encrypted record printable and transferable. Caldwell's specification also addressed physical-bitcoin manufacturers: a purchaser might want a sealed object without granting the issuer knowledge of its eventual spending key. These were the '''authors' proposed use cases**, not evidence that every physical coin or paper wallet used the design. BIP 38 motivation and rationale

The history of one paper-wallet generator makes the transition visible. The maintained first-party bitaddress.org changelog assigns 2 October 2011 to adding a PaperWallet tab and additional mouse-motion data to its random pool; it lists 9 January 2012 as adding a way to hash a user-entered passphrase directly into a private key and 29 July 2012 as adding a dedicated Brain Wallet tab. Those latter modes are brainwallet generation, not BIP 38 encryption. The same changelog records *24 October 2013' as adding BIP 38 encrypted paper-wallet support in version 2.5.1. The preserved changelog is a maintained project record, not an independently authenticated copy of each release binary on those historical dates. Bitaddress.org maintained version history

The distinction between those interfaces matters. Hashing a human-chosen phrase to *create'' a key makes that phrase the source of the key's unpredictability. Encrypting an independently generated key with BIP 38 instead leaves the original key generation separate, but exposes a recorded ciphertext to offline passphrase guessing. Neither design makes weak human choices unpredictable. See Bitcoin wallet randomness. Project's earlier SHA-256 brainwallet description · BIP 38 design

The two formats

BIP 38 defines two modes; they must not be confused merely because both display as 6P... strings.

**Encrypting a known key** (0x0142)
Someone who knows an existing private key and passphrase can encrypt that key. The algorithm derives key material from the normalized passphrase using scrypt, salts it with four bytes calculated from the Bitcoin address, and uses AES-256 to protect the private-key bytes. Its stated scrypt parameters for this mode are N=16384, r=8, p=8. A flag records whether the associated address uses the compressed or uncompressed public key. This mode does **not** generate new private keys. Non-EC-multiply specification
**EC-multiplied generation** (0x0143)
The proposed owner produces a passphrase-derived elliptic-curve point and salt, distributed as an intermediate code. A printer uses that public point together with fresh random material to derive a new key/address pair and encrypt the result, without learning the owner's passphrase or full private key through the specified calculation. This mode **generates** a key; it cannot take a pre-existing private key and wrap it after the fact. It optionally encodes lot and sequence information for batch production. EC-multiply specification

In both modes the record encodes a four-byte hash of a Bitcoin address in plaintext. The field helps a decryption tool detect a wrong passphrase by regenerating an address and comparing its hash; it is not a transaction proof or a claim of ownership. The BIP itself acknowledges that the four-byte value can make a candidate address correlate with an encrypted record. The 6P prefix identifies a specified private-key format, not an on-chain output type. Abstract, encoding and checks

The EC-multiply scheme also defines optional intermediate strings beginning with passphrase and confirmation codes beginning with cfrm38. A confirmation check can demonstrate the specified mathematical relationship between a passphrase and an address. It does not inspect a sealed physical object, audit the printer's random-number generator, authenticate the printed artifact or guarantee that an independently supplied encrypted-key string corresponds to what was confirmed. These are separate operational trust boundaries. Intermediate and confirmation-code procedures

A chronology with more than one publication date

  • 20 November 2012: The BIP's current and earliest preserved preambles use this as the proposal's dated creation/assignment. That header is document metadata, not independently verified evidence of a Git commit on that day. Earliest preserved BIP text
  • 24 October 2013: The maintained Bitaddress.org history dates its BIP 38 support to version 2.5.1. This is project-authored version history, evidence of claimed implementation, not a count of installed users. Project changelog
  • 19 November 2013: Wladimir van der Laan added bip-0038.mediawiki to bitcoin/bips. The file named Mike Caldwell alone as author, classified the proposal as Draft, and contained an unusually candid caveat that its announcements had missed the mailing list and public discussion had not happened through that channel. That note should not be stretched into a claim that nobody anywhere had discussed it. First repository addition
  • April–June 2014: The document underwent mathematical and interoperability clarifications. A 13 April revision added Aaron Voisine to the authors field; the original single-author record remains visible in history. On 26 June, Voisine explicitly added Unicode NFC normalization to the passphrase-processing instructions. Those details are preserved modifications to the specification, not wording present in the November 2013 import. Author-field revision · Unicode normalization revision
  • 15 March 2017: The BIPs repository copied the comment system's tone summary into BIP preambles. BIP 38 acquired the surviving line “Unanimously Discourage for implementation”. That metadata is a record of the then-maintained comments system; it is neither a protocol-level prohibition nor proof of an ecosystem-wide vote. Comments-summary integration
  • 20 May 2026: Murch changed BIP 38's status from Draft to Deployed. The change modified the document header and index; it did not delete the discouragement summary or change the encrypted-key encoding. Recorded status change

BIP 3's 2026 process defines Deployed as a settled specification evidenced in active use and treated as final for compatibility. It explicitly says the BIPs repository is not a consensus authority or general recommendation body. Thus the surviving BIP 38 preamble contains a real historical tension: an implemented format retained for interoperability alongside a negative comment assessment. Treating either field as the whole verdict would lose information. BIP 3 — meaning of status and limits of BIPs

What an encrypted paper key can and cannot secure

BIP 38 addresses the compromise of a stored individual key by someone who obtains only its encrypted representation. Its scrypt work factor makes each passphrase guess more expensive; it cannot create entropy that the passphrase lacks. An attacker holding a 6P... string can attempt guesses offline. A successful decryption and address-hash match establishes a candidate key, not that any coins remain at its address. The specification includes public test vectors; they are examples, not safe destinations for funds. Algorithms and test vectors

It also does not remove the risks of a compromised generator, a printer that substitutes an address, a copied plaintext key from before encryption, a lost or disclosed passphrase, or a wallet unable to import the format. In EC-multiply mode the trust boundary differs because the printer is not supposed to know the owner's passphrase; using a particular device, website or physical service safely is still a separate evidentiary question. For a legacy paper key, spending may require importing or sweeping the key with appropriate attention to any remainder; BIP 38 itself does not define change-address handling or automatic backup renewal.

Bitcoin wallet encryption concerns the separate history of encrypting private keys inside wallet.dat. Its 2011 Berkeley DB failure involved historical plaintext copies retained in file storage. Deterministic wallets and BIP 39 concern recovery of sets of keys from seed material. BIP 38 encrypts one private-key record. These systems can be discussed together without silently treating a 6P string as a mnemonic, a wallet-file backup or a second Bitcoin consensus signature. Original wallet-encryption distinction · BIP 39 — mnemonic-to-seed rules

Source status and remaining research

The versioned bitcoin/bips commits are direct document-history records. The BIP itself supplies the designers' explanation and formal construction. Bitaddress.org's maintained changelog is first-party release history, but not, on its own, a separately preserved runtime artifact for each version. The old comments-summary line reports a specific historical review mechanism, and the 2026 status change records a repository decision; neither establishes universal community sentiment. Risks beyond the formal design are security interpretations of its exposed ciphertext, key-generation dependencies and physical-custody model.

Open question
Recover the original 2012 announcement and number-allocation correspondence to corroborate the BIP's Assigned date independently of its maintained preamble.
Open question
Locate an immutable 2013 Bitaddress.org v2.5.1 distribution and independently inspect/test its BIP 38 implementation; distinguish the maintained changelog date from a verified release artifact.
Open question
Reconstruct the original BIP 38 comments and their dates from the preserved comment system, without treating its “Unanimously Discourage” summary as an unqualified survey of all Bitcoin users.

From the archivist's desk

The 2011 wallet-encryption story turned on secrets that were supposed to have disappeared from a database. BIP 38 took a different route: it made the encrypted secret itself portable. But the early browser-wallet history is a reminder that generating a key from a memorable sentence and encrypting an existing unpredictable key with a sentence are not the same operation. A label on a folded piece of paper cannot tell us which happened.

See also