| 115 | } |
| 116 | |
| 117 | static u8 *enctlv_from_encmsg(const tal_t *ctx, |
| 118 | const struct privkey *blinding, |
| 119 | const struct pubkey *node, |
| 120 | const struct tlv_encrypted_data_tlv *encmsg, |
| 121 | struct privkey *next_blinding, |
| 122 | struct pubkey *node_alias) |
| 123 | { |
| 124 | u8 *encmsg_raw = tal_arr(NULL, u8, 0); |
| 125 | towire_tlv_encrypted_data_tlv(&encmsg_raw, encmsg); |
| 126 | return enctlv_from_encmsg_raw(ctx, blinding, node, take(encmsg_raw), |
| 127 | next_blinding, node_alias); |
| 128 | } |
| 129 | |
| 130 | bool unblind_onion(const struct pubkey *blinding, |
| 131 | void (*ecdh)(const struct pubkey *point, struct secret *ss), |
no test coverage detected