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