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

Function json_add_onionmsg_path

plugins/offers.c:756–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756static void json_add_onionmsg_path(struct json_stream *js,
757 const char *fieldname,
758 const struct blinded_path_hop *hop)
759{
760 json_object_start(js, fieldname);
761 json_add_pubkey(js, "blinded_node_id", &hop->blinded_node_id);
762 json_add_hex_talarr(js, "encrypted_recipient_data", hop->encrypted_recipient_data);
763 json_object_end(js);
764}
765
766/* Returns true if valid */
767static bool json_add_blinded_paths(struct command *cmd,

Callers 1

json_add_blinded_pathsFunction · 0.85

Calls 4

json_object_startFunction · 0.85
json_add_pubkeyFunction · 0.85
json_add_hex_talarrFunction · 0.85
json_object_endFunction · 0.85

Tested by

no test coverage detected