private static OpenSSLKey verifyKey(OpenSSLKey key) throws InvalidKeyException {
        int pkeyType = NativeCrypto.EVP_PKEY_type(key.getNativeRef());
        if (pkeyType != NativeConstants.EVP_PKEY_ED25519) {
            throw new InvalidKeyException("Non-ED25519 key used to initialize ED25519 signature.");
        }
        return key;
    }
The current OpenSSL key we're operating on.
common/src/main/java/org/conscrypt/OpenSslSignatureEdDsa.java