mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Hash the message before the challenge function in the Schnorr contract
Slightly more efficient.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user