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

Function outpoint_hash

wallet/txfilter.c:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <wallet/wallet.h>
7
8static size_t outpoint_hash(const struct bitcoin_outpoint *out)
9{
10 struct siphash24_ctx ctx;
11 siphash24_init(&ctx, siphash_seed());
12 siphash24_update(&ctx, &out->txid, sizeof(out->txid));
13 siphash24_u32(&ctx, out->n);
14 return siphash24_done(&ctx);
15}
16
17static const struct bitcoin_outpoint *outpoint_keyof(const struct bitcoin_outpoint *out)
18{

Callers

nothing calls this directly

Calls 5

siphash24_initFunction · 0.85
siphash24_updateFunction · 0.85
siphash24_u32Function · 0.85
siphash24_doneFunction · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected