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

Function fromwire_pubkey

bitcoin/pubkey.c:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void fromwire_pubkey(const u8 **cursor, size_t *max, struct pubkey *pubkey)
103{
104 u8 der[PUBKEY_CMPR_LEN];
105
106 if (!fromwire(cursor, max, der, sizeof(der)))
107 return;
108
109 if (!pubkey_from_der(der, sizeof(der), pubkey)) {
110 SUPERVERBOSE("not a valid point");
111 fromwire_fail(cursor, max);
112 }
113}
114
115void towire_pubkey(u8 **pptr, const struct pubkey *pubkey)
116{

Callers 11

fromwire_hsm_utxoFunction · 0.85
fromwire_inflightFunction · 0.85
runFunction · 0.85
runFunction · 0.85
parse_onionpacketFunction · 0.85
fromwire_added_htlcFunction · 0.85
fromwire_existing_htlcFunction · 0.85
fromwire_basepointsFunction · 0.85

Calls 3

pubkey_from_derFunction · 0.85
fromwireFunction · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected