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

Function fromwire_point32

bitcoin/pubkey.c:129–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void fromwire_point32(const u8 **cursor, size_t *max, struct point32 *point32)
130{
131 u8 raw[32];
132
133 if (!fromwire(cursor, max, raw, sizeof(raw)))
134 return;
135
136 if (secp256k1_xonly_pubkey_parse(secp256k1_ctx,
137 &point32->pubkey,
138 raw) != 1) {
139 SUPERVERBOSE("not a valid point");
140 fromwire_fail(cursor, max);
141 }
142}
143
144void towire_point32(u8 **pptr, const struct point32 *point32)
145{

Callers

nothing calls this directly

Calls 2

fromwireFunction · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected