| 96 | static const struct privkey *ecdh_key; |
| 97 | |
| 98 | void ecdh(const struct pubkey *point, struct secret *ss) |
| 99 | { |
| 100 | if (secp256k1_ecdh(secp256k1_ctx, ss->data, &point->pubkey, |
| 101 | ecdh_key->secret.data, NULL, NULL) != 1) |
| 102 | abort(); |
| 103 | } |
| 104 | |
| 105 | static u8 *next_onion(const tal_t *ctx, u8 *omsg, |
| 106 | const struct privkey *nodekey, |