Signature

For POD2 signatures, we use Schnorr signature over the EcGFp5 curve, with Poseidon as the hash function.

The message is a single backend Value. To sign a dictionary, the signer signs its Merkle root; the frontend SignedDict bundles a Dictionary, the signer's public key and the signature. A SignedBy(msg, pk) statement is proved in a MainPOD by verifying the signature in-circuit.

Let be the generator of the curve group, of order , and let be the Poseidon hash, whose output is interpreted as an integer.

keygen()

secret key:
public key:
return

sign(sk, m)





return

verify(pk, m, sig)



return

Here is the -coordinate of the point , which uniquely identifies the point in the EcGFp5 group.

Older version

The previously used signature scheme was proof-based signatures using Plonky2 proofs, following https://eprint.iacr.org/2024/1553 and https://jdodinh.io/assets/files/m-thesis.pdf, where the public key is and a signature is a Plonky2 proof of knowledge of for the given and message. It was replaced by the elliptic curve Schnorr signature presented above.