Move the DLEQProof to a Transcript

This commit is contained in:
Luke Parker
2022-05-23 03:24:33 -04:00
parent 0eb2386ef0
commit 5ff65bd268
3 changed files with 43 additions and 45 deletions

View File

@@ -144,10 +144,11 @@ fn sign_with_share<C: Curve, A: Algorithm<C>>(
Err(FrostError::NonEmptyParticipantZero)?;
}
// Domain separate FROST
{
let transcript = params.algorithm.transcript();
// Domain separate FROST
transcript.domain_separate(b"FROST");
// Include the offset, if one exists
if let Some(offset) = params.keys.offset {
transcript.append_message(b"offset", &C::F_to_bytes(&offset));
}