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

Function pubkey_idx

bitcoin/pubkey.h:52–55  ·  view source on GitHub ↗

If the two pubkeys[] are id1 and id2, which index would id1 be? */

Source from the content-addressed store, hash-verified

50
51/* If the two pubkeys[] are id1 and id2, which index would id1 be? */
52static inline int pubkey_idx(const struct pubkey *id1, const struct pubkey *id2)
53{
54 return pubkey_cmp(id1, id2) > 0;
55}
56
57/**
58 * pubkey_to_hash160 - Get the hash for p2pkh payments for a given pubkey

Callers 2

derive_channel_id_v2Function · 0.85
mainFunction · 0.85

Calls 1

pubkey_cmpFunction · 0.85

Tested by

no test coverage detected