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

Function txo_hash

lightningd/watch.c:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83size_t txo_hash(const struct bitcoin_outpoint *out)
84{
85 /* This hash-in-one-go trick only works if they're consecutive. */
86 BUILD_ASSERT(offsetof(struct bitcoin_outpoint, n)
87 == sizeof(((struct bitcoin_outpoint *)NULL)->txid));
88 return siphash24(siphash_seed(), out,
89 sizeof(out->txid) + sizeof(out->n));
90}
91
92bool txowatch_eq(const struct txowatch *w, const struct bitcoin_outpoint *out)
93{

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected