iden3 / circom_old

Circuit compiler for zkSNARKs
GNU General Public License v3.0
472 stars 82 forks source link

Typo in circuits/sha256 #20

Closed Doresimon closed 5 years ago

Doresimon commented 5 years ago

in /sha256/main.js

~include "sha256_2.jaz";~ include "sha256_2.circom";

~component sha256_2 = SHA256_2();~ component sha256_2 = Sha256_2();

And when I run $> node cli.js circuits/sha256/main.circom -o sha256.json the node ran for about 10 minutes and met 'heap out of memory'

Did I use the right method?

Doresimon commented 5 years ago

My pc has 16GB memory...

weijiekoh commented 5 years ago

Run it this way:

node --max-old-space-size=4000 .................