PrivateKeyEd25519 extends PrivateKey { public static PrivateKey random() { byte[] seed = new byte[32]; SecureRandom random = new SecureRandom(); random.nextBytes(seed); return new PrivateKeyEd25519(seed); } private  PrivateKeyEd25519(byte[] value); static PrivateKey fromHexString(String hexString); static PrivateKey fromBytes(byte[] bytes); static PrivateKey random(); @Override BigInteger getScalarSeed(HashDelegate hashDelegate);  }
@Test public void success_GeneratePrivateKey_from_random() { PrivateKey privateKey = PrivateKeyEd25519.random(); assertNotNull(privateKey); }