fixes number of attributes

This commit is contained in:
Vitor Pamplona 2024-03-28 09:45:01 -04:00
parent e3c1e88b4b
commit 92badf48ce

4
01.md
View File

@ -10,14 +10,14 @@ This NIP defines the mandatory part of the Nostr protocol. New NIPs may add new
# Signed Events # Signed Events
Events are the only data type transferred across the network. They consist in 4 main attributes: Events are the only data type transferred across the network. They consist in 5 main attributes:
- `pubkey` defines the signer of the event - `pubkey` defines the signer of the event
- `kind` defines the type of event - `kind` defines the type of event
- `tags` defines indexable and queryable properties of the event - `tags` defines indexable and queryable properties of the event
- `created_at` defines the time it was created or signed - `created_at` defines the time it was created or signed
- `content` contains the contents of the event - `content` contains the contents of the event
These attributes are then hashed to create an event `id` and the `id` is then signed with the user's private key. These attributes are then hashed to create an event `id`. The `id` is signed with the user's private key and placed in `sig`.
Events are formatted as follows: Events are formatted as follows: