@Test
    public void generateKeyPairWithDefaultProvider_useWithConscrypt_works() throws Exception {
        KeyPairGenerator keyGen = KeyPairGenerator.getInstance("Ed25519");
        KeyPair keyPair = keyGen.generateKeyPair();

        byte[] message = new byte[123];
        Signature signature = Signature.getInstance("Ed25519", conscryptProvider);
        signature.initSign(keyPair.getPrivate());
        signature.update(message);
        byte[] sig = signature.sign();
        signature.initVerify(keyPair.getPublic());
        signature.update(message);
        assertTrue(signature.verify(sig));
    }
Implements a KeySpec that contains the raw bytes of a key.
common/src/test/java/org/conscrypt/EdDsaTest.java