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

route-blinding: recover blinding point from forwarding packages #37

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    f5f6b1d View commit details
    Browse the repository at this point in the history
  2. htlcswitch: add AddForward hodl breakpoint to switch

    This new hodl flag will prevent the switch from opening
    circuits for ADDs it's attempting to forward. This simulates
    arbitrary delays in the switch during forwarding and can be
    leveraged to test the switch going down while trying to forward
    a batch of HTLCs.
    calvinrzachman committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    3a335db View commit details
    Browse the repository at this point in the history
  3. lnwallet: demonstrate we can recover blinding point from persisted fw…

    …dpkg
    
    We expand our tests to verify that a forwarding node which
    receives a blinded HTLC (bob) is able to restore the blinding
    point from disk.
    
    NOTE: He's only able to do so if he's revoked his local commitment.
    calvinrzachman committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    161f02e View commit details
    Browse the repository at this point in the history
  4. htlcswitch/link: log local and remote keys to ease debugging

    Miscellaneous changes as well
    calvinrzachman committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    9932996 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6db6eaa View commit details
    Browse the repository at this point in the history
  6. htlcswitch/mock: allow mockHopIterator to handle both normal and bl…

    …ind hops
    
    We expand the capability of the mockHopIterator such that it is able to
    handle both normal and blind hops. The destinction is made via a check
    for sentinel value which delineates the byte boundary between serialized
    hops.
    
    The implemenation is functional yet somewhat propietary in the sense that
    it is specific to handling blind hops and not as general as it could be.
    This lack of generality leaves the door open to eventual inclusion of the
    full blown TLV serialization scheme into the mock iterator.
    
    Without this or something like TLV we do not have a way to know
    whether we should or even how to deserialize a variable length field like
    the route blinding payload.
    
    htlcswitch/mock: use TLV for route blinding payload
    
    Allow the mock hop iterator to use TLV for the route blinding
    deserialization. We assume the route blinding payload is already
    serialized via TLV and add a length prefix before so it can be
    properly parsed from the onion packet.
    calvinrzachman committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    7a61b0c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8758405 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2b397b2 View commit details
    Browse the repository at this point in the history