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

Function towire_pubkey

bitcoin/pubkey.c:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void towire_pubkey(u8 **pptr, const struct pubkey *pubkey)
118{
119 u8 output[PUBKEY_CMPR_LEN];
120 size_t outputlen = sizeof(output);
121
122 secp256k1_ec_pubkey_serialize(secp256k1_ctx, output, &outputlen,
123 &pubkey->pubkey,
124 SECP256K1_EC_COMPRESSED);
125
126 towire(pptr, output, outputlen);
127}
128
129void fromwire_point32(const u8 **cursor, size_t *max, struct point32 *point32)
130{

Callers 4

towire_utxoFunction · 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