Building Proof Function
To build a circom proof function, use the 'build' command option of the toolkit and specify the path to the circom file.
Building a circom function is a very compute-intensive task, thus this can take several minutes depending on the performance of your computer.
Below is an example of how to build the proof function for the PayPal subscription payment:
The ozki-toolkit builds a circom proof function into three zkp components:
The wasm file This file has the same base filename as the circom file and ends with .wasm. The file is placed under proof-generator/static directory.
The proving key file This file has the same base filename as the circom file and ends with .zkey. Similar to the wasm file, this file is also placed under proof-generator/static directory. Both the wasm and proving key files are used by the proof generator component.
The verification key file This file has the same base filename as the circom file and ends with .json. The file is placed under proof-verifier/static directory because it is used by the proof verifier component.
You can build multiple circom proof functions for the toolkit. All the built zkp components will be included inside the toolkit-lib package.
Last updated
Was this helpful?