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

Function outpoint_hash

plugins/bwatch/bwatch_store.c:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37size_t outpoint_hash(const struct bitcoin_outpoint *outpoint)
38{
39 size_t h1 = siphash24(siphash_seed(), &outpoint->txid, sizeof(outpoint->txid));
40 size_t h2 = siphash24(siphash_seed(), &outpoint->n, sizeof(outpoint->n));
41 return h1 ^ h2;
42}
43
44bool outpoint_watch_eq(const struct watch *w, const struct bitcoin_outpoint *outpoint)
45{

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected