mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-19 13:04:37 +01:00
spec: import latest onionmessage spec, based on routeblinding.
This is from 6e99c5feaf60cb797507d181fe583224309318e9 We renamed the enctlv field to encrypted_recipient_data in the spec, and the new onion_message is message 513. We don't handle it until the next patch. Two renames: 1. blinding_seed -> blinding_point. 2. enctlv -> encrypted_recipient_data. We don't do a compat cycle for our JSON APIs for these experimental features only used by our own plugins, we just rename. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -64,7 +64,7 @@ send_onion_reply(struct command *cmd,
|
||||
json_add_pubkey(req->js, "id", &reply_path->path[i]->node_id);
|
||||
|
||||
omp = tlv_obs2_onionmsg_payload_new(tmpctx);
|
||||
omp->enctlv = reply_path->path[i]->enctlv;
|
||||
omp->enctlv = reply_path->path[i]->encrypted_recipient_data;
|
||||
|
||||
/* Put payload in last hop. */
|
||||
if (i == nhops - 1) {
|
||||
@@ -227,7 +227,7 @@ static void json_add_onionmsg_path(struct json_stream *js,
|
||||
{
|
||||
json_object_start(js, fieldname);
|
||||
json_add_pubkey(js, "node_id", &path->node_id);
|
||||
json_add_hex_talarr(js, "enctlv", path->enctlv);
|
||||
json_add_hex_talarr(js, "encrypted_recipient_data", path->encrypted_recipient_data);
|
||||
if (payinfo) {
|
||||
json_add_u32(js, "fee_base_msat", payinfo->fee_base_msat);
|
||||
json_add_u32(js, "fee_proportional_millionths",
|
||||
|
||||
Reference in New Issue
Block a user