Skip to content

Commit

Permalink
fr: use arkworks for u64_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed May 16, 2024
1 parent 7aee9c2 commit b57e932
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2,195 deletions.
9 changes: 6 additions & 3 deletions src/fields/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ use crate::EncodingError;
pub mod arkworks;
mod ops;
pub mod u32;

// The u64 backend requires arkworks
#[cfg(feature = "arkworks")]
pub mod u64;

cfg_if! {
if #[cfg(feature = "u32_backend")] {
pub type Fr = u32::Fr;
} else {
if #[cfg(feature = "arkworks")] {
pub type Fr = u64::Fr;
} else {
pub type Fr = u32::Fr;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/fields/fr/u64.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod fiat;
pub mod wrapper;

pub use wrapper::Fr;
Loading

0 comments on commit b57e932

Please sign in to comment.