Formatting

This commit is contained in:
Vitor Pamplona 2024-01-03 11:37:57 -05:00
parent 8f739d0b16
commit 5e437f0350

8
01.md
View File

@ -10,8 +10,6 @@ This NIP defines the complete protocol that MUST be implemented by everybody. Ne
## Events ## Events
Each user has a keypair and is identified by their public key.
Event is only object type available. It is a hashed and signed payload with the following format: Event is only object type available. It is a hashed and signed payload with the following format:
```json ```json
@ -29,7 +27,7 @@ Event is only object type available. It is a hashed and signed payload with the
} }
``` ```
Signatures and encodings are done according to the [Schnorr signatures standard for the curve `secp256k1`](https://bips.xyz/340). Each user has a keypair and is identified by their public key. Signatures and encodings are done according to the [Schnorr signatures standard for the curve `secp256k1`](https://bips.xyz/340).
To obtain the hash `.id`, we `sha256` the UTF-8 bytearray of a JSON-serialized string with the following structure: To obtain the hash `.id`, we `sha256` the UTF-8 bytearray of a JSON-serialized string with the following structure:
@ -61,9 +59,9 @@ To verify an event:
### Kinds ### Kinds
Kinds specify the meaning of an event and its tags. The `.kind` property specifies the meaning of an event and its tags.
Kind ranges define storage behaviours. The current ranges are: Specific ranges define storage behaviours:
| Name | Range | SHOULD retain | | Name | Range | SHOULD retain |
| ------------- | --------------------------------- | ------------------------------------------------------ | | ------------- | --------------------------------- | ------------------------------------------------------ |