| 86 | } |
| 87 | |
| 88 | u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len) |
| 89 | { |
| 90 | u8 *data = tal_arr(ctx, u8, hex_data_size(len)); |
| 91 | if (!hex_decode(str, len, data, hex_data_size(len))) |
| 92 | return NULL; |
| 93 | return data; |
| 94 | } |
| 95 | |
| 96 | static void destroy_munlock(const tal_t *ptr) |
| 97 | { |