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

Function sphinx_path_new_with_key

common/sphinx.c:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72struct 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
81bool sphinx_path_set_rendezvous(struct sphinx_path *sp,
82 const struct node_id *rendezvous_id)

Callers 4

json_createonionFunction · 0.85
mainFunction · 0.85
do_generateFunction · 0.85
runtestFunction · 0.85

Calls 1

sphinx_path_newFunction · 0.85

Tested by 1

mainFunction · 0.68