Skip to content

Commit 26fc95b

Browse files
committed
Provide Group::try_from_rng
1 parent b411d21 commit 26fc95b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ ff = { git = "https://github.com/zkcrypto/ff.git", branch = "release-0.14.0" }
3232

3333
# https://github.com/zkcrypto/group/pull/56
3434
# https://github.com/zkcrypto/group/pull/57
35-
group = { git = "https://github.com/baloo/group.git", branch = "baloo/relax-rng" }
35+
group = { git = "https://github.com/baloo/group.git", branch = "baloo/try_from_rng" }

elliptic-curve/src/dev.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010
error::{Error, Result},
1111
ops::{Invert, LinearCombination, MulByGenerator, Reduce, ShrAssign},
1212
point::AffineCoordinates,
13-
rand_core::{RngCore, TryRngCore},
13+
rand_core::TryRngCore,
1414
scalar::{FromUintUnchecked, IsHigh},
1515
sec1::{CompressedPoint, FromEncodedPoint, ToEncodedPoint},
1616
subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption},
@@ -575,7 +575,7 @@ impl ToEncodedPoint<MockCurve> for ProjectivePoint {
575575
impl group::Group for ProjectivePoint {
576576
type Scalar = Scalar;
577577

578-
fn random<R: RngCore + ?Sized>(_rng: &mut R) -> Self {
578+
fn try_from_rng<R: TryRngCore + ?Sized>(_rng: &mut R) -> core::result::Result<Self, R::Error> {
579579
unimplemented!();
580580
}
581581

0 commit comments

Comments
 (0)