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

Function fromwire_pubkey

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

Source from the content-addressed store, hash-verified

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

Callers 10

runFunction · 0.85
runFunction · 0.85
fromwire_utxoFunction · 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