Skip to content
Open
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: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
target:
- wasm32-wasi
- wasm32-wasip1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasm32-wasi doesn't exist anymore

- thumbv6m-none-eabi
- thumbv7em-none-eabihf
steps:
Expand Down Expand Up @@ -81,7 +81,6 @@ jobs:
- uses: actions/checkout@v4
- run: cargo fetch
# Requires #![deny(rustdoc::broken_intra_doc_links)] in crates.
- run: sudo apt-get -y install libfontconfig1-dev
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: Check intra-doc links
run: cargo doc --all-features --document-private-items

Expand Down
73 changes: 8 additions & 65 deletions Cargo.lock

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

11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
"Jack Grigg <jack@z.cash>",
]
edition = "2021"
rust-version = "1.63"
rust-version = "1.85"
readme = "README.md"
license = "MIT/Apache-2.0"

Expand All @@ -17,9 +17,9 @@ repository = "https://github.com/zkcrypto/group"

[dependencies]
ff = { version = "=0.14.0-pre.0", default-features = false }
rand = { version = "0.9", optional = true, default-features = false }
rand_core = { version = "0.9", default-features = false }
rand_xorshift = { version = "0.4", optional = true }
rand = { version = "0.10", optional = true, default-features = false }
rand_core = { version = "0.10", default-features = false }
rand_xorshift = { version = "0.5", optional = true }
subtle = { version = "2.2.1", default-features = false }

# Crate for exposing the dynamic memory usage of the w-NAF structs.
Expand All @@ -33,3 +33,6 @@ wnaf-memuse = ["alloc", "memuse"]

[badges]
maintenance = { status = "actively-developed" }

[patch.crates-io]
ff = { git = "https://github.com/tarcieri/ff", branch = "rand_core/v0.10" }
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.63.0"
channel = "1.85.0"
components = [ "clippy", "rustfmt" ]
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use core::fmt;
use core::iter::Sum;
use core::ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign};
use ff::PrimeField;
use rand_core::{RngCore, TryRngCore};
use rand_core::{Rng, TryRng};
use subtle::{Choice, CtOption};

pub mod cofactor;
Expand Down Expand Up @@ -77,7 +77,7 @@ pub trait Group:
/// this group.
///
/// This function is non-deterministic, and samples from the user-provided RNG.
fn random<R: RngCore + ?Sized>(rng: &mut R) -> Self {
fn random<R: Rng + ?Sized>(rng: &mut R) -> Self {
Self::try_from_rng(rng)
.map_err(|e: Infallible| e)
.expect("Infallible failed")
Expand All @@ -92,7 +92,7 @@ pub trait Group:
/// this group.
///
/// This function is non-deterministic, and samples from the user-provided RNG.
fn try_from_rng<R: TryRngCore + ?Sized>(rng: &mut R) -> Result<Self, R::Error>;
fn try_from_rng<R: TryRng + ?Sized>(rng: &mut R) -> Result<Self, R::Error>;

/// Returns the additive identity, also known as the "neutral element".
fn identity() -> Self;
Expand Down