PSBT/MuSig2 coordination over Nostr relays: transport invariants for nonce safety under at-least-once delivery

Posted by onedigitmoney

Nov 21, 2026/17:26 UTC

In the process of specifying secure setup and Partially Signed Bitcoin Transaction (PSBT) routing protocols between remote cosigners operating over a potentially hostile relay, several key invariants are considered to ensure integrity and reliability. The approach incorporates identity binding to session, round, and signer, as well as per-session monotonic sequencing. Counters associated with each sender are maintained and verified before decryption, following guidelines similar to those outlined in section 6.5 of the referenced specification.

Message identities have transitioned from randomized values to a deterministic format—computed as the truncated hash (mid = H(channel ‖ sender key ‖ type ‖ round)) limited to 16 bytes. This hashing strategy is designed to ensure message uniqueness and facilitate robust duplicate detection. If a repeat message arrives with an identical body, it is disregarded; conversely, should a different body be detected under the same computed identity, the protocol aborts to prevent inconsistencies or replay attacks.

Currently, the third invariant—consume-once nonce state—is not directly relevant because version 0.1 of the protocol handles only PSBT payloads and does not yet implement advanced signing rounds such as MuSig2 or FROST. The derivation of the round parameter is performed based on ceremony state, rather than transmitted explicitly within the protocol messages. However, this raises questions regarding idempotence and synchronization. After network reconnections, there is potential for temporary disagreement about round state between peers, which could impact the protocol’s robustness. It remains an open question whether the round should be made into an explicit, authenticated field to mitigate these issues.

Further details and ongoing development of this specification can be found at https://github.com/KeylayBTC/msp.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback