From e01e5fa08a97a113e76ec8a69d06fe6cc2c82d17 Mon Sep 17 00:00:00 2001 From: olesHolem Date: Tue, 3 Oct 2023 14:57:09 +0300 Subject: [PATCH] serialization added for Setup --- src/plonk/better_better_cs/setup/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plonk/better_better_cs/setup/mod.rs b/src/plonk/better_better_cs/setup/mod.rs index f21d4cf0..e1fdf0f5 100644 --- a/src/plonk/better_better_cs/setup/mod.rs +++ b/src/plonk/better_better_cs/setup/mod.rs @@ -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> { pub n: usize, pub num_inputs: usize, @@ -38,6 +38,9 @@ pub struct Setup> { pub non_residues: Vec, + #[serde(skip_serializing,skip_deserializing, default)] + #[serde(bound(serialize = ""))] + #[serde(bound(deserialize = ""))] _marker: std::marker::PhantomData }