MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sphinx_path_new

Function sphinx_path_new

common/sphinx.c:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62struct 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
72struct sphinx_path *sphinx_path_new_with_key(const tal_t *ctx,
73 const u8 *associated_data,

Callers 5

send_paymentFunction · 0.85
json_createonionFunction · 0.85
json_sendonionmessageFunction · 0.85
sphinx_path_new_with_keyFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68