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

Function pubkey_idx

bitcoin/pubkey.h:46–49  ·  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

44
45/* If the two pubkeys[] are id1 and id2, which index would id1 be? */
46static inline int pubkey_idx(const struct pubkey *id1, const struct pubkey *id2)
47{
48 return pubkey_cmp(id1, id2) > 0;
49}
50
51/**
52 * 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