-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get things to compile after refactor
- Loading branch information
1 parent
b51a3dc
commit ceb9338
Showing
21 changed files
with
1,054 additions
and
2,733 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Seeds for failure cases proptest has generated in the past. It is | ||
# automatically read and these particular cases re-run before any | ||
# novel cases are generated. | ||
# | ||
# It is recommended to check this file in to source control so that | ||
# everyone who runs the test benefits from these saved cases. | ||
cc cdd619576f50197f2531266a43db3be354532b33cd74b87be7ca92df4a5c0715 # shrinks to a = Fp(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) |
This file was deleted.
Oops, something went wrong.
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,6 +1,31 @@ | ||
// Fiat-crypto generates some unused type aliases, but we don't want to edit the generated code at all. | ||
#![allow(dead_code)] | ||
|
||
use cfg_if::cfg_if; | ||
|
||
pub mod arkworks; | ||
pub mod u32; | ||
pub mod u64; | ||
pub mod arkworks; | ||
|
||
#[cfg(all(not(feature = "u32"), not(feature = "u64")))] | ||
// compile_error!("No backend selected. Please select either: 'u32_backend' or 'u64_backend'."); | ||
#[cfg(all(feature = "u32", feature = "u64"))] | ||
compile_error!( | ||
"Multiple backends selected. Please select only one: 'u32_backend' or 'u64_backend'." | ||
); | ||
|
||
cfg_if! { | ||
if #[cfg(feature = "u32")] { | ||
pub type Fp = u32::Fp; | ||
|
||
pub mod arkworks_constants { | ||
pub use super::u32::arkworks_constants::*; | ||
} | ||
} else { | ||
pub type Fp = u64::Fp; | ||
|
||
pub mod arkworks_constants { | ||
pub use super::u64::arkworks_constants::*; | ||
} | ||
} | ||
} |
Oops, something went wrong.