Browse Source

Use pasta_curves 0.3.0. (#15)

Co-authored-by: porcuquine <porcuquine@users.noreply.github.com>
main
porcuquine 2 years ago
committed by GitHub
parent
commit
853ab90f7c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Cargo.toml
  2. +2
    -2
      src/pasta.rs

+ 1
- 1
Cargo.toml

@ -21,4 +21,4 @@ rayon = "1.3.0"
rand_core = { version = "0.5", default-features = false } rand_core = { version = "0.5", default-features = false }
itertools = "0.9.0" itertools = "0.9.0"
subtle = "2.4" subtle = "2.4"
pasta_curves = "0.2.1"
pasta_curves = "0.3.0"

+ 2
- 2
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 {
<Fq as ff::Field>::random(rng)
} }
} }

Loading…
Cancel
Save