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

Sep 1 - Nov 21, 2026

  • Multi-party digital custody arrangements such as 2-of-3 multisig, MuSig2 Taproot aggregates, and time-locked vaults present significant challenges in ensuring both security and decentralization.

While these technologies aim to distribute control and reduce single points of failure, the coordination of transaction signing—especially with PSBTs (Partially Signed Bitcoin Transactions)—is often routed through a central coordinator, typically operated by the wallet vendor. This centralization can inadvertently reintroduce risks associated with observation, censorship, or service disruption.

Recent advancements suggest that using decentralized message relays, notably those based on Nostr, could alleviate centralization concerns. Platforms like Joinstr, Munstr, Smart Vaults, and Nunchuk have started integrating Nostr relays to handle transaction traffic, seeking to distribute the communication layer among independent parties. A working note published in August delves into orchestrating PSBT and MuSig2 sessions over a mesh of Nostr relays, employing cryptographic protocols defined in BIP-174 and BIP-327 alongside remote signer methodologies from NIP-46 and BSMS (BIP-129). In this architecture, no relay is granted access to sensitive key material or transaction details, significantly mitigating surveillance threats. The primary vulnerability remaining in this model is the potential for denial of service by adversarial relays. For further examination, refer to PSBT Coordination over Nostr Relays and Vault Construction and Coordination Transport, where additional technical details and verifiable digests are provided.

Despite these improvements, several open challenges persist. Chief among them is ensuring nonce safety in adversarial and unreliable delivery environments. Decentralized relay networks introduce inherent complications such as duplicate messages, retries, and out-of-order delivery, all of which threaten the uniqueness and security of nonces used in signature schemes. The robustness of client-side sequencing controls, the construction of garbage-resistant but uncensorable transport layers, and the feasibility of cryptographic proofs of misbehavior without global oversight are pressing research questions. Addressing these issues is essential for building reliable and secure decentralized custody solutions.

From an end-user perspective, reliability hinges on transparent failure handling and recovery capabilities within wallet applications. Users must be informed whether a wallet can autonomously recover from relay outages or message duplications, or if manual intervention is required to restore session integrity. Clear status updates and recovery instructions are necessary, especially when managing significant funds, as trust in the technology depends on understanding its safeguards and remediation protocols.

The design of distributed relay systems accommodates failover scenarios by broadcasting each message to multiple relays and maintaining session continuity as long as one path remains viable. Connection failures are managed through local session state tracking and timeout strategies rather than explicit detection of individual relay failures. Message duplication is countered by strict controls within the signing process: security nonces (secnonces) are consumed exactly once, and duplicate message attempts are rejected to prevent signature reuse, which would compromise private keys. Session identifiers and sequencing parameters ensure that repeated or outdated messages are detected and discarded, while conflicting values lead to session abortion. Resilience mechanisms allow automatic recovery from interruptions, with explicit procedures for restarting sessions when necessary. This approach upholds the system’s security and provides users with actionable feedback, such as prompts to reconnect, wait on peers, or address expired sessions.

Operational clarity regarding session states is crucial for user experience. During certain phases—such as reconnecting or awaiting peer responses—users need guidance on whether it is safe to close and reopen their wallet application. If closure occurs before the Sign operation, no irreversible session changes are made, and recovery involves simply initiating a new session. However, after a partial signature has been produced, the secnonce is spent, and loss of this data renders the session irrecoverable, necessitating a complete restart. Persisting session state across devices or restoring from backups introduces risks of replaying consumed nonces, which threatens key security. Therefore, strong warnings are recommended during active signing sessions, particularly when exporting, syncing, or closing wallets to prevent inadvertent exposure.

Effective protection extends beyond user prompts. Binding session identity to a device-local key ensures that session data transferred to another device cannot be used for session hijacking. Warnings remain effective only when users have direct control and visibility, such as during application operations. However, foundational security must be implemented at the protocol level to prevent catastrophic breaches arising from session state replication or restoration on unauthorized devices.

In the development of protocols for secure PSBT routing and cosigner setup, invariants such as unique session-bound identities, monotonic per-session sequencing, and consume-once nonce states are essential. Applying random identifiers derived from hashed combinations of channel, sender key, type, and round enhances message idempotence and prevents replay attacks. The decision to derive the round value

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