Summary
circuits/scripts/gen_inputs.sh builds Prover.toml inputs but does minimal validation. Malformed values produce cryptic nargo/bb failures downstream. Add input validation and clear errors.
What to build
- Validate each expected field is present and well-formed (numeric where numeric, 0x-hex where field, correct byte lengths for keys/sigs)
- Fail fast with a message naming the offending field
set -euo pipefail and quoting audit
Acceptance criteria
✅ Merge requirements (read before starting)
Before this PR can be merged, all of the following must hold:
Greptile performs the detailed code review on each PR. Please resolve its feedback fully before requesting a human merge — PRs below 4/5 or with open Greptile threads will not be merged.
Summary
circuits/scripts/gen_inputs.shbuilds Prover.toml inputs but does minimal validation. Malformed values produce crypticnargo/bbfailures downstream. Add input validation and clear errors.What to build
set -euo pipefailand quoting auditAcceptance criteria
build.sh) still works end-to-end---✅ Merge requirements (read before starting)
Before this PR can be merged, all of the following must hold:
Greptile performs the detailed code review on each PR. Please resolve its feedback fully before requesting a human merge — PRs below 4/5 or with open Greptile threads will not be merged.