You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this was added I figured we should be conservative to avoid users logging exact forwarding history (this is bad for network-wide privacy!) but that doesn't mean important info isn't missing from them that users will want. Ultimately I think we have to air on the side of features, not privacy, sadly - while we shouldn't bother to include the payment hash, I think, we should include things like the source + sink nodes/channels in the event.
Do we want the source key to be a PublicKey type or HTLCSource type? Don't have easy access to data for both so I think we'll have to move things around a bit. Also could you please elaborate a little on what sink nodes and sink channels are?
No, HTLCSource is an internal type with a bunch of additional data and cryptographic material we need to fail backwards. We'll want to use a PublicKey and/or channel id (as a [u8; 32]) maybe both.
I've been working on this and am nearing completion. There is one bug (unexpected behaviour?) which is causing a few tests to fail so maybe you could help out. Please refer to these comments: Comment one Comment two
You may want to take a look at #1231, which had actually implemented that half as well, but wasn't actively being worked on. Should be able to copy a bunch of that work.
Activity
atalw commentedon Mar 29, 2022
Do we want the source key to be a
PublicKeytype orHTLCSourcetype? Don't have easy access to data for both so I think we'll have to move things around a bit. Also could you please elaborate a little on what sink nodes and sink channels are?TheBlueMatt commentedon Mar 29, 2022
No,
HTLCSourceis an internal type with a bunch of additional data and cryptographic material we need to fail backwards. We'll want to use aPublicKeyand/or channel id (as a[u8; 32]) maybe both.keyuebao commentedon Mar 29, 2022
Having a channel id here would be super helpful 👍
atalw commentedon Apr 4, 2022
I've been working on this and am nearing completion. There is one bug (unexpected behaviour?) which is causing a few tests to fail so maybe you could help out. Please refer to these comments:
Comment one
Comment two
TheBlueMatt commentedon Apr 20, 2022
We should still expose the destination/sink channel id, #1419 only exposed the source.
atalw commentedon Apr 20, 2022
I'll add that next!
TheBlueMatt commentedon Apr 20, 2022
You may want to take a look at #1231, which had actually implemented that half as well, but wasn't actively being worked on. Should be able to copy a bunch of that work.