Commit Graph

2 Commits

Author SHA1 Message Date
François Garillot
a62bccf206 Small code organization improvements (#206)
* refactor: Deleted a redundant `ScalarMul` helper trait

* refactor: Refactor `to_transcript_bytes`

* refactor: refactor R1CS Shape checking in Spartan checks

- Introduced a new function `check_regular_shape` in `r1cs.rs` to enforce regularity conditions necessary for Spartan-class SNARKs.

* refactor: Refactor sumcheck.rs prove_quad_* for readability

- Extracted the calculation of evaluation points to its new function `compute_eval_points`, enhancing code reusability within `prove_quad` and `prove_quad_batch` functions.
2023-07-21 11:24:47 -07:00
Srinath Setty
e76e6bc0f8 Reorganize various Spartan SNARKs and make the direct interface more generic (#195)
* reorganize different variants of spartan and make direct snark more generic

* cargo fmt
2023-07-06 19:51:00 -07:00