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

Function pubkey_cmp

bitcoin/pubkey.c:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

bitcoin_redeem_2of2Function · 0.85
bitcoin_witness_2of2Function · 0.85
pubkey_idxFunction · 0.85

Calls 1

pubkey_to_derFunction · 0.70

Tested by

no test coverage detected