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

Function json_add_onionmsg_path

plugins/offers.c:758–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758static void json_add_onionmsg_path(struct json_stream *js,
759 const char *fieldname,
760 const struct blinded_path_hop *hop)
761{
762 json_object_start(js, fieldname);
763 json_add_pubkey(js, "blinded_node_id", &hop->blinded_node_id);
764 json_add_hex_talarr(js, "encrypted_recipient_data", hop->encrypted_recipient_data);
765 json_object_end(js);
766}
767
768/* Returns true if valid */
769static 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