mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-25 09:45:51 -05:00
Formatting
This commit is contained in:
parent
8f739d0b16
commit
5e437f0350
8
01.md
8
01.md
|
@ -10,8 +10,6 @@ This NIP defines the complete protocol that MUST be implemented by everybody. Ne
|
|||
|
||||
## 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:
|
||||
|
||||
```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:
|
||||
|
||||
|
@ -61,9 +59,9 @@ To verify an event:
|
|||
|
||||
### 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 |
|
||||
| ------------- | --------------------------------- | ------------------------------------------------------ |
|
||||
|
|
Loading…
Reference in New Issue
Block a user