From 853ab90f7c1edc8e27a4867ee0cdf950c410711f Mon Sep 17 00:00:00 2001 From: porcuquine <1746729+porcuquine@users.noreply.github.com> Date: Tue, 15 Feb 2022 15:10:11 -0800 Subject: [PATCH] Use pasta_curves 0.3.0. (#15) Co-authored-by: porcuquine --- Cargo.toml | 2 +- src/pasta.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index df2887e..c6deb87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,4 @@ rayon = "1.3.0" rand_core = { version = "0.5", default-features = false } itertools = "0.9.0" subtle = "2.4" -pasta_curves = "0.2.1" +pasta_curves = "0.3.0" diff --git a/src/pasta.rs b/src/pasta.rs index a7c13f0..be60449 100644 --- a/src/pasta.rs +++ b/src/pasta.rs @@ -62,8 +62,8 @@ impl PrimeField for pallas::Scalar { } } - fn random(_rng: &mut (impl RngCore + CryptoRng)) -> Self { - Fq::rand() + fn random(rng: &mut (impl RngCore + CryptoRng)) -> Self { + ::random(rng) } }