Skip to content

Commit

Permalink
STR-782: add a warning about partial MuSig2 verification (#558)
Browse files Browse the repository at this point in the history
Add a warning about partial MuSig2 verification
  • Loading branch information
AaronFeickert authored Dec 27, 2024
1 parent 4b4589d commit b7e746c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/bridge-sig-manager/src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ pub fn sign_state_partial(
}

/// Verify that a partial MuSig2 signature is correct.
///
/// # Warning
///
/// It is possible for an adversary to forge a partial signature under certain conditions.
/// You _must not_ rely on this verification to imply that a partial signature is unforgeable.
///
/// See the footnote in section 4.2 of <https://eprint.iacr.org/archive/2020/1261/20231020:081535> or
/// <https://gist.github.com/AdamISZ/ca974ed67889cedc738c4a1f65ff620b> for details.
///
/// It is _only_ safe to assume that:
///
/// - failed verification of _any_ partial signature represents a fault, and the signing session
/// should be aborted
/// - successful verification of _all_ partial signatures for a signing session will result in a
/// successful signing session
pub fn verify_partial_sig(
tx_state: &BridgeTxState,
signature_info: &OperatorPartialSig,
Expand Down

0 comments on commit b7e746c

Please sign in to comment.