Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateLayer Two Labs, drivechains for Bitcoin
BIP 138

Compact Encryption Scheme for Non-seed Wallet Data

Draft Draft Applications Specification Assigned 2026-05-11
From the BIP’s abstract

This BIP defines a compact encryption scheme for output script descriptors (BIP-0380), wallet policies (BIP-0388), and other wallet metadata. The payload must not contain any private key material. Users can store encrypted backups on untrusted media or cloud services without leaking addresses, script structures, or cosigner counts. The encryption key derives from the lexicographically-sorted public keys in the descriptor, allowing any keyholder to decrypt without additional secrets.

Read BIP 138 on GitHubFind in explorer

Changelog

  • 2026-09-240.1.3 · Rename, generalize and expand the key-selection test vectors. — Clarify MuSig participant eligibility and recipient selection across the payload. — Exclude roots exposed by another key expression.
  • 2026-09-240.1.2 · Specify empty AEAD associated data. — Clarify that 0x00 ends payload parsing and add test vectors.
  • 2026-09-230.1.1 · Clarify derivation range bounds and zero or omitted birth-time semantics for descriptors and policies. — Clarify receive-only descriptor sets and add a corresponding test vector.
  • 2026-09-210.1.0 · Initial publication.
From the BIP’s own Changelog section.
0:000:00