jubjubSchnorrSign
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.19.0
@midnight-ntwrk/compact-runtime / jubjubSchnorrSign
Function: jubjubSchnorrSign()
function jubjubSchnorrSign<A>(
rtType,
msg,
signingKey): JubjubSchnorrSignature;
Produces a Schnorr signature over the JubJub curve.
rtType/msg: the message as a typed Compact valuesk: signing key as a JubJub scalar (e.g. as returned by jubjubSampleScalar)
The signature scheme:
- Nonce
rsampled uniformly at random - Announcement
R = r·G - Challenge
c = PoseidonHash(R.x, R.y, pk.x, pk.y, msg...) - Response
s = r + c·sk(in the JubJub scalar field)
Type Parameters
A
A
Parameters
rtType
CompactType<A>
msg
A
signingKey
bigint