Skip to main content

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 value
  • pk: 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

JubjubPoint

sig

JubjubSchnorrSignature

Returns

boolean