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

Function hash_cid

lightningd/closed_channel.c:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <lightningd/lightningd.h>
7
8size_t hash_cid(const struct channel_id *cid)
9{
10 return siphash24(siphash_seed(), cid->id, sizeof(cid->id));
11}
12
13static void json_add_closed_channel(struct json_stream *response,
14 const char *fieldname,

Callers

nothing calls this directly

Calls 2

siphash24Function · 0.85
siphash_seedClass · 0.50

Tested by

no test coverage detected