Skip to content

Expose more info in PaymentForwarded #1391

Description

@TheBlueMatt

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.

Activity

  1. added this to the 0.1.1 milestone on Mar 27, 2022
  2. atalw commented on Mar 29, 2022

    @atalw
    Contributor

    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?

  3. TheBlueMatt commented on Mar 29, 2022

    @TheBlueMatt
    CollaboratorAuthor

    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.

  4. keyuebao commented on Mar 29, 2022

    @keyuebao
    Contributor

    Having a channel id here would be super helpful 👍

  5. atalw commented on Apr 4, 2022

    @atalw
    Contributor

    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

  6. TheBlueMatt commented on Apr 20, 2022

    @TheBlueMatt
    CollaboratorAuthor

    We should still expose the destination/sink channel id, #1419 only exposed the source.

  7. atalw commented on Apr 20, 2022

    @atalw
    Contributor

    I'll add that next!

  8. TheBlueMatt commented on Apr 20, 2022

    @TheBlueMatt
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions