Parse a 64-byte bip340 signature from a JSON hex token. */
| 175 | |
| 176 | /* Parse a 64-byte bip340 signature from a JSON hex token. */ |
| 177 | static bool json_to_bip340sig(const char *buf, const jsmntok_t *tok, |
| 178 | struct bip340sig *sig) |
| 179 | { |
| 180 | return hex_decode(buf + tok->start, tok->end - tok->start, |
| 181 | sig->u8, sizeof(sig->u8)); |
| 182 | } |
| 183 | |
| 184 | static void json_add_tlv_arr_level(struct json_stream *js, |
| 185 | const char *fieldname, |
no test coverage detected