| 127 | } |
| 128 | |
| 129 | void 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 | |
| 144 | void towire_point32(u8 **pptr, const struct point32 *point32) |
| 145 | { |
nothing calls this directly
no test coverage detected