Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offers: Update to include sciddir_or_pubkey, for introduction point in blinded path. #7212

Merged

Conversation

rustyrussell
Copy link
Contributor

Turns out to be pretty easy to use, once we do all the plumbing (and some simplification along the way!)

@rustyrussell rustyrussell added this to the v24.05 milestone Apr 12, 2024
@rustyrussell rustyrussell requested a review from cdecker as a code owner April 12, 2024 04:36
@rustyrussell rustyrussell force-pushed the guilt/offers-scid-or-pubkey branch from 901167f to 30afcd1 Compare April 12, 2024 07:05
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

======================== 1 passed, 3 warnings in 6.78s =========================
make[1]: Leaving directory '/home/runner/work/lightning/lightning/contrib/pyln-testing'
common/sciddir_or_pubkey.c:1: includes out of order
#include "config.h"
#include <assert.h>
#include <common/sciddir_or_pubkey.h>
#include <common/node_id.h>
#include <wire/wire.h>
VERSUS
#include "config.h"
#include <assert.h>
#include <common/node_id.h>
#include <common/sciddir_or_pubkey.h>
#include <wire/wire.h>
rm external/build-x86_64-linux-gnu/libwally-core-build/src/secp256k1/libsecp256k1.la
make: *** [Makefile:477: check-src-include-order/common/sciddir_or_pubkey.c] Error 1

@rustyrussell rustyrussell force-pushed the guilt/offers-scid-or-pubkey branch 5 times, most recently from 445a82d to 1539ea1 Compare April 25, 2024 02:42
@rustyrussell rustyrussell force-pushed the guilt/offers-scid-or-pubkey branch from 1539ea1 to 8c9579d Compare May 9, 2024 02:54
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This is proposed to be added to bolt 12, so we need a type to
represent it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
… plugin.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…we're the only user.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
It's fairly obscure, and let's not make everyone link it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
We don't actually support it yet, but this threads through the type change,
puts it in "decode" etc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/offers-scid-or-pubkey branch from 8c9579d to 12e3965 Compare May 9, 2024 03:36
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-EXPERIMENTAL: offers: we now understand blinded paths which use a short-channel-id(+direction) as entry point.
Print the first_node_id field, and do it all on one line per path.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/offers-scid-or-pubkey branch from 12e3965 to f6e5a6c Compare May 9, 2024 04:42
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f6e5a6c

Really nice!

@@ -1761,12 +1761,14 @@ static void payment_add_blindedpath(const tal_t *ctx,
const u8 *cursor = tlvs[i];
size_t max = tal_bytelen(tlvs[i]);
/* First one has to use real node_id */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is now a bit ambiguous. Maybe "entry node cannot be blinded"?

"first_scid": {
"added": "v23.05",
"type": "short_channel_id",
"description": "the short channel id of the start of the path (alternative to first_n ode_id)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"description": "the short channel id of the start of the path (alternative to first_n ode_id)"
"description": "the short channel id of the start of the path (alternative to first_node_id)"

@rustyrussell rustyrussell merged commit 8027922 into ElementsProject:master May 13, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants