| 63 | } |
| 64 | |
| 65 | char *pubkey_to_hexstr(const tal_t *ctx, const struct pubkey *key) |
| 66 | { |
| 67 | unsigned char der[PUBKEY_CMPR_LEN]; |
| 68 | |
| 69 | pubkey_to_der(der, key); |
| 70 | return tal_hexstr(ctx, der, sizeof(der)); |
| 71 | } |
| 72 | REGISTER_TYPE_TO_STRING(pubkey, pubkey_to_hexstr); |
| 73 | |
| 74 | static char *secp256k1_pubkey_to_hexstr(const tal_t *ctx, const secp256k1_pubkey *key) |
no test coverage detected