mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-07 20:30:34 +00:00
Move hashtocurve module into pasta module.
This commit is contained in:
parent
b134a73ef5
commit
68a7a19d3b
5 changed files with 6 additions and 6 deletions
|
|
@ -2,15 +2,13 @@
|
||||||
//! field and polynomial arithmetic.
|
//! field and polynomial arithmetic.
|
||||||
|
|
||||||
use crossbeam_utils::thread;
|
use crossbeam_utils::thread;
|
||||||
use ff::Field;
|
pub use ff::Field;
|
||||||
|
|
||||||
mod curves;
|
mod curves;
|
||||||
mod fields;
|
mod fields;
|
||||||
mod hashtocurve;
|
|
||||||
|
|
||||||
pub use curves::*;
|
pub use curves::*;
|
||||||
pub use fields::*;
|
pub use fields::*;
|
||||||
pub use hashtocurve::*;
|
|
||||||
|
|
||||||
/// This represents an element of a group with basic operations that can be
|
/// This represents an element of a group with basic operations that can be
|
||||||
/// performed. This allows an FFT implementation (for example) to operate
|
/// performed. This allows an FFT implementation (for example) to operate
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,13 @@ mod macros;
|
||||||
mod curves;
|
mod curves;
|
||||||
mod fields;
|
mod fields;
|
||||||
|
|
||||||
|
mod hashtocurve;
|
||||||
pub mod pallas;
|
pub mod pallas;
|
||||||
pub mod vesta;
|
pub mod vesta;
|
||||||
|
|
||||||
pub use curves::*;
|
pub use curves::*;
|
||||||
pub use fields::*;
|
pub use fields::*;
|
||||||
|
use hashtocurve::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_endo_consistency() {
|
fn test_endo_consistency() {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use core::fmt::Debug;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
use subtle::ConstantTimeEq;
|
use subtle::ConstantTimeEq;
|
||||||
|
|
||||||
use super::{Curve, CurveAffine, Field, FieldExt};
|
use crate::arithmetic::{Curve, CurveAffine, Field, FieldExt};
|
||||||
|
|
||||||
/// Implementation of the "simplified SWU" hashing to short Weierstrass curves
|
/// Implementation of the "simplified SWU" hashing to short Weierstrass curves
|
||||||
/// with a = 0. Internally uses SHAKE128.
|
/// with a = 0. Internally uses SHAKE128.
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
|
use super::SimplifiedSWUWithDegree3Isogeny;
|
||||||
use super::{Ep, EpAffine, Fp, Fq, IsoEp, IsoEpAffine};
|
use super::{Ep, EpAffine, Fp, Fq, IsoEp, IsoEpAffine};
|
||||||
use crate::arithmetic::SimplifiedSWUWithDegree3Isogeny;
|
|
||||||
|
|
||||||
/// The base field of the Pallas and iso-Pallas curves.
|
/// The base field of the Pallas and iso-Pallas curves.
|
||||||
pub type Base = Fp;
|
pub type Base = Fp;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
|
use super::SimplifiedSWUWithDegree3Isogeny;
|
||||||
use super::{Eq, EqAffine, Fp, Fq, IsoEq, IsoEqAffine};
|
use super::{Eq, EqAffine, Fp, Fq, IsoEq, IsoEqAffine};
|
||||||
use crate::arithmetic::SimplifiedSWUWithDegree3Isogeny;
|
|
||||||
|
|
||||||
/// The base field of the Vesta and iso-Vesta curves.
|
/// The base field of the Vesta and iso-Vesta curves.
|
||||||
pub type Base = Fq;
|
pub type Base = Fq;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue