Skip to content

[PoC] Add processing of MuSig2 fields#127

Draft
bigspider wants to merge 1 commit into
wizardsardine:masterfrom
bigspider:update-ledgerlib
Draft

[PoC] Add processing of MuSig2 fields#127
bigspider wants to merge 1 commit into
wizardsardine:masterfrom
bigspider:update-ledgerlib

Conversation

@bigspider
Copy link
Copy Markdown
Contributor

This is a (Claude-assisted) PR to add support for signing transaction

Current caveats:

  • Still not tested, so it is a proof-of-concept
  • rust-bitcoin didn't implement MuSig2 fields in the psbt module, so this implementation writes directly in the unknown map. It should still be compliant with BIP174 and BIP-373.

@bigspider bigspider changed the title [PoC] Update ledger library to 0.6.0, add processing of MuSig2 fields [PoC] Update ledger library and add processing of MuSig2 fields Apr 27, 2026
@Sjors
Copy link
Copy Markdown
Contributor

Sjors commented Apr 27, 2026

Happy to test this, but I would prefer it to be based on a rust-bitcoin PR, or at least a branch.

@Sjors
Copy link
Copy Markdown
Contributor

Sjors commented Apr 27, 2026

I would also suggest splitting the ledger_bitcoin_client update into its own PR.

@bigspider
Copy link
Copy Markdown
Contributor Author

Working here for rust-bitcoin: rust-bitcoin/rust-bitcoin#6087

@Sjors
Copy link
Copy Markdown
Contributor

Sjors commented Apr 27, 2026

I tested the library bump in f7c06cf as part of Sjors#1 against both the Speculos simulator and a physical Ledger Nano X.

@bigspider
Copy link
Copy Markdown
Contributor Author

I would also suggest splitting the ledger_bitcoin_client update into its own PR.

#129

@Sjors Sjors mentioned this pull request Apr 28, 2026
rust-bitcoin's psbt module does not yet implement suport for
PSBT_IN_MUSIG2_PUB_NONCE and PSBT_IN_MUSIG2_PARTIAL_SIG.

This commit adds them to the PSBT using the raw 'unknown' map.
It should be reverted once proper support is added upstream.
@bigspider bigspider changed the title [PoC] Update ledger library and add processing of MuSig2 fields [PoC] Add processing of MuSig2 fields Apr 28, 2026
@bigspider
Copy link
Copy Markdown
Contributor Author

I dropped the first commit (already merged with #129).
I'll try to make a better PoC on top of rust-bitcoin/rust-bitcoin#6087, but not today

@bigspider
Copy link
Copy Markdown
Contributor Author

The psbt module in rust-psbt is being moved to a separate crate, so the new PR is here: https://git.rust-bitcoin.org/rust-bitcoin/rust-psbt/pulls/118

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