| 63 | } |
| 64 | |
| 65 | char *fmt_pubkey(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 | |
| 73 | char *fmt_secp256k1_pubkey(const tal_t *ctx, const secp256k1_pubkey *key) |
| 74 | { |