Use pasta_curves 0.3.0. (#15) Co-authored-by: porcuquine <porcuquine@users.noreply.github.com>
porcuquine 1746729+porcuquine@users.noreply.github.com
Tue, 15 Feb 2022 15:10:11 -0800
2 files changed,
3 insertions(+),
3 deletions(-)
M
Cargo.toml
→
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"
M
src/pasta.rs
→
src/pasta.rs
@@ -62,8 +62,8 @@ Some(Fq::from_bytes_wide(&arr))
} } - fn random(_rng: &mut (impl RngCore + CryptoRng)) -> Self { - Fq::rand() + fn random(rng: &mut (impl RngCore + CryptoRng)) -> Self { + <Fq as ff::Field>::random(rng) } }