Posted by salvatoshi
Nov 25, 2026/19:44 UTC
The psbt_session_id mechanism has undergone significant changes in the Ledger Bitcoin app to improve functionality for MuSig2-based wallet accounts. Initially, the session identifier was generated by hashing sufficient transaction-specific information to ensure practical uniqueness. This approach, implemented since version 2.4.0 of the app, inadvertently prevented pre-generation of nonces for future transactions. As a result, an important user experience feature—managing multiple sessions or preparing ahead for transactions—was lost.
With the release of version 2.6.0, the application now derives the session_id based on two primary factors: the BIP-388 wallet policy and, if available, additional entropy supplied via a proprietary global field in the PSBT called MUSIG2_SESSION_ID. The introduction of this additional entropy empowers software wallets to handle several parallel sessions for the same account, preventing collisions that would otherwise cause a new session to overwrite an existing one.
Despite these enhancements, some complexities persist in managing PSBT fields, particularly due to requirements outlined in BIP-373. For example, the PSBT_IN_MUSIG2_PUB_NONCE field involves using the aggregate MuSig2 public key as part of the PSBT key for each input. Since future transaction inputs are typically unknown and may involve UTXOs at different addresses, this poses a challenge. Nevertheless, converting the PSBT keys for public nonces from an artificial PSBT used during Round 1 to those required in the actual PSBT for Round 2 is a straightforward process, unlikely to present significant difficulties for developers implementing these features.
Thread Summary (0 replies)
Nov 25 - Nov 25, 2026
1 messages
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback