Skip to content

Commit

Permalink
mention that the zap pubkey must be hex.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Mar 23, 2023
1 parent 56f84f7 commit 23cec80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 57.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Having lightning receipts on nostr allows clients to display lightning payments

1. Calculate the lnurl pay request url for a user from the lud06 or lud16 field on their profile

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.
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.

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.

Expand Down

0 comments on commit 23cec80

Please sign in to comment.