diff options
| author | Alex Gleason <alex@alexgleason.me> | 2024-11-03 16:13:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-03 16:13:53 -0600 |
| commit | 6bcd89c097e97e65dbc95e7c6b7b8348e8dd6b5c (patch) | |
| tree | 91ae3ca09f6e555e9a61ceeb7ea771046b4c58de | |
| parent | c275ae74eb0070ad7ac5fe2482fdfb91fc99f4ff (diff) | |
| parent | 087437042be0dac04a5fce9ea243b6babd31fb63 (diff) | |
Merge pull request #1563 from tyiu/fix-formatting-and-pronouns
Remove extra backticks in code blocks and change unnecessary gender-specific pronouns to be gender neutral
| -rw-r--r-- | 05.md | 4 | ||||
| -rw-r--r-- | 53.md | 2 | ||||
| -rw-r--r-- | 57.md | 2 | ||||
| -rw-r--r-- | 59.md | 2 |
4 files changed, 5 insertions, 5 deletions
| @@ -33,7 +33,7 @@ It will make a GET request to `https://example.com/.well-known/nostr.json?name=b | |||
| 33 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" | 33 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | ```` | 36 | ``` |
| 37 | 37 | ||
| 38 | or with the **recommended** `"relays"` attribute: | 38 | or with the **recommended** `"relays"` attribute: |
| 39 | 39 | ||
| @@ -46,7 +46,7 @@ or with the **recommended** `"relays"` attribute: | |||
| 46 | "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ "wss://relay.example.com", "wss://relay2.example.com" ] | 46 | "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ "wss://relay.example.com", "wss://relay2.example.com" ] |
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| 49 | ```` | 49 | ``` |
| 50 | 50 | ||
| 51 | If the pubkey matches the one given in `"names"` (as in the example above) that means the association is right and the `"nip05"` identifier is valid and can be displayed. | 51 | If the pubkey matches the one given in `"names"` (as in the example above) that means the association is right and the `"nip05"` identifier is valid and can be displayed. |
| 52 | 52 | ||
| @@ -119,4 +119,4 @@ Common use cases include meeting rooms/workshops, watch-together activities, or | |||
| 119 | "content": "Zaps to live streams is beautiful.", | 119 | "content": "Zaps to live streams is beautiful.", |
| 120 | "sig": "997f62ddfc0827c121043074d50cfce7a528e978c575722748629a4137c45b75bdbc84170bedc723ef0a5a4c3daebf1fef2e93f5e2ddb98e5d685d022c30b622" | 120 | "sig": "997f62ddfc0827c121043074d50cfce7a528e978c575722748629a4137c45b75bdbc84170bedc723ef0a5a4c3daebf1fef2e93f5e2ddb98e5d685d022c30b622" |
| 121 | } | 121 | } |
| 122 | ```` | 122 | ``` |
| @@ -66,7 +66,7 @@ A signed `zap request` event is not published, but is instead sent using a HTTP | |||
| 66 | - `nostr` is the `9734` `zap request` event, JSON encoded then URI encoded | 66 | - `nostr` is the `9734` `zap request` event, JSON encoded then URI encoded |
| 67 | - `lnurl` is the lnurl pay url of the recipient, encoded using bech32 with the prefix `lnurl` | 67 | - `lnurl` is the lnurl pay url of the recipient, encoded using bech32 with the prefix `lnurl` |
| 68 | 68 | ||
| 69 | This request should return a JSON response with a `pr` key, which is the invoice the sender must pay to finalize his zap. Here is an example flow in javascript: | 69 | This request should return a JSON response with a `pr` key, which is the invoice the sender must pay to finalize their zap. Here is an example flow in javascript: |
| 70 | 70 | ||
| 71 | ```javascript | 71 | ```javascript |
| 72 | const senderPubkey // The sender's pubkey | 72 | const senderPubkey // The sender's pubkey |
| @@ -245,7 +245,7 @@ const rumor = createRumor( | |||
| 245 | const seal = createSeal(rumor, senderPrivateKey, recipientPublicKey) | 245 | const seal = createSeal(rumor, senderPrivateKey, recipientPublicKey) |
| 246 | const wrap = createWrap(seal, recipientPublicKey) | 246 | const wrap = createWrap(seal, recipientPublicKey) |
| 247 | 247 | ||
| 248 | // Recipient unwraps with his/her private key. | 248 | // Recipient unwraps with their private key. |
| 249 | 249 | ||
| 250 | const unwrappedSeal = nip44Decrypt(wrap, recipientPrivateKey) | 250 | const unwrappedSeal = nip44Decrypt(wrap, recipientPrivateKey) |
| 251 | const unsealedRumor = nip44Decrypt(unwrappedSeal, recipientPrivateKey) | 251 | const unsealedRumor = nip44Decrypt(unwrappedSeal, recipientPrivateKey) |