MCPcopy Create free account
hub / github.com/ElementsProject/lightning / tlv

Function tlv

common/test/run-bolt12_merkle-partial.c:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static 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. */
86static u8 *ordered(const struct sha256 *a, const struct sha256 *b)

Callers 1

mainFunction · 0.70

Calls 2

towire_bigsizeFunction · 0.70
towireFunction · 0.70

Tested by

no test coverage detected