Skip to content

fix: pay lud-17 lnurlp links on the phone and the watch #2190

Backlog

Description

@jvsena42

Part of #2105.
Source: self, #2182

LUD-17 links (lnurlp://host/path) cannot be paid, on the phone or the watch.

  • Phone: it strips the lnurlp: scheme and hands //host/path to bitkit-core decode, which doesn't read it.
  • Watch (feat: add wear payments and the self-send guard #2182): it turns the link into https://host/path, as LUD-17 says. bitkit-core decode doesn't read a plain https:// LNURL-pay URL either. A watch emulator run at c9ca8d108 showed "Invalid invoice", with [PaymentsRepo] Failed to read a payment input: Invalid.

The bech32 forms (lnurl1…, lightning:lnurl1…, lnurlp:lnurl1…) work.

Proposal

  • Have bitkit-core decode an LNURL from its https:// URL (or from lnurlp:// directly), or resolve the LUD-17 URL in the apps before decode.

Done when

  • An lnurlp:// link from a real LNURL-pay service opens the send flow with its range on the phone and on the watch, with a unit test on each side.
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions