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

Function equal

tests/fuzz/fuzz-wire-tx_signatures.c:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static bool equal(const struct tx_signatures *x, const struct tx_signatures *y)
52{
53 size_t upto_witnesses = (uintptr_t)&x->witnesses - (uintptr_t)x;
54 if (memcmp(x, y, upto_witnesses) != 0)
55 return false;
56
57 if (!witnesses_equal(x->witnesses, y->witnesses))
58 return false;
59
60 assert(x->tlvs && y->tlvs);
61 return tal_arr_eq(x->tlvs->shared_input_signature,
62 y->tlvs->shared_input_signature);
63}
64
65void run(const u8 *data, size_t size)
66{

Callers

nothing calls this directly

Calls 1

witnesses_equalFunction · 0.85

Tested by

no test coverage detected