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

Function fmt_pubkey

bitcoin/pubkey.c:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65char *fmt_pubkey(const tal_t *ctx, const struct pubkey *key)
66{
67 unsigned char der[PUBKEY_CMPR_LEN];
68
69 pubkey_to_der(der, key);
70 return tal_hexstr(ctx, der, sizeof(der));
71}
72
73char *fmt_secp256k1_pubkey(const tal_t *ctx, const secp256k1_pubkey *key)
74{

Callers 15

act_two_initiator2Function · 0.85
act_one_initiatorFunction · 0.85
act_two_responderFunction · 0.85
act_one_responder2Function · 0.85
dump_commitments_infosFunction · 0.85
guess_to_remoteFunction · 0.85
derive_to_remoteFunction · 0.85
print_node_idFunction · 0.85
handle_our_unilateralFunction · 0.85
handle_their_cheatFunction · 0.85
handle_their_unilateralFunction · 0.85
mainFunction · 0.85

Calls 2

pubkey_to_derFunction · 0.85
tal_hexstrFunction · 0.85

Tested by 6

mainFunction · 0.68
mainFunction · 0.68
json_pubkeyFunction · 0.68
pubkey_for_letterFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68