Skip to content

build(wasm-utxo): add support for sBTC address types#272

Merged
OttoAllmendinger merged 4 commits intomasterfrom
BTC-3357.bump-rust-miniscript-for-sbtc
Apr 30, 2026
Merged

build(wasm-utxo): add support for sBTC address types#272
OttoAllmendinger merged 4 commits intomasterfrom
BTC-3357.bump-rust-miniscript-for-sbtc

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Add comprehensive test suite for sBTC protocol's two-leaf taproot
tree with deposit (payload_drop) and reclaim (r:older with multi_a)
leaves. Tests verify structure parsing, P2TR output generation, and
address derivation with proper use of drop mode.

Issue: BTC-3357

@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review April 29, 2026 15:07
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner April 29, 2026 15:08
OttoAllmendinger and others added 4 commits April 30, 2026 15:57
Update miniscript dependency from 13.0.0-bitgo.2 to
13.0.0-bitgo.3 to include latest fixes.

Issue: BTC-3357

Co-authored-by: llm-git <llm-git@ttll.de>
Add ExtParamsConfig struct to enable fine-grained control over
miniscript analysis checks when parsing descriptors. This allows
callers to selectively enable non-standard behaviors like drop
operations, timelock mixing, or malleability.

The configuration uses camelCase field names for JavaScript
compatibility and defaults all flags to false for sane behavior.

Issue: BTC-3357

Co-authored-by: llm-git <llm-git@ttll.de>
Add complete test suite for sBTC protocol's two-leaf taproot tree
with deposit (payload_drop) and reclaim (r:older with multi_a)
leaves. Verify structure parsing, P2TR output generation, and
address derivation. Tests demonstrate proper use of fromStringExt
with `drop: true` to enable r:older() in taproot context.

Issue: BTC-3357

Co-authored-by: llm-git <llm-git@ttll.de>
…mode

Update rust-miniscript dependency from bitgo.3 to bitgo.5. Change all
descriptor parsing to use `ExtParams::sane().drop()` by default,
allowing r: wrappers while maintaining other safety checks.

The `fromStringExt` method now always enables drop mode, with other
flags remaining opt-in for taproot leaf validation.

Issue: BTC-3357

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger merged commit 25fba86 into master Apr 30, 2026
16 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-3357.bump-rust-miniscript-for-sbtc branch April 30, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants