Skip to content

Commit

Permalink
exp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Nov 4, 2023
1 parent 720631d commit b05f085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion barretenberg/acir_tests/flows/sol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ export PROOF="$(pwd)/proof"
export PROOF_AS_FIELDS="$(pwd)/proof_fields.json"

# Get the number of public inputs in the circuit
gates=$($BIN gates -v 2>&1 | tr -d '\0')
gates=$($BIN gates -v 2>&1 | tr -d '\0')
NUM_PUBLIC_INPUTS=$(echo "$gates" | grep -o 'public inputs: [0-9]*' | awk '{print $3}')
echo "Number of public inputs: $NUM_PUBLIC_INPUTS"

# Create a proof, write the solidity contract, write the proof as fields in order to extract the public inputs
$BIN prove -o proof
Expand Down

0 comments on commit b05f085

Please sign in to comment.