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

Function pubkey_to_hexstr

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

Source from the content-addressed store, hash-verified

63}
64
65char *pubkey_to_hexstr(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}
72REGISTER_TYPE_TO_STRING(pubkey, pubkey_to_hexstr);
73
74static char *secp256k1_pubkey_to_hexstr(const tal_t *ctx, const secp256k1_pubkey *key)

Callers 3

mainFunction · 0.85
mainFunction · 0.85
decompressFunction · 0.85

Calls 2

tal_hexstrFunction · 0.85
pubkey_to_derFunction · 0.70

Tested by

no test coverage detected