Fix the known instance of #295

This commit is contained in:
Luke Parker
2023-07-13 13:53:41 -04:00
parent 6a4bccba74
commit c9bb284570
3 changed files with 6 additions and 7 deletions

View File

@@ -516,6 +516,8 @@ impl<C: Curve, A: Algorithm<C>> SignatureMachine<A::Signature> for AlgorithmSign
}
// If everyone has a valid share, and there were enough participants, this should've worked
panic!("everyone had a valid share yet the signature was still invalid");
// The only known way to cause this, for valid parameters/algorithms, is to deserialize a
// semantically invalid FrostKeys
Err(FrostError::InternalError("everyone had a valid share yet the signature was still invalid"))
}
}