RoadmapsProjects
Sign in./start

Learn

RoadmapsProjects

Contribute

DiscoverIssues

Account

Sign in./start-building

Become an Open Source Builder. Learn. Build. Contribute.

Learn

RoadmapsProjectsStart Building

Contribute

DiscoverIssues

Account

Sign inDashboardSettings

Legal

PrivacyTerms

© 2026 Pull // all rights reserved

PrivacyTerms

lesson // bitcoin

Descriptors & Miniscript

Express wallet policies as output descriptors and compose safe scripts.

intermediate6 days

Public lesson — sign in to track progress on this roadmap.

./sign-in

On this page

Learning objectives

  • Read and write basic output descriptors
  • Explain why descriptors beat ad-hoc path assumptions
  • Use Miniscript as a policy language mindset

study // plan

Lessons are primers. Depth comes from required reading, interactive labs, reflection, and a hands-on check with evidence — the BOSS study pattern.

Research on Bitcoin Search
BIP380output descriptors

Required reading

  • bipBIP-380 Output Script Descriptors

Reflection prompts

  1. Explain Descriptors & Miniscript to a teammate without jargon — what problem does it solve?
  2. What would break in production if you misunderstood Descriptors & Miniscript?
  3. Which BIP, book chapter, or Core doc is authoritative here, and what did you verify?

Lab // Regtest check

After reading, run one hands-on check related to Descriptors & Miniscript. Prefer local regtest or Polar over mainnet.

evidence required

  • ·Command output or screenshot from your local lab
  • ·One sentence on what you observed vs expected
  • ·Link to the required reading section you used

Output descriptors are a standard way to describe what scripts/keys a wallet controls. Miniscript helps compile human policies into safe Script fragments.

Why this matters

“m/84'/0'/0'” alone is incomplete if you forget whether you meant wpkh, tr, multisig, or a custom tree. Descriptors make imports, hardware coordination, and recoveries unambiguous.

Analogy

A descriptor is a precise parts list and assembly diagram for your locks. Miniscript is a grammar that prevents you from building a lock that jams shut forever.

Descriptor examples

wpkh([fingerprint/84h/1h/0h]tpub.../0/*)
tr([fingerprint/86h/1h/0h]tpub.../0/*)
wsh(multi(2,key1,key2,key3))

Bitcoin Core RPCs like importdescriptors and listdescriptors operationalize this.

Loading diagram…

Policies compile to scripts wrapped by portable descriptors.

Backup descriptors with seeds

For Taproot script trees and multisig, seed words alone may be insufficient. Store descriptors (and multisig key records) with the same care as seeds.

Common mistakes

  • Exporting xpubs without origin info / fingerprints
  • Mixing receive and change descriptor chains
  • Assuming Miniscript supports every opcode policy you can imagine

Worked mental model

Re-read the diagrams in this lesson once out loud in plain language. If you cannot explain the flow to a friend without jargon, pause and revisit Mastering Bitcoin / Mastering Lightning chapters linked in Resources. Chapter references are intentional, not decorative.

Hands-on habit

Every protocol idea should be paired with one local experiment:

  1. Reproduce the happy path on regtest (or Polar for Lightning)
  2. Break it on purpose (wrong fee, expired invoice, offline peer)
  3. Write down what error you saw and which layer produced it (wallet, node, mempool, peer)

That habit turns reading into builder instinct.

Glossary check

Pick three terms from this lesson and define them in one sentence each without opening notes. Weak definitions mean the lesson is not finished yet.

Resource order

Use Resources in order: narrative book chapter first, then BIP/BOLT for precision, then implementation docs for commands. Jumping straight to RPC flags without the mental model creates brittle knowledge.

Next steps

Drive Bitcoin Core via RPC, the reference implementation most builders integrate with.

further reading

  • docsMiniscript
  • docsBitcoin Core descriptors

progress // sign in

Reading is public. Sign in to mark lessons complete, sync across devices, and unlock your roadmap.

./sign-in-to-track
prevWallet ArchitecturenextBitcoin Core & RPC

On this page

Press Shift + ? for keyboard shortcuts.

Press R to research on Bitcoin Search.