mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Clarify transcripting for Clsag::verify, Mlsag::verify, as with Clsag::sign
This commit is contained in:
@@ -377,6 +377,10 @@ impl Clsag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Verify a CLSAG signature for the provided context.
|
/// Verify a CLSAG signature for the provided context.
|
||||||
|
///
|
||||||
|
/// WARNING: This follows the Fiat-Shamir transcript format used by the Monero protocol, which
|
||||||
|
/// makes assumptions on what has already been transcripted and bound to within `msg_hash`. Do
|
||||||
|
/// not use this if you don't know what you're doing.
|
||||||
pub fn verify(
|
pub fn verify(
|
||||||
&self,
|
&self,
|
||||||
ring: &[[EdwardsPoint; 2]],
|
ring: &[[EdwardsPoint; 2]],
|
||||||
|
|||||||
@@ -122,6 +122,10 @@ impl Mlsag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Verify a MLSAG.
|
/// Verify a MLSAG.
|
||||||
|
///
|
||||||
|
/// WARNING: This follows the Fiat-Shamir transcript format used by the Monero protocol, which
|
||||||
|
/// makes assumptions on what has already been transcripted and bound to within `msg`. Do not use
|
||||||
|
/// this if you don't know what you're doing.
|
||||||
pub fn verify(
|
pub fn verify(
|
||||||
&self,
|
&self,
|
||||||
msg: &[u8; 32],
|
msg: &[u8; 32],
|
||||||
|
|||||||
Reference in New Issue
Block a user