3.6.9 Add several tests to the FROST library

Offset signing is now tested. Multi-nonce algorithms are now tested.
Multi-generator nonce algorithms are now tested. More fault cases are now tested
as well.
This commit is contained in:
Luke Parker
2023-03-01 08:02:45 -05:00
parent c6284b85a4
commit 2fd5cd8161
5 changed files with 336 additions and 47 deletions

View File

@@ -365,6 +365,7 @@ impl<C: Ciphersuite> ThresholdKeys<C> {
/// Offset the keys by a given scalar to allow for account and privacy schemes.
/// This offset is ephemeral and will not be included when these keys are serialized.
/// Keys offset multiple times will form a new offset of their sum.
#[must_use]
pub fn offset(&self, offset: C::F) -> ThresholdKeys<C> {
let mut res = self.clone();
// Carry any existing offset