-
Notifications
You must be signed in to change notification settings - Fork 364
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
Compact BlindedPath
representation for onion messaging
#2921
Comments
To forward such messages, However, this will not work for unannounced channels since they aren't in the
I've been leaning towards either (3) or (4) as the other solutions don't seem ideal. But (3b) may not be very feasible as currently Another concern for either (3) or (4) is whether this mapping should be maintained inside @valentinewallace @TheBlueMatt Any strong preference on these approaches or any alternative approach? |
I think I like (3a). That way we don't have to pass in a full mapping, there can just be an Arguably could add the method to |
|
Nice, I didn't notice
The issue with extending |
Note that for (4) we could combine the It feels a little weird having such a method on |
IMO peel_onion_message can just return an scid or node_id as needed, probably preferable to passing in another trait to it anyway. |
That's....a lot of type indirection just to pass a function pointer to the |
Ah, are you suggesting having What we do for |
Yeah, it does look pretty annoying to adapt |
Fixed now that #3132 allows paying compact blinded paths when the payer is the introduction node. |
BOLT 12 defines a compact representation for
BlindedPath
s, which usesshort_channel_id
in place ofnext_node_id
for use in anOnionMessage
packet's hop data: lightning/bolts@ba2b95aAdditionally, the blinded path's introduction node can use a short channel id with a direction byte: lightning/bolts@3db064e
TODO:
BlindedPath
that uses a directed scid introduction node Compact blinded path creation #3011BlindedPath
that uses a directed scid introduction nodeBlindedPath
that uses a directed scid introduction nodeBlindedPath
introduction nodeBlindedHop::encrypted_payload
that use an scid as the next hop Compact blinded path creation #3011ForwardTlvs
that use an scid as the next hopPeeledOnion::Forward
Related issues:
OnionMessage
using aBlindedPath
that has the sender as introduction node correctly Fix sender is the introduction node onion messages #2951BlindedPath
that has the payer as the introduction node Blinded paths with unannounced introduction nodes #3132The text was updated successfully, but these errors were encountered: