@Test public void success_Encode_4() { Coordinate coordinate1 = new CoordinateEd25519(new BigInteger("466061824698566712370651010976869652622695944005000025458774533499639142642")); EncodedCoordinate encoded = coordinate1.encode(); assertThat(HexEncoder.getString(encoded.getValue()), is("f29829ffdb3b229fd05dc7f83c1de7ab041cbbeb4156d7442f3e23de19c80701")); }
@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; }