| 573 | } |
| 574 | |
| 575 | static void node_id_from_point32(struct node_id *nid, |
| 576 | const struct point32 *node32_id, |
| 577 | enum nodeid_parity parity) |
| 578 | { |
| 579 | assert(parity == SECP256K1_TAG_PUBKEY_EVEN |
| 580 | || parity == SECP256K1_TAG_PUBKEY_ODD); |
| 581 | nid->k[0] = parity; |
| 582 | secp256k1_xonly_pubkey_serialize(secp256k1_ctx, nid->k+1, |
| 583 | &node32_id->pubkey); |
| 584 | } |
| 585 | |
| 586 | /* Create path to node which can carry onion messages (including |
| 587 | * self); if it can't find one, returns NULL. Fills in nodeid_parity |
no outgoing calls
no test coverage detected