Hash the message before the challenge function in the Schnorr contract

Slightly more efficient.
This commit is contained in:
Luke Parker
2024-09-17 01:04:22 -04:00
parent cc75a92641
commit 7feb7aed22
3 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,6 @@ contract TestSchnorr {
pure
returns (bool)
{
return Schnorr.verify(public_key, message, c, s);
return Schnorr.verify(public_key, keccak256(message), c, s);
}
}