@Test public void success_GeneratePrivateKey_from_all_zero_byte_array() { PrivateKey privateKey = PrivateKeyEd25519.fromBytes(new byte[32]); assertThat(privateKey.getInteger(), is(new BigInteger(1, new byte[32]))); assertThat(privateKey.getInteger(), is(new BigInteger("00"))); assertThat(privateKey.getRaw(), is(ByteUtils.paddingZeroOnHead(new BigInteger("00").toByteArray(), 32))); }
public static PrivateKey fromBytes(byte[] bytes) { return new PrivateKeyEd25519(bytes); }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromBytes(byte[] bytes) { return new PrivateKeyEd25519(bytes); } }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromBytes(byte[] bytes) { return new PrivateKeyEd25519(bytes); } private  PrivateKeyEd25519(byte[] value); }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromBytes(byte[] bytes) { return new PrivateKeyEd25519(bytes); } private  PrivateKeyEd25519(byte[] value); static PrivateKey fromHexString(String hexString); static PrivateKey fromBytes(byte[] bytes); static PrivateKey random(); @Override BigInteger getScalarSeed(HashDelegate hashDelegate); }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromBytes(byte[] bytes) { return new PrivateKeyEd25519(bytes); } private  PrivateKeyEd25519(byte[] value); static PrivateKey fromHexString(String hexString); static PrivateKey fromBytes(byte[] bytes); static PrivateKey random(); @Override BigInteger getScalarSeed(HashDelegate hashDelegate);  }