-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init commit in attempting integrating orion to m31, and misc changes …
…in gkr binaries
- Loading branch information
1 parent
f756288
commit 3fc9651
Showing
7 changed files
with
93 additions
and
124 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
use config::{GKRConfig, PolynomialCommitmentType}; | ||
use config_macros::declare_gkr_config; | ||
use field_hashers::{MiMC5FiatShamirHasher, PoseidonFiatShamirHasher}; | ||
use gf2::GF2x128; | ||
use gkr_field_config::{BN254Config, GF2ExtConfig, GKRFieldConfig, M31ExtConfig}; | ||
use mersenne31::M31x16; | ||
use poly_commit::{raw::RawExpanderGKR, OrionPCSForGKR}; | ||
use transcript::{BytesHashTranscript, FieldHashTranscript, SHA256hasher}; | ||
|
||
#[allow(unused_imports)] // The FiatShamirHashType import is used in the macro expansion | ||
use config::FiatShamirHashType; | ||
#[allow(unused_imports)] // The FieldType import is used in the macro expansion | ||
use gkr_field_config::FieldType; | ||
|
||
declare_gkr_config!( | ||
pub M31ExtConfigPoseidonOrion, | ||
FieldType::M31, | ||
FiatShamirHashType::Poseidon, | ||
PolynomialCommitmentType::Orion | ||
); | ||
declare_gkr_config!( | ||
pub M31ExtConfigPoseidonRaw, | ||
FieldType::M31, | ||
FiatShamirHashType::Poseidon, | ||
PolynomialCommitmentType::Raw | ||
); | ||
declare_gkr_config!( | ||
pub BN254ConfigMIMC5Raw, | ||
FieldType::BN254, | ||
FiatShamirHashType::MIMC5, | ||
PolynomialCommitmentType::Raw | ||
); | ||
declare_gkr_config!( | ||
pub GF2ExtConfigSha2Orion, | ||
FieldType::GF2, | ||
FiatShamirHashType::SHA256, | ||
PolynomialCommitmentType::Orion | ||
); | ||
declare_gkr_config!( | ||
pub GF2ExtConfigSha2Raw, | ||
FieldType::GF2, | ||
FiatShamirHashType::SHA256, | ||
PolynomialCommitmentType::Raw | ||
); |
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 |
---|---|---|
|
@@ -10,5 +10,8 @@ pub mod utils; | |
|
||
pub mod executor; | ||
|
||
pub mod gkr_configs; | ||
pub use gkr_configs::*; | ||
|
||
#[cfg(test)] | ||
mod tests; |
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