You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* first commit, add quadratic and cubic
* fix quadratic and cubic sumcheck implementation
* refactor code to use wrappers
* save work
* small refactor
* implement suggestion
* add number of factors and number of variables to transcript
* fix clippy
* fix clippy
---------
Co-authored-by: Diego K <43053772+diegokingston@users.noreply.github.com>
Copy file name to clipboardExpand all lines: crates/provers/sumcheck/README.md
+37-10Lines changed: 37 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Sumcheck Protocol
2
2
3
-
A naive implementation of the Sumcheck Protocol.
3
+
A naive implementation of the Sumcheck Protocol with support for linear, quadratic, and cubic polynomials.
4
4
5
5
## Overview
6
6
@@ -10,6 +10,14 @@ It is an essential building block for many SNARK protocols, given that it reduce
10
10
11
11
The protocol proceeds in rounds, with one round per variable of the multivariate polynomial. In each round, the prover sends a univariate polynomial, and the verifier responds with a random challenge. This process reduces a claim about a multivariate polynomial to a claim about a single evaluation point.
12
12
13
+
### Convenience Wrapper Functions
14
+
15
+
This implementation provides the following convenience **wrapper functions** for common interaction degrees:
16
+
-`prove_linear` / `verify_linear` (Sum of P(x))
17
+
-`prove_quadratic` / `verify_quadratic` (Sum of P₁(x)P₂(x))
18
+
-`prove_cubic` / `verify_cubic` (Sum of P₁(x)P₂(x)P₃(x))
19
+
20
+
13
21
14
22
## Example
15
23
@@ -23,22 +31,41 @@ use lambdaworks_sumcheck::{prove, verify};
0 commit comments