| 60 | }; |
| 61 | |
| 62 | struct sphinx_path *sphinx_path_new(const tal_t *ctx, const u8 *associated_data) |
| 63 | { |
| 64 | struct sphinx_path *sp = tal(ctx, struct sphinx_path); |
| 65 | sp->associated_data = tal_dup_talarr(sp, u8, associated_data); |
| 66 | sp->session_key = NULL; |
| 67 | sp->rendezvous_id = NULL; |
| 68 | sp->hops = tal_arr(sp, struct sphinx_hop, 0); |
| 69 | return sp; |
| 70 | } |
| 71 | |
| 72 | struct sphinx_path *sphinx_path_new_with_key(const tal_t *ctx, |
| 73 | const u8 *associated_data, |
no outgoing calls