jubjubSchnorrVerify
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.19.0
@midnight-ntwrk/compact-runtime / jubjubSchnorrVerify
Function: jubjubSchnorrVerify()
function jubjubSchnorrVerify<A>(
rtType,
msg,
verifyingKey,
sig): boolean;
Verifies a Schnorr signature over the JubJub curve.
rtType/msg: the message as a typed Compact valuepk: verifying key (a JubJubPoint / EmbeddedGroupAffine)sig: signature as returned by jubjubSchnorrSign
Returns true if the signature is valid (i.e. s·G == R + c·pk).
Type Parameters
A
A
Parameters
rtType
CompactType<A>
msg
A
verifyingKey
sig
Returns
boolean