secp256k1_ec_pubkey_serialize
, public API flags like SECP256K1_EC_COMPRESSED
are sometimes mistakingly passed to secp256k1_eckey_pubkey_serialize
in newly proposed code (this is currently the case for several modules in secp256k1-zkp, see https://github.com/BlockstreamResearch/secp256k1-zkp/pull/300), which is currently not detected. To avoid this in the future, a VERIFY_CHECK is added to check that the compressed
argument is either 0 or 1.