change setup

This commit is contained in:
Jaremy Creechley 2023-11-21 18:56:33 -07:00
parent 25937c041f
commit b220ffdd0f
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ tmp
main
main.nim
*.json
nimcache/

View File

@ -44,7 +44,9 @@ echo '{ "inp": [7,11,13] , "plus": 1022 }' >build/${NAME}_input.json
# cd $ORIG/build/${NAME}_js
# node generate_witness.js ${NAME}.wasm ../${NAME}_input.json ../${NAME}.wtns
# cd $ORIG/build
cd $ORIG/circom_build/
cp -v $ORIG/circom_build/* $ORIG/build/${NAME}_cpp/
cd $ORIG/build/${NAME}_cpp
echo "{.compile: \"${NAME}\"}" > ${NAME}.nim
nim cpp ${NAME}.nim
./${NAME} ../${NAME}_input.json ../${NAME}.wtns
cd $ORIG/build