Skip to content
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

NAND() circuit in README not getting complied #83

Open
m0bi5 opened this issue Jun 30, 2021 · 2 comments
Open

NAND() circuit in README not getting complied #83

m0bi5 opened this issue Jun 30, 2021 · 2 comments

Comments

@m0bi5
Copy link

m0bi5 commented Jun 30, 2021

I am following the README and trying compile the NAND() circuit. However, when I run circom mycircuit.circom -o circom.json, the circom.json file does not get created. I can verify that circom is installed and commands like circom --help works. Please let me know what I am missing.

Platform: Mac OSX, M1 chip
Installed npm using brew install node
Followed by npm install -g circom to install circom

@rqzrqh
Copy link

rqzrqh commented Sep 16, 2021

It seems .json is not supported now, .r1cs is more popular. Snarkjs can recognize .r1cs and export json format.

@PowersOfTau
Copy link

for time being, you can use the following:

circom nand.circom -r nand.r1cs
to generate r1cs format then
snarkjs r1cs export json nand.r1cs nand.r1cs.json
to generate a json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants