Browse Source

Merge pull request #1 from ed255/feat/make-gates-serializable

feat: make gates serializable
main
Ahmad Afuni 2 months ago
committed by GitHub
parent
commit
e5548e8e4a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/gates/comparison.rs

+ 3
- 3
src/gates/comparison.rs

@ -28,7 +28,7 @@ use plonky2::plonk::vars::{
use plonky2::util::bits_u64;
/// A gate for checking that one value is less than or equal to another.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct ComparisonGate<F: Field64 + Extendable<D>, const D: usize> {
pub(crate) num_bits: usize,
pub(crate) num_chunks: usize,
@ -414,8 +414,8 @@ impl, const D: usize> PackedEvaluableBase
}
}
#[derive(Clone, Debug)]
struct ComparisonGenerator<F: RichField + Extendable<D>, const D: usize> {
#[derive(Clone, Debug, Default)]
pub struct ComparisonGenerator<F: RichField + Extendable<D>, const D: usize> {
row: usize,
gate: ComparisonGate<F, D>,
}

Loading…
Cancel
Save