| 416 | } |
| 417 | |
| 418 | void json_add_point32(struct json_stream *response, |
| 419 | const char *fieldname, |
| 420 | const struct point32 *key) |
| 421 | { |
| 422 | u8 output[32]; |
| 423 | |
| 424 | secp256k1_xonly_pubkey_serialize(secp256k1_ctx, output, &key->pubkey); |
| 425 | json_add_hex(response, fieldname, output, sizeof(output)); |
| 426 | } |
| 427 | |
| 428 | void json_add_bip340sig(struct json_stream *response, |
| 429 | const char *fieldname, |
no test coverage detected