-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason
committed
Oct 7, 2024
1 parent
c6db01a
commit be4d7d3
Showing
5 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
use circuits_batcher::args::OpenSchema; | ||
use serde::Deserialize; | ||
use serde::Serialize; | ||
|
||
#[derive(clap::ArgEnum, Copy, Clone, Debug, Default, Serialize, Deserialize)] | ||
pub enum HostMode { | ||
pub(crate) enum HostMode { | ||
/// Trivial Wasm Host Environment | ||
#[default] | ||
Default, | ||
|
||
/// Wasm Host Environment with more Zk plugins | ||
Standard, | ||
} | ||
|
||
#[derive(clap::ArgEnum, Copy, Clone, Debug, Default, Serialize, Deserialize)] | ||
pub(crate) enum Scheme { | ||
#[default] | ||
Gwc, | ||
|
||
Shplonk, | ||
} | ||
|
||
impl From<Scheme> for OpenSchema { | ||
fn from(val: Scheme) -> OpenSchema { | ||
match val { | ||
Scheme::Gwc => OpenSchema::GWC, | ||
Scheme::Shplonk => OpenSchema::Shplonk, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters