Skip to content

Conversation

Sjors
Copy link
Member

@Sjors Sjors commented Jul 21, 2025

Recent versions of the Ledger app changed the sign_psbt to return a SignPsbtYieldedObject instead of bytes, bytes.

For our purposes this yielded object is just a PartialSignature, but once we're ready to add MuSig2 support it can also yield MusigPubNonce (round 1) and MusigPartialSignature (round 2).

@Sjors
Copy link
Member Author

Sjors commented Jul 21, 2025

I manually tested this change with a LedgerS and a simple single signature wallet.

@Sjors Sjors mentioned this pull request Jul 21, 2025
@Sjors
Copy link
Member Author

Sjors commented Jul 21, 2025

cc @bigspider

@Sjors Sjors force-pushed the 2025/07/ledger-partial-sig branch from 75febff to a4e74ce Compare July 21, 2025 20:14
@Sjors Sjors mentioned this pull request Jul 21, 2025
1 task
@Sjors Sjors force-pushed the 2025/07/ledger-partial-sig branch 2 times, most recently from 482dbd3 to 85cbdac Compare July 30, 2025 15:59
@Sjors
Copy link
Member Author

Sjors commented Jul 30, 2025

I forgot to change the returned objects in client_legacy.py.

@Sjors Sjors force-pushed the 2025/07/ledger-partial-sig branch from 85cbdac to ee4f903 Compare July 30, 2025 19:00
@Sjors
Copy link
Member Author

Sjors commented Jul 31, 2025

The remaining CI failures look spurious to me, just one of the trillion submodules in Coldcard fails to clone.

Taken from LedgerHQ/app-bitcoin-new at 2.4.1
@Sjors Sjors force-pushed the 2025/07/ledger-partial-sig branch from ee4f903 to e9be7c2 Compare September 4, 2025 06:30
@Sjors
Copy link
Member Author

Sjors commented Sep 4, 2025

Rebased after #795 landed.

@Sjors Sjors changed the title ledger: have sign_psbt return SignPsbtYieldedObject ledger: handle script path (use SignPsbtYieldedObject) Sep 5, 2025
@Sjors
Copy link
Member Author

Sjors commented Sep 5, 2025

Using SignPsbtYieldedObject also makes it trivial to handle script path signatures, so I added a commit for that. I only tested this as part of #794.

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.

1 participant