Skip to content

Commit

Permalink
Add stwo-composite backend (#2164)
Browse files Browse the repository at this point in the history
This allows us too have VADCOP proofs with Stwo.
  • Loading branch information
georgwiese authored Nov 27, 2024
1 parent a352390 commit 3b499a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ pub enum BackendType {
#[cfg(feature = "stwo")]
#[strum(serialize = "stwo")]
Stwo,
#[cfg(feature = "stwo")]
#[strum(serialize = "stwo-composite")]
StwoComposite,
}

pub type BackendOptions = String;
Expand Down Expand Up @@ -112,6 +115,10 @@ impl BackendType {
}
#[cfg(feature = "stwo")]
BackendType::Stwo => Box::new(stwo::Factory),
#[cfg(feature = "stwo")]
BackendType::StwoComposite => {
Box::new(composite::CompositeBackendFactory::new(stwo::Factory))
}
}
}
}
Expand Down

0 comments on commit 3b499a0

Please sign in to comment.