ECDSA public keys seem to always start with
0x05 1, followed by either 32 bytes of 64 bytes.
However, I encounter some public keys prefixed with
For example, the source output of transaction 5c7c65bb950d3605cc67bd02c29e84cc14dfaa80626ef6a575132c7ce7979d2f contains two public keys:
When fed into
EC_KEY_oct2key function from OpenSSL 1.1.1, the second public key directly fails.
Another example is transaction f0020466ca75caa648cdc8364f297bda7bb06329bec5305ffb59ea2ea348ac39, which uses an output that lists a public key like this:
0x00 public keys seem to always come with
OP_CHECKMULTISIG and never block validation because some other public key would be valid.
What are these keys and what should a client do with them?