types todo

This commit is contained in:
Erhan Tezcan
2023-03-12 23:50:42 +03:00
parent 1d7d953c3a
commit c11e8db167
3 changed files with 24 additions and 1 deletions

View File

@@ -23,5 +23,5 @@ CIRCOM_LINK=./node_modules
mkdir -p $CIRCOM_OUT
# compile
circom $CIRCOM_IN -o $CIRCOM_OUT --r1cs --wasm -l $CIRCOM_LINK
circom $CIRCOM_IN -o $CIRCOM_OUT --r1cs --sym --wasm -l $CIRCOM_LINK
echo "Compiled $CIRCOM_IN under $CIRCOM_OUT"

23
scripts/type.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
## Parse the .sym file and generate types
# abort on error
set -e
# get to the root directory of this project
cd "${0%/*}"/..
if [[ $# -ne 1 ]] ; then
echo "Usage:"
echo "$0 <circuit-name>"
exit 1
fi
CIRCUIT=$1
# variables
SYM=./build/$CIRCUIT/$CIRCUIT.sym
# choose lines with 1 dot only
cat $SYM | grep -E '^[^.]*\.[^.]*$'
# TODO