private ECPoint getPublicKey() {
        final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group,
                new NativeRef.EC_POINT(NativeCrypto.EC_KEY_get_public_key(key.getNativeRef())));

        return pubKey.getECPoint();
    }
An implementation of a {@link java.security.PublicKey} for EC keys based on BoringSSL.
common/src/main/java/org/conscrypt/OpenSSLECPublicKey.java