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

Add API for constructing blinded payment paths #2412

Commits on Aug 22, 2023

  1. Move blinded path util into blinded_path::utils

    This way it can be more easily reused for blinded payment paths.
    valentinewallace committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    a5b7cf2 View commit details
    Browse the repository at this point in the history
  2. Move some blinded path message code into message submodule.

    We'll similarly separate blinded path payments code into its own module.
    valentinewallace committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    381cc64 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe5a076 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b35661 View commit details
    Browse the repository at this point in the history
  5. Update blinded path util to take iterator instead of slice

    Useful for blinded payment path construction.
    valentinewallace committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    7c1726b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9777485 View commit details
    Browse the repository at this point in the history
  7. Rename ser macro

    We want a similar macro for reading TLV streams without a length prefix, so
    rename this one to disambiguate.
    valentinewallace committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    4a30d9e View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Add new _init_and_read_tlv_stream ser macro

    Useful for when you want to use _init_and_read_len_prefixed_tlv_fields but there is no
    length byte at the start of the TLV stream.
    valentinewallace committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    cf64e3f View commit details
    Browse the repository at this point in the history
  2. Simplify onion message blinded hop construction

    Also adds a util for general blinded hop creation to be reused for blinded
    payment paths.
    valentinewallace committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    d224f98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76f8cc1 View commit details
    Browse the repository at this point in the history
  4. Blinded paths: rename encrypted_tlvs_ss to *_rho for precision

    The previous name can be confused for the shared secret that the rho is derived
    from.
    valentinewallace committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    0ddd3cb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ebb0676 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ea84f2a View commit details
    Browse the repository at this point in the history