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

Function towire_pubkey

bitcoin/pubkey.c:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void towire_pubkey(u8 **pptr, const struct pubkey *pubkey)
116{
117 u8 output[PUBKEY_CMPR_LEN];
118 size_t outputlen = sizeof(output);
119
120 secp256k1_ec_pubkey_serialize(secp256k1_ctx, output, &outputlen,
121 &pubkey->pubkey,
122 SECP256K1_EC_COMPRESSED);
123
124 towire(pptr, output, outputlen);
125}

Callers 6

towire_hsm_utxoFunction · 0.85
towire_inflightFunction · 0.85
towire_sciddir_or_pubkeyFunction · 0.85
towire_added_htlcFunction · 0.85
towire_existing_htlcFunction · 0.85
towire_basepointsFunction · 0.85

Calls 1

towireFunction · 0.50

Tested by

no test coverage detected