| 656 | } |
| 657 | |
| 658 | bool json_to_preimage(const char *buffer, const jsmntok_t *tok, struct preimage *preimage) |
| 659 | { |
| 660 | size_t hexlen = tok->end - tok->start; |
| 661 | return hex_decode(buffer + tok->start, hexlen, preimage->r, sizeof(preimage->r)); |
| 662 | } |
| 663 | |
| 664 | struct wally_psbt *json_to_psbt(const tal_t *ctx, const char *buffer, |
| 665 | const jsmntok_t *tok) |
no test coverage detected