Skip to content
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this library adheres to Rust's notion of

## [Unreleased]

## [0.13.1] - 2025-03-09
### Changed
- `ff_derive` now works with all odd primes, not just primes that are either
`3 (mod 4)` or `1 (mod 16)`.

### Fixed
- A type inference problem when `ff_derive` and `hybrid-array` are in the same
dependency tree has been fixed.

## [0.13.0] - 2022-12-06
### Added
- `ff::Field::{ZERO, ONE}`
Expand Down
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ff"
version = "0.13.0"
version = "0.13.1"
authors = [
"Sean Bowe <ewillbefull@gmail.com>",
"Jack Grigg <thestr4d@gmail.com>",
Expand All @@ -17,7 +17,7 @@ repository = "https://github.com/zkcrypto/ff"
[dependencies]
bitvec = { version = "1", default-features = false, optional = true }
byteorder = { version = "1", default-features = false, optional = true }
ff_derive = { version = "0.13", path = "ff_derive", optional = true }
ff_derive = { version = "0.13.1", path = "ff_derive", optional = true }
rand_core = { version = "0.6", default-features = false }
subtle = { version = "2.2.1", default-features = false, features = ["i128"] }

Expand Down
2 changes: 1 addition & 1 deletion ff_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ff_derive"
version = "0.13.0"
version = "0.13.1"
authors = [
"Sean Bowe <ewillbefull@gmail.com>",
"Jack Grigg <thestr4d@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion ff_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ fn prime_field_constants_and_sqrt(
};

quote! {
// Tonelli-Shank's algorithm works for every odd prime.
// Tonelli-Shanks algorithm works for every remaining odd prime.
// https://eprint.iacr.org/2012/685.pdf (page 12, algorithm 5)
use ::ff::derive::subtle::{ConditionallySelectable, ConstantTimeEq};

Expand Down