net.i2p.crypto.eddsa.math

## Class Curve

- java.lang.Object
- - net.i2p.crypto.eddsa.math.Curve

- All Implemented Interfaces:
    Serializable

      public class Curve
      extends Object
      implements Serializable

  A twisted Edwards curve. Points on the curve satisfy $-x^2 + y^2 = 1 + d x^2y^2$
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Curve(Field f, byte[] d, FieldElement I)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `GroupElement` | `createPoint(byte[] P, boolean precompute)`
    `boolean` | `equals(Object o)`
    `FieldElement` | `get2D()`
    `FieldElement` | `getD()`
    `Field` | `getField()`
    `FieldElement` | `getI()`
    `GroupElement` | `getZero(GroupElement.Representation repr)`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Curve

          public Curve(Field f,
                       byte[] d,
                       FieldElement I)

  - ### Method Detail

    - #### createPoint

          public GroupElement createPoint(byte[] P,
                                          boolean precompute)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### get2D

          public FieldElement get2D()

    - #### getD

          public FieldElement getD()

    - #### getField

          public Field getField()

    - #### getI

          public FieldElement getI()

    - #### getZero

          public GroupElement getZero(GroupElement.Representation repr)

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`