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

BOLT 12 static invoice encoding and building #3082

Merged

Commits on Jun 4, 2024

  1. Configuration menu
    Copy the full SHA
    f18b490 View commit details
    Browse the repository at this point in the history
  2. Move common BOLT 12 invoice builder setters to new macro.

    Will be useful when we later add support for static BOLT 12 invoices.
    valentinewallace committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    45d7d2d View commit details
    Browse the repository at this point in the history
  3. Move common BOLT 12 accessor methods to new macro.

    Will be useful when we support static BOLT 12 invoices.
    valentinewallace committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    7417406 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Genericize BOLT 12 invoice{_builder} common macro docs over invoice type

    Will be useful so the docs generated work for static invoices.
    valentinewallace committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    bbc15f5 View commit details
    Browse the repository at this point in the history
  2. BOLT 12 invoice: expose common helper methods and fields

    Useful for static invoice support.
    valentinewallace committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    b073711 View commit details
    Browse the repository at this point in the history
  3. BOLT 12 invoice: extract helper for invoice signing pubkey checks

    Will be useful for static invoices.
    valentinewallace committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    f6bd1eb View commit details
    Browse the repository at this point in the history
  4. Use ? instead of matching in BOLT 12 invoice parsing.

    Minor cleanup to be more concise.
    valentinewallace committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    922fd60 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. InvoiceTlvStream{Ref}: add message_paths field

    Will be used in static invoices. Also test that we'll fail to decode if these
    paths are included in single-use BOLT 12 invoices.
    valentinewallace committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    3cfb24d View commit details
    Browse the repository at this point in the history
  2. Static invoice encoding and parsing

    Define an interface for BOLT 12 static invoice messages. The underlying
    format consists of the original bytes and the parsed contents.
    
    The bytes are later needed for serialization. This is because it must
    mirror all the offer TLV records, including unknown ones, which aren't
    represented in the contents.
    
    Invoices may be created from an offer.
    valentinewallace committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    e3dea2c View commit details
    Browse the repository at this point in the history
  3. Builder for creating static invoices from offers

    Add a builder for creating static invoices for an offer. Building produces a
    semantically valid static invoice for the offer, which can then be signed with
    the key associated with the offer's signing pubkey.
    valentinewallace committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    1e58066 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7970de4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bafe4ed View commit details
    Browse the repository at this point in the history