Changelog

The release’s own pull request writes its section here, from the squash subjects since the previous tag; a pull request adds no entry (CONTRIBUTING.md’s Pull requests, section 9 of the organization standard). RELEASE_NOTES.md has the release notes, which say what a user has to act on; this file is the record behind them.

v2026.11.17

A descriptor’s spending paths

Descriptor.spending_paths and Miniscript.spending_paths list the ways a script can be spent, each a SpendingPath of Quorum keys, lock times, hash locks and tr() leaf (closes #356).

spending_paths is bounded on what a call reads

On the pairs a conjunction reads (closes #365), on the whole call, a tr()’s leaves together (closes #367) (closes #374), and, in a test, on a disjunction’s quorum hashes on every interpreter (closes #370).

spending_paths merges and prunes as its docstring says

Merging tries each one-of quorum of the same hash (closes #366), and the path bound can refuse a thresh() that mixes lock times (closes #364).

A policy compiler

descriptors.compiler.compile_policy ports sipa/miniscript’s policy compiler, its search bounded on nesting, depth and steps (closes #357) (closes #372).

Refusals print no refused value

A refusal the package writes prints no key, xkey, script, prefix, version, fingerprint, miniscript or caught text, and an int by its bits; tests/refusal_census_test.py holds the rule (issue #390).

A key’s refusal names the length the caller gave

A public key refused for its prefix by its size (closes #342), and a tapscript pk_h() key key_hashes supplies by its length (closes #385).

A pickle is checked as its build checks it

pickle.loads runs the build’s checks, and a KeyExpression refuses an origin of another type (closes #363).

BIP32KeyOrigin holds its path as a tuple

So the hash of a spending path holding it cannot go stale (closes #378).

More is refused when built

A RawLeaf with an empty script, a RawNode not of 32 bytes (closes #331), and an AddrDescriptor of an address parse refuses (closes #332).

Bytes are read by what they hold

A bytes subclass is read by its bytes, not by its truth or its len(): in infer_descriptor’s provider, rawpkh() and raw() (closes #339) (closes #346), and as a public key (closes #345).

sh() wraps a raw() holding multi() fields as the raw()

A class deriving from RawDescriptor before MultiDescriptor is no longer refused for the size of the multi() script it does not write (closes #337).

BIP 379’s limits

Tests only: each limit vector at its bound (closes #376).

Two parities of one x coordinate

Tests only: Bitcoin Core’s cases, in a tapscript and in P2WSH, and the whole refusal of an index on a descriptor not ranged (closes #396).

Workflows

The suite runs on every push to main, each push run in a concurrency group of its own (issue btclib-org/.github#2277). The merge is explicit and auto-merge is off (issue btclib-org/.github#2272).

Mutation testing

The descriptors profile has a shard for the policy compiler.

The standard’s copies

CONTRIBUTING.md, REVIEWING.md, RELEASING.md, AGENTS.md, README.md and REPOSITORY.md take the standard’s text, RELEASING.md’s release-hold step included.

SECURITY.md

A flaw that lets funds be stolen, lost or locked belongs here.

The bestpractices.dev answers

They follow each criterion’s text, and count published advisories and the issues of the kinds SECURITY.md names (issue btclib-org/.github#2318).

v2026.11.14

A hand-built raw() refuses an empty script

RawDescriptor(b"") is refused with parse’s message, and sh() and wsh() refuse an unpickled one (closes #282).

tr() and rawtr() refuse more unpickled musig() participants and fields

A participant that is x-only, uncompressed, a musig() or no KeyExpression (closes #300), and a field of the musig()’s own (closes #321).

tr() refuses an unpickled multi_a() leaf of a k or n parse refuses

Its k and its number of keys are refused where parse refuses them (closes #313).

A bare miniscript refuses a multisig of no key beside an uncompressed key

Unpickled, and a forged node above a multisig of too many keys there (closes #302) (closes #305).

A number parse cannot read in a miniscript older, after, thresh or multisig

Is refused, built or unpickled, a MultiA’s k included. Another node refuses one past ten digits unquoted, and no refusal quotes a number of the size of a private key (issue #313).

Mutation testing

The descriptors profile is split into shards that partition its mutants (issue #50).

The bestpractices.dev answers

They cite v2026.11.13 (issue #304), and they and REPOSITORY.md record the maintainer’s bypass on main-self-merge (issue btclib-org/.github#2212).

AGENTS.md and CONTRIBUTING.md

AGENTS.md points at REVIEWING.md under Code Review Rules (issue btclib-org/.github#2009), and CONTRIBUTING.md prescribes no checkout layout (issue btclib-org/.github#2263).

prettier

It leaves .pre-commit-config.yaml to pre-commit.ci (issue btclib-org/.github#2038).

The lock

soupsieve moves, past the advisory uv audit reported (closes #315).

v2026.11.13

BIP32KeyData reads a key’s scalar and point; point_from_xkey is new

from_seed and derive answer one, q, sec, point_var and xpub read it, and point_from_xkey takes either half (closes #297) (closes #298).

Miniscript refuses subexpressions that are no tuple

With a BTClibTypeError naming the type, when built and on an unpickled node (closes #287).

parse names a multi_a() of over 999 keys for its count first

As Bitcoin Core does, whatever the threshold; a hand-built MultiA does too (closes #220).

tr() and wsh() refuse an unpickled node of another shape

Of a fragment the library does not define (closes #285), a multisig of the other context (closes #243) or a wrong number of subexpressions (closes #275).

tr() and wsh() refuse an unpickled node of forged type or bounds

Its type, bounds, threshold and lock time are its build’s own (closes #286) (closes #284).

Sourcery runs with every rule on but dont-import-test-modules

The code takes its rewrites, which keep behaviour, and sourcery.yml takes the shared concurrency comment (issue btclib-org/.github#2162) (issue btclib-org/.github#2190).

The bestpractices.dev answers

osps_qa_07_01 cites main-self-merge by id, and RELEASING.md records a save nobody can make as owed (issue btclib-org/.github#2205) (issue btclib-org/.github#2214).

The calls into btclib-org/.github are pinned to v2026.11.12

(#310).

The lock

The GitHub Actions move (#310), and so does coverage (#311).

v2026.11.12

from_script reads a key that is no point, as Core’s signer does

A script holding such a key is read, and a descriptor built from it still refuses the key (closes #292).

from_script refuses a multi() key count outside 1 to 20 first

The count is refused before a key is read (closes #215).

A hand-built taproot value refuses an uncompressed key

tr(), rawtr(), multi_a() and a tapscript node refuse it when built (closes #221).

A hand-built multi() refuses keys no position takes

More than three keys, at least one of them uncompressed, over the 520-byte push limit, are refused when built (closes #251).

sh() and wsh() refuse an unpickled argument’s keys and fields

Each is checked as parse checks it (closes #233) (closes #238) (closes #239) (closes #248) (closes #257) (closes #264) (closes #271) (closes #272) (closes #276) (closes #281).

sh() and wsh() refuse an unpickled argument parse does not read

The argument of a wsh() argument and a miniscript are checked too (closes #242) (closes #259) (closes #261) (closes #267) (closes #269).

tr() and wsh() refuse a miniscript node parse would not build

Its fragment, keys and number of keys are checked, unpickled too (closes #235) (closes #246) (closes #249) (closes #250) (closes #260).

A bare multi() and a top-level miniscript say they do not parse back

Their docstrings and tests pin that the refusal is parse’s alone (closes #226) (closes #253).

Core’s vectors

Core’s tr(musig(...)/<0;1>/*,sortedmulti_a(...)) scripts are recorded and tested (closes #198).

Tests

assert_secret_free finds a secret that repr escapes (issue btclib-org/.github#1803) (issue btclib-org/.github#1950).

The bestpractices.dev answers

The tree holds them, and they are corrected (issue btclib-org/.github#2153) (issue btclib-org/.github#2159).

RELEASING.md and CONTRIBUTING.md take the shared text again

(issue btclib-org/.github#2097) (issue btclib-org/.github#2098) (issue btclib-org/.github#2107) (issue btclib-org/.github#2108) (issue btclib-org/.github#2109) (issue btclib-org/.github#2145).

The lock

The pre-commit hook revisions move (#202), and so do bitcoin-core-rpc and uv-build (#210).

v2026.11.11

ecc 2026.11.8, btclib 2026.11.10 and base58-bech32

ecc’s schemes come from its top level, bms from btclib’s, and the Base58Check codec from base58-bech32, a new dependency (closes #108) (closes #139) (closes #140) (closes #156).

crack_prv_key

crack_prv_key_var is renamed crack_prv_key, with no alias (closes #63).

A hand-built key expression refuses what parse refuses

A KeyExpression built by hand refuses a key, a hardening, a musig() or a path that parse would not build (closes #171) (closes #178) (closes #179) (closes #181) (closes #182) (closes #183).

A hand-built sh(), wsh() or tr() refuses what parse refuses there

Built by hand, they refuse a field, a function, a key or a size that parse refuses there (closes #46) (closes #158) (closes #174) (closes #175) (closes #194).

A hand-built fragment refuses a field or a key parse refuses

wpkh(), multi(), rawpkh() and the other fragments refuse when built a field of the wrong type and a key parse refuses there (closes #103) (closes #150) (closes #159) (closes #161) (closes #200).

A hand-built miniscript refuses what parse refuses

A Miniscript built by hand refuses a field of the wrong type, a key that is no KeyExpression and a script that is not sane (closes #85) (closes #119) (closes #141) (closes #153) (closes #170).

A hand-built miniscript keeps one context

A node refuses a subexpression of another context, a tr() leaf one that is not tapscript, and neither quotes an unknown fragment or context (closes #111) (closes #120) (closes #130).

satisfy() refuses a sh() or wsh() over the size limit

A hand-built sh() or wsh() whose script is over the size limit has no spend (closes #47).

unused() and preimage()

parse reads unused(KEY) at the top level (closes #134) and a hash fragment’s preimage(HEX) (closes #11).

private_string writes the WIFs back

private_string writes back what parse files in prv_keys, preimages and wifs (closes #137) (closes #148), and finds a WIF under either hex spelling of its key (closes #147).

An odd-y WIF’s x-only key is its even-y key

An x-only key read from an odd-y WIF is held as its even-y key (closes #177) (closes #192).

A miniscript is typed once it is read, as Core does

An ill-typed fragment is refused once the expression is read, so a later fault is named first (closes #16).

Text not ending in ) is miniscript in wsh() and in a tr() leaf

Whatever function name it starts with, such text is read as miniscript and gets Core’s fallback (closes #15) (closes #19).

c:pk_k and c:pk_h read as pk() and pkh()

wsh(c:pk_k(K)) and wsh(c:pk_h(K)) read as pk() and pkh(), and a tr() leaf c:pk_k(K) as the key (issue #174) (issue #194).

A multipath key’s paths share one symbol, as Core writes them

Each path of a multipath key is written in the hardening symbol Core keeps for the key (closes #72).

multi() and multi_a() refuse in Core’s order

A multi() refuses its threshold before its keys, and more than 20 keys before its threshold; a multi_a() its threshold before its keys (closes #17) (closes #102) (closes #107).

Refusals name Core’s fault

For a bracket after a multisig key, an expression no function takes and a miniscript of the wrong type, refusals name Core’s fault (closes #14) (closes #53) (closes #118) (closes #128).

Refusals name a key by its position

A refused key is named by its position, a short unknown function is quoted, and an unknown context is not (closes #18) (closes #133).

Mutation testing

The mutation profiles’ last survivors are killed or named (closes #41), and the bip32 session has 80 minutes (issue #50).

Core’s and BIP394’s vectors

Core’s miniscript and descriptor vectors are pinned to their tip and cited at the v32.1 pin (closes #22) (closes #62) (issue #51); BIP394’s rawtr() vectors are tested (closes #12).

Tests

Tests only: raw()’s refusal of whitespace, two hardened children of one xprv as Core derives them (closes #8) (closes #98), and compare_descriptors.py reads only a row’s descriptor (closes #97).

CI

Every call into btclib-org/.github moves to v2026.11.11, release.yml’s among them, and claude-implement.yml calls one, off until the organization enables it (issue btclib-org/.github#1999).

Coverage and the docs

The coverage floor measures .github/scripts (closes #89) (closes #126), and the docs read the ecc and btclib inventories uv.lock pins (closes #160).

CONTRIBUTING.md and the README

Both follow btclib-org/.github: the shared part, absolute links, the badges last (issue btclib-org/.github#2088) (issue btclib-org/.github#1851) (issue btclib-org/.github#1856).

The standard’s citation

The tree names the organization’s standard as its section 11 asks, and the shared files cite it as btclib-org/.github does (issue btclib-org/.github#2137).

The prose

CONTRIBUTING.md says a signature takes check_validity keyword-only (closes #114); the prose says only what holds in the mutation profiles and the base58 cache (closes #23) (closes #42).

v2026.11.7

BIP32 derives through ecc

bip32 derives through ecc and imports no bindings; ecc’s floor is 2026.11.6, and the secp256k1 extra names ecc[secp256k1] (closes #21).

str() keeps the key path’s hardened marker, as Core does

A hardened step of the key path decides the marker before the wildcard’s, so str() writes Core’s string and checksum (closes #9).

Tests

Tests only: satisfy, an andor’s op count, a tap tree’s depth, checksum tails, from_script’s refusals and a run-time tapscript context (closes #36) (closes #37) (closes #38) (closes #39) (closes #40).

Sourcery

Sourcery runs on every pull request, and its findings in src are cleared (issue btclib-org/.github#2005).

CI and the lock

Every call into btclib-org/.github moves to v2026.11.5, release.yml’s among them (issue btclib-org/.github#2005); setup-uv moves (#83); btclib is locked at 2026.11.2 (closes #5).

The metadata and the prose

The homepage is https://btclib.org/bip32-descriptors/ (closes #48); the files shared with btclib-org/.github follow it, and comments name the functional-tests and ecc repositories (closes #25) (closes #61).

v2026.11.4

infer_descriptor answers what parse reads back

Where parse does not read what infer_descriptor infers back to the script, infer_descriptor answers the addr() of the output, or its raw() where the output has no address (closes #44).

A tree’s twins are written out up to 1024 leaves

infer_descriptor writes out a repeated subtree of a tr() only where the tree then holds at most 1024 leaves, and past that answers each twin as the rawnode() of its hash (closes #45).

bip32.py’s refusal messages are tested whole

Tests only: refusal messages are compared whole, and boundaries no test reached are tested (closes #33) (closes #32) (closes #34) (closes #35).

CI

os-macos.yml and pypi-install.yml run macOS on arm64 alone (issue btclib-org/.github#1982). The actions group’s pins move, release.yml’s among them (#1), and so do the pre-commit hook revisions (#65).

The prose

The shared part of CONTRIBUTING.md follows btclib-org/.github (#58), and RELEASING.md names the lint jobs a release run skips (issue btclib-org/.github#1989).

v2026.11.2

rawnode, rawleaf, rawpkh and nested raw, and a tr() inference

parse reads rawnode(), rawleaf(), rawpkh(), and raw() in sh() and wsh(); infer_descriptor uses them for a tr() it reads in part; raw() refuses an empty or whitespace HEX (closes #7) (closes #6).

A deeply nested tr() leaf infers as its miniscript, on any interpreter

infer_descriptor walks a leaf without recursion, so the interpreter’s stack no longer decides what it answers (closes #54).

A tr() tree is read leaf by leaf, as Core’s tr() loop does

A fault inside a leaf gets Core’s answer instead of unbalanced braces (closes #13) (issue #19).

Core’s miniscript fallback beyond timelocks and multisig context

Wrappers, numbers, hashes, unbalanced brackets and trailing text get the refusal Core falls back to (closes #10).

A key spelled twice in a fragment takes v32.1’s origin

Descriptor.provider gives Bitcoin Core v32.1’s origin, and _taproot_derivations says why the updater keeps the first (closes #20).

The prose

integration-bitcoind.yml says regtest is a required check (closes #24); the README and ARCHITECTURE.md stop calling btclib-wallet a library above this one (closes #26).

v2026.10.31

The repository opens with btclib-wallet’s bip32 and descriptors

btclib-wallet’s bip32 and descriptors at b8b5c9b, with their tests, renamed to bip32_descriptors, around base58-bech32’s repository files; the integration workflow pins bitcoind 32.1 (issue btclib-org/.github#1811).

The prose describes this package

The review bot’s prompt, AUTHORS.md and a pypi-install comment describe this package, not base58-bech32; comments naming btclib-wallet’s modules say they are btclib-wallet’s (issue btclib-org/.github#1811).

The README shows the OpenSSF badges

The Best Practices and Baseline badges of bestpractices.dev project 16116, which RELEASING.md also reads at release.