<BUG>private final FieldElement I;
private final FieldElement one;</BUG>
private final GroupElement zeroP2;
private final GroupElement zeroP3;
private final GroupElement zeroPrecomp;
<BUG>public Curve(Field f, BigInteger d) {
</BUG>
this.f = f;
<BUG>this.d = fromBigInteger(d);

this.d2 = this.d.add(this.d);
this.I = fromBigInteger(Constants.TWO).modPow(f.getQ().subtract(Constants.ONE).divide(Constants.FOUR), f.getQ());
FieldElement zero = fromBigInteger(Constants.ZERO);
one = fromBigInteger(Constants.ONE);</BUG>
zeroP2 = GroupElement.p2(this, zero, one, one);

package net.i2p.crypto.eddsa.math;
import java.io.Serializable;
public class Curve implements Serializable {
private static final long serialVersionUID = 4578920872509827L;
private final Field f;
private final FieldElement d;
private final FieldElement d2;
private final GroupElement zeroP2;
private final GroupElement zeroP3;
private final GroupElement zeroPrecomp;
public Curve(Field f, byte[] d) {
this.f = f;
this.d = f.fromByteArray(d);
