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

Function sphinx_path_new_with_key

common/sphinx.c:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74struct 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
84bool sphinx_path_set_rendezvous(struct sphinx_path *sp,
85 const struct node_id *rendezvous_id)

Callers 5

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

Calls 1

sphinx_path_newFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68