Circuit without inputs #133
-
If I understand correctly, each ZK-SNARK is built from a model ONNX and JSON input. Is there a way to produce a circuit based on just the model ONNX, so that it can receive arbitrary inputs of the correct type? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Currently, the best way to achieve the effect you're looking for is to simply run |
Beta Was this translation helpful? Give feedback.
The
prove
command currently builds the circuit, based on the model ONNX, then generates a proof from the resulting circuit. However we currently don't have a command for serializing the circuit to disk so that the compiled circuit can be re-used.Currently, the best way to achieve the effect you're looking for is to simply run
prove
where the ONNX file is constant butinput.json
differs -- the intermediate circuit that is built should be the same every time but with each time the arbitrary inputs being assigned to the "input columns" of the circuit. This would be roughly equivalent to the pipeline you're looking for.