Browse Source

Enforce that Fr of Engine is the scalar for curve points, for simpler downstream abstractions.

master
Sean Bowe 7 years ago
parent
commit
471db6ab27
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
  1. 4
      src/lib.rs

4
src/lib.rs

@ -97,7 +97,7 @@ pub trait CurveProjective: PartialEq +
rand::Rand +
'static
{
type Engine: Engine;
type Engine: Engine<Fr=Self::Scalar>;
type Scalar: PrimeField;
type Base: SqrtField;
type Affine: CurveAffine<Projective=Self, Scalar=Self::Scalar>;
@ -166,7 +166,7 @@ pub trait CurveAffine: Copy +
Eq +
'static
{
type Engine: Engine;
type Engine: Engine<Fr=Self::Scalar>;
type Scalar: PrimeField;
type Base: SqrtField;
type Projective: CurveProjective<Affine=Self, Scalar=Self::Scalar>;

Loading…
Cancel
Save