Skip to content

Commit 0619f37

Browse files
NIP-17 Typos and grammar improvements (#1840)
1 parent bf699c9 commit 0619f37

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

17.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela
5757
["file-type", "<file-mime-type>"],
5858
["encryption-algorithm", "<encryption-algorithm>"],
5959
["decryption-key", "<decryption-key>"],
60-
["decryptiion-nonce", "<decryption-nonce>"],
60+
["decryption-nonce", "<decryption-nonce>"],
6161
["x", "<the SHA-256 hexencoded string of the file>"],
6262
// rest of tags...
6363
],
@@ -74,24 +74,24 @@ Kind 15 is used for sending encrypted file event messages:
7474
- `content`: The URL of the file (`<file-url>`).
7575
- `x` containing the SHA-256 hexencoded string of the file.
7676
- `size` (optional) size of file in bytes
77-
- `dim` (optional) size of file in pixels in the form `<width>x<height>`
78-
- `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client
79-
- `thumb` (optional) url of thumbnail with same aspect ratio
77+
- `dim` (optional) size of the file in pixels in the form `<width>x<height>`
78+
- `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the client is loading the file
79+
- `thumb` (optional) URL of thumbnail with same aspect ratio (encrypted with the same key, nonce)
8080
- `fallback` (optional) zero or more fallback file sources in case `url` fails
8181

8282
Just like kind 14, kind `15`s MUST never be signed.
8383

8484
## Chat Rooms
8585

86-
The set of `pubkey` + `p` tags defines a chat room. If a new `p` tag is added or a current one is removed, a new room is created with clean message history.
86+
The set of `pubkey` + `p` tags defines a chat room. If a new `p` tag is added or a current one is removed, a new room is created with a clean message history.
8787

8888
Clients SHOULD render messages of the same room in a continuous thread.
8989

9090
An optional `subject` tag defines the current name/topic of the conversation. Any member can change the topic by simply submitting a new `subject` to an existing `pubkey` + `p`-tags room. There is no need to send `subject` in every message. The newest `subject` in the thread is the subject of the conversation.
9191

9292
## Encrypting
9393

94-
Following [NIP-59](59.md), the **unsigned** `kind:14` & `kind:15` chat message must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
94+
Following [NIP-59](59.md), the **unsigned** `kind:14` & `kind:15` chat messages must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
9595

9696
```jsonc
9797
{
@@ -173,7 +173,7 @@ The main limitation of this approach is having to send a separate encrypted even
173173

174174
Clients implementing this NIP should by default only connect to the set of relays found in their `kind:10050` list. From that they should be able to load all messages both sent and received as well as get new live updates, making it for a very simple and lightweight implementation that should be fast.
175175

176-
When sending a message to anyone, clients must then connect to the relays in the receiver's `kind:10050` and send the events there, but can disconnect right after unless more messages are expected to be sent (e.g. the chat tab is still selected). Clients should also send a copy of their outgoing messages to their own `kind:10050` relay set.
176+
When sending a message to anyone, clients must then connect to the relays in the receiver's `kind:10050` and send the events there but can disconnect right after unless more messages are expected to be sent (e.g. the chat tab is still selected). Clients should also send a copy of their outgoing messages to their own `kind:10050` relay set.
177177

178178
## Examples
179179

0 commit comments

Comments
 (0)