@Test public void success_GeneratePrivateKey_from_hexString() { String hexStr = "ab4195d4123f0594e5341c45134c5938cc5913d34aa951234c5938cc2a6eb487"; byte[] result = HexEncoder.getBytes(hexStr); assertThat(result.length, is(32)); PrivateKey privateKey = PrivateKeyEd25519.fromHexString(hexStr); byte[] raw = privateKey.getRaw(); assertThat(raw, is(result)); }
public static PrivateKey fromHexString(String hexString) { return new PrivateKeyEd25519(HexEncoder.getBytes(hexString)); }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromHexString(String hexString) { return new PrivateKeyEd25519(HexEncoder.getBytes(hexString)); } }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromHexString(String hexString) { return new PrivateKeyEd25519(HexEncoder.getBytes(hexString)); } private  PrivateKeyEd25519(byte[] value); }
PrivateKeyEd25519 extends PrivateKey { public static PrivateKey fromHexString(String hexString) { return new PrivateKeyEd25519(HexEncoder.getBytes(hexString)); } 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 fromHexString(String hexString) { return new PrivateKeyEd25519(HexEncoder.getBytes(hexString)); } private  PrivateKeyEd25519(byte[] value); static PrivateKey fromHexString(String hexString); static PrivateKey fromBytes(byte[] bytes); static PrivateKey random(); @Override BigInteger getScalarSeed(HashDelegate hashDelegate);  }