Skip to content

Commit b9aba24

Browse files
authored
Iquerejeta/halo2fixes (#3)
* Compare polynomials and polynomial commitments by reference. Issue #1 Not permit duplicate queries Issue #3 * Add Length of PIs to the transcript Issue #2 * Check trailing bytes Issue #6 * Panic if two points are equals in lagrange_interpolate. Issue #10 * Hash the byte representation of the VK in the transcript Issue #5 We do not add the architecture, as the verifier is already parametrised by that. * Consistency in polynomial multiplication Issue #7 We mutate the polynomial (with all zeroes) to be consistent with the behaviour. * Make commitment homomorphic, and don't send evals of pieces - Issue#0
1 parent 417f29a commit b9aba24

File tree

25 files changed

+642
-340
lines changed

25 files changed

+642
-340
lines changed

examples/vector-ops-unblinded.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use ff::{FromUniformBytes, WithSmallOrderMulGroup};
88
use halo2_proofs::poly::commitment::Guard;
99
use halo2_proofs::poly::kzg::{params::ParamsKZG, KZGCommitmentScheme};
1010
use halo2_proofs::transcript::{CircuitTranscript, Hashable, Sampleable, Transcript};
11+
use halo2_proofs::utils::helpers::ProcessedSerdeObject;
1112
use halo2_proofs::{
1213
circuit::{AssignedCell, Chip, Layouter, Region, SimpleFloorPlanner, Value},
1314
plonk::*,
@@ -16,7 +17,7 @@ use halo2_proofs::{
1617
};
1718
use halo2curves::pairing::{Engine, MultiMillerLoop};
1819
use halo2curves::serde::SerdeObject;
19-
use halo2curves::CurveAffine;
20+
use halo2curves::{CurveAffine, CurveExt};
2021
use rand_core::OsRng;
2122

2223
// ANCHOR: instructions
@@ -469,8 +470,8 @@ fn test_prover<E: Engine + MultiMillerLoop>(
469470
instances: Vec<E::Fr>,
470471
) -> Vec<u8>
471472
where
472-
E::G1Affine:
473-
Default + SerdeObject + Hashable<State> + CurveAffine<ScalarExt = E::Fr, CurveExt = E::G1>,
473+
E::G1: Default + Hashable<State> + CurveExt<ScalarExt = E::Fr> + ProcessedSerdeObject,
474+
E::G1Affine: Default + SerdeObject + CurveAffine<ScalarExt = E::Fr, CurveExt = E::G1>,
474475
E::Fr: WithSmallOrderMulGroup<3>
475476
+ FromUniformBytes<64>
476477
+ Sampleable<State>

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.77.0
1+
1.82.0

0 commit comments

Comments
 (0)