| 73 | } |
| 74 | |
| 75 | static u8 *tlv(u64 type, const void *contents, size_t len) |
| 76 | { |
| 77 | u8 *ret = tal_arr(tmpctx, u8, 0); |
| 78 | |
| 79 | towire_bigsize(&ret, type); |
| 80 | towire_bigsize(&ret, len); |
| 81 | towire(&ret, contents, len); |
| 82 | return ret; |
| 83 | } |
| 84 | |
| 85 | /* Concatenate these two in lesser, greater order. */ |
| 86 | static u8 *ordered(const struct sha256 *a, const struct sha256 *b) |
no test coverage detected