mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
@@ -52,7 +52,7 @@ fn test_rfc8032() {
|
||||
SchnorrSignature::<Ed25519>::read::<&[u8]>(&mut hex::decode(vector.2).unwrap().as_ref())
|
||||
.unwrap();
|
||||
let hram = Sha512::new_with_prefix(
|
||||
&[sig.R.to_bytes().as_ref(), &key.to_bytes(), &hex::decode(vector.1).unwrap()].concat(),
|
||||
[sig.R.to_bytes().as_ref(), &key.to_bytes(), &hex::decode(vector.1).unwrap()].concat(),
|
||||
);
|
||||
assert!(sig.verify(key, Scalar::from_hash(hram)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user