Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Nov 21, 2024
1 parent 6a870b2 commit 89b85de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/lib.nr
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ mod tests {
#[test]
fn smoke_test() {
// Tests may be checked against https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/tree/main/poc

// Define Baby Jubjub (ERC-2494) parameters in affine representation
let bjj_affine = AffineCurve::new(
168700,
Expand Down
11 changes: 3 additions & 8 deletions src/montcurve.nr
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ pub mod affine {
// All group operations are induced by those of the corresponding Twisted Edwards curve.
// See e.g. <https://eprint.iacr.org/2017/212.pdf> for details on the correspondences.
use crate::{
is_square,
montcurve::curvegroup,
safe_inverse,
sqrt,
is_square, montcurve::curvegroup, safe_inverse, sqrt,
swcurve::affine::{Curve as SWCurve, Point as SWPoint},
tecurve::affine::{Curve as TECurve, Point as TEPoint},
ZETA,
tecurve::affine::{Curve as TECurve, Point as TEPoint}, ZETA,
};
use std::cmp::Eq;

Expand Down Expand Up @@ -223,8 +219,7 @@ pub mod curvegroup {
// All group operations are induced by those of the corresponding Twisted Edwards curve.
// See e.g. <https://eprint.iacr.org/2017/212.pdf> for details on the correspondences.
use crate::{
montcurve::affine,
swcurve::curvegroup::{Curve as SWCurve, Point as SWPoint},
montcurve::affine, swcurve::curvegroup::{Curve as SWCurve, Point as SWPoint},
tecurve::curvegroup::{Curve as TECurve, Point as TEPoint},
};
use std::cmp::Eq;
Expand Down
6 changes: 2 additions & 4 deletions src/tecurve.nr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ pub mod affine {
// See <https://eprint.iacr.org/2008/522.pdf> for details.
use crate::{
montcurve::affine::{Curve as MCurve, Point as MPoint},
swcurve::affine::{Curve as SWCurve, Point as SWPoint},
tecurve::curvegroup,
swcurve::affine::{Curve as SWCurve, Point as SWPoint}, tecurve::curvegroup,
};
use std::cmp::Eq;

Expand Down Expand Up @@ -199,8 +198,7 @@ pub mod curvegroup {
// See section 3 of <https://eprint.iacr.org/2008/522.pdf> for details.
use crate::{
montcurve::curvegroup::{Curve as MCurve, Point as MPoint},
swcurve::curvegroup::{Curve as SWCurve, Point as SWPoint},
tecurve::affine,
swcurve::curvegroup::{Curve as SWCurve, Point as SWPoint}, tecurve::affine,
};
use std::cmp::Eq;

Expand Down

0 comments on commit 89b85de

Please sign in to comment.