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