Hi everyone,
I’m working on an open-source project called AegisProof v2, using Groth16 over BN254.
Repository:
AegisProof-v2
I’m looking for technical feedback from people with experience in Groth16, R1CS, Circom/snarkjs, BN254, or Solidity verifiers.
This is not a request for a formal security audit. I’m mainly looking for independent review and criticism of the current design, particularly around the consistency of the ZK proving and verification artifacts.
Areas I would especially like feedback on
- R1CS and public-signal layout
- Consistency between the R1CS, WASM, proving artifacts, and verification key
- The canonical 30-public-signal interface
- Groth16 / BN254 assumptions
- Solidity verifier compatibility and identity
- Prover/verifier compatibility
- Artifact integrity and pinning
- Fail-closed regression and compatibility checks
The current canonical v2 configuration uses: - Groth16
- BN254 / Ethereum alt_bn128
- 30 public signals
- 2 private inputs
- a canonical WASM artifact
- a canonical R1CS artifact
- a production verification key
Groth16VerifierV2Productionas the Solidity verifier
One limitation is that the original v2 Circom source is not currently included in the repository. I do not want to reconstruct the circuit simply to make the implementation easier to review. The goal is to understand whether the existing pinned artifacts and verifier are internally consistent and whether the assumptions around them are sound.
Questions
I would particularly appreciate feedback on:
- Are there any apparent inconsistencies between the R1CS metadata, public-signal count, proving interface, verification key, and Solidity verifier?
- Are there assumptions around the 30 public signals that should be made more explicit?
- Are the current artifact-integrity and regression checks sufficient to prevent an incompatible or legacy circuit from being treated as the canonical v2 circuit?
- Are there important security boundaries or failure modes that are currently missing?
- Are any of the Groth16 / BN254 assumptions or implementation details technically questionable?
I’m specifically interested in critical feedback. If something is incorrect, incomplete, or overclaimed, I would much rather identify it now than later.
The repository also contains separate work around provenance/PQC, TEE experimentation, and future STARK/PQ-ZK research, but those are outside the primary scope here. The main focus of this discussion is the Groth16 Frozen Core.
Thanks in advance to anyone willing to take a look or point me toward relevant discussions or prior work.