Skip to content
BTC— ETH— SOL— ETH gas— Hashrate— Block— mempool.space · CoinGecko

Bitcoin Core descriptors: read, inspect and back them up

Understand what a Core descriptor contains, what public exports expose and why one copied string may leave out signing keys, change branches or wallet metadata.

Engraved wallet configuration folio with branching paths and linked ledger blocks, with a separate signing key on a cobalt background
Contents

    A Bitcoin Core output descriptor describes the scripts a wallet should recognize, including the relevant keys and derivation paths. It can describe a single output or a family of outputs. Start with a local, default-public listdescriptors inspection; don’t export private keys just to understand the format, and don’t replace your full wallet backup with one copied descriptor.

    I’d separate three questions before moving anything: what outputs does this describe, does it contain signing secrets, and what additional wallet information will recovery need? A string that answers the first question doesn’t necessarily answer the other two.

    Distinguish the descriptor from the wallet file

    Core’s output-descriptor language describes collections of output scripts. A script sets the conditions for spending a Bitcoin output. Descriptors make those conditions explicit instead of leaving another application to guess the address type or derivation path from a key alone.

    A descriptor wallet stores and uses these descriptions internally. The descriptor text is not the same object as the wallet’s database file. A full wallet also has state and metadata: for example, Core’s backup guidance distinguishes keys and scripts from labels. A copied public descriptor doesn’t preserve those private annotations or give another program your signing keys.

    Keep the ordinary wallet backup. Use descriptor exports for a defined purpose, such as setting up a compatible watch-only wallet or preserving the configuration of a multisig arrangement. Don’t treat the presence of the word “descriptor” as proof that two files contain equivalent recovery information.

    Read the parts before changing them

    The outer expression identifies the script construction. In Core’s notation, wpkh(KEY) describes native SegWit public-key-hash outputs, sh(wpkh(KEY)) wraps that construction in a script hash, and tr(KEY) describes a Taproot output with the specified internal key. These are notation examples: KEY stands for actual key information, not text to import.

    For an extended-key descriptor, work from the outside inward:

    • Script expression: the function and nesting determine the output construction. Changing the wrapper can change the addresses even if the key stays the same.
    • Origin in square brackets: the fingerprint and origin path identify where the following key came from. The origin helps a signer locate its key; it doesn’t derive a missing private key.
    • Key and following path: an extended public key can have a derivation suffix. The path after that key is different from the historical origin inside brackets.
    • Wildcard: a final /* represents children over a chosen range. It doesn’t mean that a wallet has already scanned every possible index.
    • Checksum after #: the eight-character suffix helps catch copying or typing errors. It doesn’t authenticate who supplied the descriptor.

    The key-origin explanation shows why the bracketed origin and derivation suffix must stay separate. An account-level public key can describe public child derivations after its hardened account path; moving a hardened step after that public key can make derivation impossible without private material. Preserve the original expression rather than “simplifying” its path by eye.

    Multisig adds more configuration. multi preserves the specified key order; sortedmulti sorts the derived public keys. The multisig rules explain that difference. Keep the threshold, all participating public keys, their paths and the script wrapper. Having enough private signers is not a substitute for knowing the complete script they must sign.

    Check whether it contains private material

    Descriptors can contain public keys, extended public keys, WIF private keys or extended private keys. Core’s private-key examples show that a descriptor may mix public and private material. An xprv is a signing secret, not a more detailed version of an xpub that is safe to share.

    A public descriptor can let another program derive and monitor the outputs it describes without supplying the corresponding private signing keys. That is useful for watch-only coordination, but it exposes financial information. Keep public descriptors out of public screenshots and support posts too: their keys and paths can link related addresses and payments.

    Private material in a descriptor doesn’t guarantee that every spending condition can be satisfied. A multisig descriptor might contain only one participant’s private key; another policy may require additional keys or conditions. Check the whole construction and signer arrangement before calling an export a complete recovery backup.

    Inspect the intended wallet locally

    Use the node and wallet you actually intend to inspect. If you need to establish the local Core connection first, follow the Bitcoin node setup instructions. Keep RPC access private, and read a command’s help before entering it. Core’s console warning is especially relevant when someone asks you to export wallet information.

    Bitcoin Core console warns that scammers can steal wallet contents by persuading users to run commands they do not understand
    Read the command and its parameters before entering it. Select Enlarge image to read the details.

    These read-only command examples use my-wallet as a local wallet-name placeholder. Replace it with your own name; the -rpcwallet option selects the wallet for wallet-specific calls:

    bitcoin-cli -rpcwallet="my-wallet" getwalletinfo
    bitcoin-cli -rpcwallet="my-wallet" listdescriptors
    bitcoin-cli help getdescriptorinfo

    getwalletinfo identifies the wallet and its descriptor and private-key settings. Then listdescriptors returns its descriptors with private export disabled by default. Keep that output local. The optional private-export parameter changes the exposure: requesting private descriptors requires an unlocked encrypted wallet, and a watch-only wallet cannot export private keys it doesn’t have.

    Read the descriptor objects as well as their strings. timestamp records the descriptor’s creation time; it isn’t a scan-completion marker. active says whether a descriptor is used to generate new addresses. For active descriptors, internal distinguishes change from receiving. A ranged descriptor can have inclusive range endpoints and a next_index for the next address; the older next field is retained for compatibility. None of those fields is a balance or proof that historical scanning completed.

    Use analysis and address derivation for the right checks

    getdescriptorinfo analyzes a supplied descriptor, reports whether it is ranged or solvable, and identifies whether its input contains private keys. Run it locally with information you already control. Don’t send private input to an online descriptor decoder merely because the result can omit private keys.

    For a harmless syntax example, the following uses a public key published in Core’s descriptor documentation. It analyzes the expression; it isn’t a wallet-creation or payment instruction:

    bitcoin-cli getdescriptorinfo "wpkh(0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)"

    Keep the returned fields distinct. hasprivatekeys describes the input, while the returned descriptor omits private keys. The separate checksum field belongs to the original input. If the returned descriptor differs, preserve its complete returned string rather than attaching the input’s checksum to different text. A successful analysis doesn’t establish that a key belongs to you, that the wallet has funds or that you can sign a spend.

    Multipath input needs another check. An expression such as /<0;1>/* can describe separate receiving and change branches. In Core 32.1’s analysis result, descriptor contains only the first expansion; multipath_expansion contains all expansions when the input uses multipath elements. Don’t keep only the first returned descriptor and accidentally discard the other branch.

    deriveaddresses derives addresses from a descriptor and an appropriate range. It requires a checksum, and a ranged input needs a range. Compare the intended branch and index with a known address from the original wallet or signer. Deriving matching addresses is a useful configuration check; it doesn’t import the descriptor into a wallet, scan history or prove control of private keys. Current multipath output groups addresses by expansion, so don’t read every returned list as one receiving chain.

    Preserve configuration and wallet state together

    I’d keep the full wallet backup as the starting recovery copy, then preserve descriptor material according to its purpose and sensitivity. For multisig or another external signer arrangement, retain the complete original public configuration and the required signer backups. A public configuration export cannot recover lost private signing keys, and a partial private export may still be insufficient.

    Keep the descriptor strings and checksums intact, including every relevant receiving and change branch. Preserve the surrounding export information: network, wallet origin, creation or scan timestamps, ranges and next-index state where supplied. Labels need their own preservation through the wallet backup; they aren’t encoded by a bare output descriptor.

    When a descriptor is imported, the import settings determine its scan timestamp, range and active or internal role. Choosing timestamp: "now" for old funds can skip the history you need. Import also changes the wallet and calls for a new backup. Establish those settings before following an import procedure; analysis and address derivation do not perform that work.

    Descriptor support also has a scope. The destination must support the particular script construction and export format, not merely advertise “descriptor support.” Hardware-wallet policy formats can separate a template from its keys, as BIP 388 explains; don’t mistake a template with missing key information for a complete Core descriptor.

    Once you’ve identified the complete configuration and what it exposes, choose the next task: restore an intact wallet file, prepare a compatible import, or investigate missing history. I wouldn’t change the descriptor’s script or paths to chase a balance. Keep those recovery tasks separate through the Bitcoin nodes and wallets hub, with the original backup preserved.

    All about Bitcoin nodes