Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/blake2-0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush authored Jan 31, 2024
2 parents 94e46fd + ea56f3a commit 19659f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ark-linear-sumcheck"
name = "ark-sumcheck"
version = "0.4.0"
authors = [
"Tom Shen <[email protected]>",
Expand All @@ -8,7 +8,7 @@ authors = [
description = "A library for efficient sumcheck protocols"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/sumcheck/"
keywords = ["cryptography", "finite-fields", "polynomials", "sumcheck"]
keywords = ["cryptography", "finite-fields", "polynomials", "sumcheck", "gkr"]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
Expand Down
3 changes: 3 additions & 0 deletions src/ml_sumcheck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ impl<F: Field> MLSumcheck<F> {
prover_msgs.push(prover_msg);
verifier_msg = Some(IPForMLSumcheck::sample_round(fs_rng));
}
prover_state
.randomness
.push(verifier_msg.unwrap().randomness);

Ok((prover_msgs, prover_state))
}
Expand Down
3 changes: 2 additions & 1 deletion src/ml_sumcheck/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn test_polynomial_as_subprotocol(
let (poly, asserted_sum) =
random_list_of_products::<Fr, _>(nv, num_multiplicands_range, num_products, &mut rng);
let poly_info = poly.info();
let (proof, _prover_state) =
let (proof, prover_state) =
MLSumcheck::prove_as_subprotocol(prover_rng, &poly).expect("fail to prove");
let subclaim =
MLSumcheck::verify_as_subprotocol(verifier_rng, &poly_info, asserted_sum, &proof)
Expand All @@ -116,6 +116,7 @@ fn test_polynomial_as_subprotocol(
poly.evaluate(&subclaim.point) == subclaim.expected_evaluation,
"wrong subclaim"
);
assert_eq!(prover_state.randomness, subclaim.point);
}

#[test]
Expand Down

0 comments on commit 19659f8

Please sign in to comment.