@Test public void success_Encode_1() { Coordinate coordinate1 = new CoordinateEd25519(new BigInteger("1073164242609237669094038971348660945523306704071742924708751717996060223455")); EncodedCoordinate encoded = coordinate1.encode(); assertThat(HexEncoder.getString(encoded.getValue()), is("df2780568c569c6713ed48bc7d96e04a93fdda45237bfc34afe40518b2635f02")); }
@Override public EncodedCoordinate encode() { byte[] seed = ByteUtils.reverse(ArrayUtils.toByteArray(value, 32)); return new EncodedCoordinateEd25519(seed); }
CoordinateEd25519 extends Coordinate { @Override public EncodedCoordinate encode() { byte[] seed = ByteUtils.reverse(ArrayUtils.toByteArray(value, 32)); return new EncodedCoordinateEd25519(seed); } }
CoordinateEd25519 extends Coordinate { @Override public EncodedCoordinate encode() { byte[] seed = ByteUtils.reverse(ArrayUtils.toByteArray(value, 32)); return new EncodedCoordinateEd25519(seed); } CoordinateEd25519(BigInteger integer); }
CoordinateEd25519 extends Coordinate { @Override public EncodedCoordinate encode() { byte[] seed = ByteUtils.reverse(ArrayUtils.toByteArray(value, 32)); return new EncodedCoordinateEd25519(seed); } CoordinateEd25519(BigInteger integer); @Override final Coordinate add(Coordinate val); @Override final Coordinate divide(Coordinate val); @Override final Coordinate multiply(Coordinate val); @Override final Coordinate subtract(Coordinate val); @Override final Coordinate mod(); @Override final Coordinate inverse(); @Override Coordinate powerMod(BigInteger exponent); @Override Coordinate negate(); @Override EncodedCoordinate encode(); }
CoordinateEd25519 extends Coordinate { @Override public EncodedCoordinate encode() { byte[] seed = ByteUtils.reverse(ArrayUtils.toByteArray(value, 32)); return new EncodedCoordinateEd25519(seed); } CoordinateEd25519(BigInteger integer); @Override final Coordinate add(Coordinate val); @Override final Coordinate divide(Coordinate val); @Override final Coordinate multiply(Coordinate val); @Override final Coordinate subtract(Coordinate val); @Override final Coordinate mod(); @Override final Coordinate inverse(); @Override Coordinate powerMod(BigInteger exponent); @Override Coordinate negate(); @Override EncodedCoordinate encode(); static final CoordinateEd25519 ONE; }