| 434 | } |
| 435 | |
| 436 | static bool payer_key(struct lightningd *ld, |
| 437 | const u8 *public_tweak, size_t public_tweak_len, |
| 438 | struct pubkey *key) |
| 439 | { |
| 440 | struct sha256 tweakhash; |
| 441 | |
| 442 | *key = ld->our_pubkey; |
| 443 | bolt12_alias_tweak(&ld->nodealias_base, |
| 444 | public_tweak, public_tweak_len, |
| 445 | &tweakhash); |
| 446 | |
| 447 | return secp256k1_ec_pubkey_tweak_add(secp256k1_ctx, |
| 448 | &key->pubkey, |
| 449 | tweakhash.u.u8) == 1; |
| 450 | } |
| 451 | |
| 452 | static void json_populate_invreq(struct json_stream *response, |
| 453 | const struct sha256 *invreq_id, |
no test coverage detected