mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-14 07:49:07 -05:00
fixes number of attributes
This commit is contained in:
parent
e3c1e88b4b
commit
92badf48ce
4
01.md
4
01.md
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user