diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-03-23 17:12:29 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-03-23 17:12:29 -0300 |
| commit | 23cec80e31f6b41df14f51533de6292d6cb8c9b0 (patch) | |
| tree | 12c1c2136cfb7b99d458a87c67deb429836ec038 | |
| parent | 56f84f79bd720912d08f5a7172011f7bf647b253 (diff) | |
mention that the zap pubkey must be hex.
| -rw-r--r-- | 57.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -26,7 +26,7 @@ Having lightning receipts on nostr allows clients to display lightning payments | |||
| 26 | 26 | ||
| 27 | 1. Calculate the lnurl pay request url for a user from the lud06 or lud16 field on their profile | 27 | 1. Calculate the lnurl pay request url for a user from the lud06 or lud16 field on their profile |
| 28 | 28 | ||
| 29 | 2. Fetch the lnurl pay request static endpoint (`https://host.com/.well-known/lnurlp/user`) and gather the `allowsNostr` and `nostrPubkey` fields. If `allowsNostr` exists and it is `true`, and if `nostrPubkey` exists and is a valid BIP 340 public key, associate this information with the user. The `nostrPubkey` is the `zapper`'s pubkey, and it is used to authorize zaps sent to that user. | 29 | 2. Fetch the lnurl pay request static endpoint (`https://host.com/.well-known/lnurlp/user`) and gather the `allowsNostr` and `nostrPubkey` fields. If `allowsNostr` exists and it is `true`, and if `nostrPubkey` exists and is a valid BIP 340 public key in hex, associate this information with the user. The `nostrPubkey` is the `zapper`'s pubkey, and it is used to authorize zaps sent to that user. |
| 30 | 30 | ||
| 31 | 3. Clients may choose to display a lightning zap button on each post or on the users profile, if the user's lnurl pay request endpoint supports nostr, the client SHOULD generate a `zap invoice` instead of a normal lnurl invoice. | 31 | 3. Clients may choose to display a lightning zap button on each post or on the users profile, if the user's lnurl pay request endpoint supports nostr, the client SHOULD generate a `zap invoice` instead of a normal lnurl invoice. |
| 32 | 32 | ||