Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
serialization added for Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
olesHolem committed Oct 3, 2023
1 parent 1f05c52 commit e01e5fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plonk/better_better_cs/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::io::{Read, Write};

use crate::plonk::better_cs::keys::*;

#[derive(Clone, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Setup<E: Engine, C: Circuit<E>> {
pub n: usize,
pub num_inputs: usize,
Expand All @@ -38,6 +38,9 @@ pub struct Setup<E: Engine, C: Circuit<E>> {

pub non_residues: Vec<E::Fr>,

#[serde(skip_serializing,skip_deserializing, default)]
#[serde(bound(serialize = ""))]
#[serde(bound(deserialize = ""))]
_marker: std::marker::PhantomData<C>
}

Expand Down

0 comments on commit e01e5fa

Please sign in to comment.