mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Hash the message before the challenge function in the Schnorr contract
Slightly more efficient.
This commit is contained in:
@@ -38,7 +38,7 @@ impl Signature {
|
||||
&Keccak256::digest(x_and_y_coordinates)[12 ..]
|
||||
});
|
||||
hash.update(key.eth_repr());
|
||||
hash.update(message);
|
||||
hash.update(Keccak256::digest(message));
|
||||
<Scalar as Reduce<KU256>>::reduce_bytes(&hash.finalize())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user