diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 54 |
1 files changed, 36 insertions, 18 deletions
| @@ -24,24 +24,42 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh | |||
| 24 | 24 | ||
| 25 | ## Event Kinds | 25 | ## Event Kinds |
| 26 | 26 | ||
| 27 | | kind | description | NIP | | 27 | | kind | description | NIP | |
| 28 | |------|---------------------------|------| | 28 | |-------------|----------------------------|------------------------| |
| 29 | | 0 | Metadata | 1, 5 | | 29 | | 0 | Metadata | [1](01.md), [5](05.md) | |
| 30 | | 1 | Text | 1 | | 30 | | 1 | Text | [1](01.md) | |
| 31 | | 2 | Recommend Relay | 1 | | 31 | | 2 | Recommend Relay | [1](01.md) | |
| 32 | | 3 | Contacts | 2 | | 32 | | 3 | Contacts | [2](02.md) | |
| 33 | | 4 | Encrypted Direct Messages | 4 | | 33 | | 4 | Encrypted Direct Messages | [4](04.md) | |
| 34 | | 5 | Event Deletion | 9 | | 34 | | 5 | Event Deletion | [9](09.md) | |
| 35 | | 7 | Reaction | 25 | | 35 | | 7 | Reaction | [25](25.md) | |
| 36 | | 40 | Channel Creation | 28 | | 36 | | 40 | Channel Creation | [28](28.md) | |
| 37 | | 41 | Channel Metadata | 28 | | 37 | | 41 | Channel Metadata | [28](28.md) | |
| 38 | | 42 | Channel Message | 28 | | 38 | | 42 | Channel Message | [28](28.md) | |
| 39 | | 43 | Channel Hide Message | 28 | | 39 | | 43 | Channel Hide Message | [28](28.md) | |
| 40 | | 44 | Channel Mute User | 28 | | 40 | | 44 | Channel Mute User | [28](28.md) | |
| 41 | | 45-49 | Public Chat Reserved | 28 | | 41 | | 45-49 | Public Chat Reserved | [28](28.md) | |
| 42 | 42 | | 10000-19999 | Replacable Events Reserved | [16](16.md) | | |
| 43 | 43 | | 20000-29999 | Ephemeral Events Reserved | [16](16.md) | | |
| 44 | Please update this list when proposing NIPs introducing new event kinds. | 44 | |
| 45 | |||
| 46 | ## Message types | ||
| 47 | |||
| 48 | ### Client to Relay | ||
| 49 | | type | description | NIP | | ||
| 50 | |-------|-----------------------------------------------------|------------| | ||
| 51 | | EVENT | used to publish events | [1](01.md) | | ||
| 52 | | REQ | used to request events and subscribe to new updates | [1](01.md) | | ||
| 53 | | CLOSE | used to stop previous subscriptions | [1](01.md) | | ||
| 54 | |||
| 55 | ### Relay to Client | ||
| 56 | | type | description | NIP | | ||
| 57 | |--------|------------------------------------------------------------------------|-------------| | ||
| 58 | | EVENT | used to send events requested by clients | [1](01.md) | | ||
| 59 | | NOTICE | used to send human-readable error messages or other things to clients | [1](01.md) | | ||
| 60 | | EOSE | used to clients when all stored events have been sent | [15](15.md) | | ||
| 61 | |||
| 62 | Please update these lists when proposing NIPs introducing new event kinds. | ||
| 45 | 63 | ||
| 46 | When experimenting with kinds, keep in mind the classification introduced by [NIP-16](16.md). | 64 | When experimenting with kinds, keep in mind the classification introduced by [NIP-16](16.md). |
| 47 | 65 | ||