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

Function pubkey_cmp

bitcoin/pubkey.c:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84int pubkey_cmp(const struct pubkey *a, const struct pubkey *b)
85{
86 u8 keya[PUBKEY_CMPR_LEN], keyb[PUBKEY_CMPR_LEN];
87 pubkey_to_der(keya, a);
88 pubkey_to_der(keyb, b);
89 return memcmp(keya, keyb, sizeof(keya));
90}
91
92void pubkey_to_hash160(const struct pubkey *pk, struct ripemd160 *hash)
93{

Callers 5

bitcoin_redeem_2of2Function · 0.85
bitcoin_witness_2of2Function · 0.85
pubkey_idxFunction · 0.85
write_announceFunction · 0.85
write_updateFunction · 0.85

Calls 1

pubkey_to_derFunction · 0.85

Tested by

no test coverage detected