-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixing groth16
and plonk
for the same circuit stalls compilation
#77
Comments
This worked in circom-starter when I added it, so I'm not sure what issue you are hitting. |
I just tested the circom-starter repository, and by itself it does indeed work fine. However, if I duplicate the Here is the modified require("hardhat-circom");
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: "0.6.11",
},
{
version: "0.8.9",
},
],
},
circom: {
inputBasePath: "./circuits",
ptau: "https://hermezptau.blob.core.windows.net/ptau/powersOfTau28_hez_final_15.ptau",
circuits: [
{
name: "division",
// No protocol, so it defaults to groth16
},
{
// duplicate of the division circuit using the plonk protocol
name: 'division_plonk',
circuit: 'division.circom',
input: 'division.json',
protocol: 'plonk',
},
{
name: "simple-polynomial",
// Generate PLONK
protocol: "plonk",
},
{
name: "hash",
// Explicitly generate groth16
protocol: "groth16",
},
],
},
}; |
Okay. Using the same circuit multiple times has never been explicitly supported nor tested, so this is more a feature than a bug. Not sure when I'll be able to look/implement. Thanks for the detailed report. |
groth16
and plonk
protocols stalls compilationgroth16
and plonk
for the same circuit stalls compilation
Thanks for the response, I updated the title to be more clear of the issue. |
When compiling the same circuit using both the
groth16
andplonk
protocols, compilation will stall after finishing the first circuit, regardless of order. If I comment out either circuit, compilation finishes successfully, but this requires two separate runs ofnpx hardhat circom
. I am using node.js v16.6.1, running on a mac mini M1 with macOS Ventura 13.0.1. I am using the exampleMultiplier2
template from the circom tutorial.Here is my
package.json
file:Here is my
hardhat.config.ts
file:Here is my
circuits/multiplier2.circom
file:Here is my
circuits/input/multiplier2.json
file:The text was updated successfully, but these errors were encountered: