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

Function script_with_len_hash

bitcoin/script.c:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#define OP_PUSHBYTES(val) (val)
16
17size_t script_with_len_hash(const struct script_with_len *swl)
18{
19 return siphash24(siphash_seed(), swl->script, swl->len);
20}
21
22bool script_with_len_eq(const struct script_with_len *a,
23 const struct script_with_len *b)

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected