From 680ef227b7ece8487194ccc141a2179cc12a8dda Mon Sep 17 00:00:00 2001 From: saleel Date: Wed, 18 Dec 2024 17:01:23 +0530 Subject: [PATCH] fix(docs): fix script to generate public inputs for solidity verification --- docs/docs/how_to/how-to-solidity-verifier.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/how_to/how-to-solidity-verifier.md b/docs/docs/how_to/how-to-solidity-verifier.md index 2cc0f8e57ce..fd81b93c747 100644 --- a/docs/docs/how_to/how-to-solidity-verifier.md +++ b/docs/docs/how_to/how-to-solidity-verifier.md @@ -140,7 +140,7 @@ First generate a proof with `bb` at the location `./proof` using the steps in [g ```bash # This value must be changed to match the number of public inputs (including return values!) in your program. NUM_PUBLIC_INPUTS=1 -PUBLIC_INPUT_BYTES=32*NUM_PUBLIC_INPUTS +PUBLIC_INPUT_BYTES=$((32*$NUM_PUBLIC_INPUTS)) HEX_PUBLIC_INPUTS=$(head -c $PUBLIC_INPUT_BYTES ./proof | od -An -v -t x1 | tr -d $' \n') HEX_PROOF=$(tail -c +$(($PUBLIC_INPUT_BYTES + 1)) ./proof | od -An -v -t x1 | tr -d $' \n')