Skip to content

Commit

Permalink
fix: transcript should serialize as lc flag (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto authored Feb 26, 2024
1 parent 88098b8 commit 1656846
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 5 additions & 1 deletion src/pfsys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ impl std::fmt::Display for TranscriptType {
}
}

impl ToFlags for TranscriptType {}
impl ToFlags for TranscriptType {
fn to_flags(&self) -> Vec<String> {
vec![format!("{}", self)]
}
}

#[cfg(feature = "python-bindings")]
impl ToPyObject for TranscriptType {
Expand Down

0 comments on commit 1656846

Please sign in to comment.