Skip to content

Proposal for LUD-03 spec addition: wallet must nod send an invoice with tag h in callback #206

Description

@johnzweng
  • In LUD-03 in the callback the LN WALLET send a Bolt11 Lightning payment request (invoice).

  • Bolt11 allows that a payment request might contain only a hash of the description (tag h)

  • Bolt11 specifies that if the tag h is present in a payment request a lightning node:

    - MUST check that the SHA2 256-bit hash in the `h` field exactly matches the hashed description.
    
  • To be able to do so, a lightning node must learn the preimage together with the bolt11 payment request (containing a hashed description) before it can initiate a payment.

Consequence:

  • The (receiving side) LN Wallet must also provide the pre-image of the hashed description used in the Bolt11 payment request (aka LN invoice).
  • Thus LUD-03 would need to be extended, so that if a LN WALLET uses tag h in the generated Bolt11 payment request, it also MUST return the preimage of tag h in its callback.
  • LUD-03 should make this mandatory and introduce an additional GET parameter for the callback (in addition to already existing k1 and pr).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaEarly-stage proposal or discussion, no spec written yetlud-extensionAdds a field or behavior to an existing LUDstaleNo activity for 12+ months. Will be closed in 30 days if no further action.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions