| 70 | } |
| 71 | |
| 72 | struct sphinx_path *sphinx_path_new_with_key(const tal_t *ctx, |
| 73 | const u8 *associated_data, |
| 74 | const struct secret *session_key) |
| 75 | { |
| 76 | struct sphinx_path *sp = sphinx_path_new(ctx, associated_data); |
| 77 | sp->session_key = tal_dup(sp, struct secret, session_key); |
| 78 | return sp; |
| 79 | } |
| 80 | |
| 81 | bool sphinx_path_set_rendezvous(struct sphinx_path *sp, |
| 82 | const struct node_id *rendezvous_id) |