mirror of https://github.com/zcash/orchard.git
Use Pallas directly from pasta_curves crate
This commit is contained in:
parent
0f081c74e9
commit
3911fb3202
|
@ -6,7 +6,8 @@ use std::mem;
|
|||
use aes::Aes256;
|
||||
use fpe::ff1::{BinaryNumeralString, FF1};
|
||||
use group::GroupEncoding;
|
||||
use halo2::{arithmetic::FieldExt, pasta::pallas};
|
||||
use halo2::arithmetic::FieldExt;
|
||||
use pasta_curves::pallas;
|
||||
use subtle::CtOption;
|
||||
|
||||
use crate::{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
//! The Sinsemilla hash function and commitment scheme.
|
||||
|
||||
use group::Group;
|
||||
use halo2::{arithmetic::CurveExt, pasta::pallas};
|
||||
use halo2::arithmetic::CurveExt;
|
||||
use pasta_curves::pallas;
|
||||
|
||||
use crate::spec::extract_p;
|
||||
|
||||
|
|
|
@ -5,10 +5,8 @@ use std::iter;
|
|||
use blake2b_simd::Params;
|
||||
use ff::PrimeField;
|
||||
use group::{Curve, Group};
|
||||
use halo2::{
|
||||
arithmetic::{CurveAffine, CurveExt, FieldExt},
|
||||
pasta::pallas,
|
||||
};
|
||||
use halo2::arithmetic::{CurveAffine, CurveExt, FieldExt};
|
||||
use pasta_curves::pallas;
|
||||
|
||||
use crate::{constants::L_ORCHARD_BASE, primitives::sinsemilla};
|
||||
|
||||
|
@ -113,7 +111,8 @@ pub(crate) fn extract_p(point: &pallas::Point) -> pallas::Base {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use group::Group;
|
||||
use halo2::{arithmetic::CurveExt, pasta::pallas};
|
||||
use halo2::arithmetic::CurveExt;
|
||||
use pasta_curves::pallas;
|
||||
|
||||
#[test]
|
||||
fn diversify_hash_substitution() {
|
||||
|
|
Loading…
Reference in New Issue