Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch back to arkworks field arithmetic for 64-bit backend #102

Merged
merged 9 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@
* add power impl and expose `Fq::from_montgomery_limbs` by @redshiftzero in #98
* Add missing conversion trait implementations by @neithanmo in #97

# 0.10.0

* Use Arkworks field arithmetic for the 64-bit backend by @redshiftzero in #102
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "decaf377"
version = "0.9.0"
version = "0.10.0"
authors = [
"Henry de Valence <[email protected]>",
"redshiftzero <[email protected]>",
Expand Down
9 changes: 6 additions & 3 deletions src/fields/fp.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;
mod u32;

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

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

Expand Down
1 change: 0 additions & 1 deletion src/fields/fp/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::Fp;
Loading
Loading