From 1656846d1afdd49e580416415ab42f65d552ee28 Mon Sep 17 00:00:00 2001 From: dante <45801863+alexander-camuto@users.noreply.github.com> Date: Mon, 26 Feb 2024 23:02:47 +0100 Subject: [PATCH] fix: transcript should serialize as lc flag (#726) --- src/commands.rs | 6 +++--- src/pfsys/mod.rs | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 298ffade4..fbfbc5e08 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -471,7 +471,7 @@ pub enum Commands { long, require_equals = true, num_args = 0..=1, - default_value_t = TranscriptType::EVM, + default_value_t = TranscriptType::default(), value_enum )] transcript: TranscriptType, @@ -526,13 +526,13 @@ pub enum Commands { #[arg(short = 'W', long, default_value = DEFAULT_WITNESS)] witness: PathBuf, /// The path to the compiled model file (generated using the compile-circuit command) - #[arg(short = 'M', long, default_value = DEFAULT_COMPILED_CIRCUIT)] + #[arg(short = 'M', long)] compiled_circuit: PathBuf, #[arg( long, require_equals = true, num_args = 0..=1, - default_value_t = TranscriptType::EVM, + default_value_t = TranscriptType::default(), value_enum )] transcript: TranscriptType, diff --git a/src/pfsys/mod.rs b/src/pfsys/mod.rs index 2005012bd..80d11e142 100644 --- a/src/pfsys/mod.rs +++ b/src/pfsys/mod.rs @@ -197,7 +197,11 @@ impl std::fmt::Display for TranscriptType { } } -impl ToFlags for TranscriptType {} +impl ToFlags for TranscriptType { + fn to_flags(&self) -> Vec { + vec![format!("{}", self)] + } +} #[cfg(feature = "python-bindings")] impl ToPyObject for TranscriptType {