Open chokobole opened 1 year ago
I've met the same issue.
i will check this issue
May I know the process of how you generated the solidity?
May I know the process of how you generated the solidity?
I just run all the 5 steps following the instructions decribed in halo2-snark-aggregator-sdk's README.md. The --nproofs 2
option is removed in all commands, otherwise it will fail.
Then, I copy the two files output/verify_circuit_proof.data
and output/verify_circuit_final_pair.data
generated in the above steps to /halo2-snark-aggregator-solidity/output/
folder.
Finally, I run the step2 and step3 commands following halo2-snark-aggregator-solidity's README.md
I think this is because of the assumption that the params of target circuit and verifier circuit share s
in common. i.e, they both share G2 and s*G2. It would be helpful to generate params of the circuits based on the same random seed or something.
oh yes.. we assumed they are same in our deployment.
I think this is because of the assumption that the params of target circuit and verifier circuit share
s
in common. i.e, they both share G2 and s*G2. It would be helpful to generate params of the circuits based on the same random seed or something.
I'm new to Halo 2. Could you please share your code to help me resolve this problem? I would greatly appreciate it. Thanks.
I think the perfect solution is the comment above, but for temporary solition, you can try this one.
btw use downsize
in params will generate params with same s_g2 https://github.com/scroll-tech/halo2/blob/9bf3562083dd9bed8a19f651b52bc810f5e2235f/halo2_proofs/src/poly/kzg/commitment.rs#L279
In solidity template, there are
get_target_circuit_g2_s
andget_target_circuit_g2_n
. I think they should be populated with params from target circuit.But in the code, they are written with params form verify circuit and I think this is the reason why the example failed when running waffle test.
The failed case is this.