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

docs(lightning): gather use cases for lnurl #11

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions lightning/lnurl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# LNURL

- [ ] research AMP payments
- [ ] https://medium.com/breez-technology/introducing-lightning-service-providers-fe9fb1665d5f

## Components

- lnurl-pay
- lnurl-withdraw
- lnurl-auth

## Use Case

lnurl-pay as an standard for online services to interact with each other automatically.

```mermaid
sequenceDiagram
User->>Lottery: Deposits Money (lnurl-pay)
Lottery-->>User: 💰 You won the prize!!
User->>Lottery: Where's my money?
User->>Custodial Storage: Secure my 💰
Note over User, Custodial Storage: Here's the lnurl-withdraw to call
Custodial Storage-->>Lottery: (lnurl-withdraw)
Note over User, Custodial Storage: Don't want to forget my funds in the Lottery
Custodial Storage-->>Phone Top Up: 10% (I make lots of calls)
Custodial Storage-->>OnChain: 20% to HODL
```

— credit fiatjaf