| 84 | REGISTER_TYPE_TO_STRING(secp256k1_pubkey, secp256k1_pubkey_to_hexstr); |
| 85 | |
| 86 | int pubkey_cmp(const struct pubkey *a, const struct pubkey *b) |
| 87 | { |
| 88 | u8 keya[33], keyb[33]; |
| 89 | pubkey_to_der(keya, a); |
| 90 | pubkey_to_der(keyb, b); |
| 91 | return memcmp(keya, keyb, sizeof(keya)); |
| 92 | } |
| 93 | |
| 94 | void pubkey_to_hash160(const struct pubkey *pk, struct ripemd160 *hash) |
| 95 | { |
no test coverage detected