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

Function txid_hash

lightningd/watch.c:108–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108size_t txid_hash(const struct bitcoin_txid *txid)
109{
110 return siphash24(siphash_seed(),
111 txid->shad.sha.u.u8, sizeof(txid->shad.sha.u.u8));
112}
113
114bool txwatch_eq(const struct txwatch *w, const struct bitcoin_txid *txid)
115{

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected