UnsignedProofGenerator class
This class is defined in ozki-lib, and used by the user (prover) to create a zk-snark proof which is not signed.
The UnsignedProofGenerator is an abstract class which is defined below. This is the type used to generate an unsigned proof.
There are two simple steps to use this class:
Subclass the ProofGenerator class with your own specific <Type> that defines the custom input which you use for the circom prove function. Implement the formatCustomInput method which takes the <Type> object and formats it for the circom prove function.
Instantiate the proof generator subclass, and call the generateProof function to create a zk-snark proof. This method takes 3 params: the digital signature of the input parameters, the proof timestamp, and the custom input specific to your circom function.
Last updated
Was this helpful?