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