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

Function hash_payment_hash

lightningd/htlc_set.h:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static inline size_t hash_payment_hash(const struct sha256 *payment_hash)
42{
43 return siphash24(siphash_seed(), payment_hash, sizeof(&payment_hash));
44}
45
46static inline bool htlc_set_eq(const struct htlc_set *set,
47 const struct sha256 *payment_hash)

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected