mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-14 07:49:07 -05:00
adjustments
This commit is contained in:
parent
c4f3164b4e
commit
2b6edc0f71
6
01.md
6
01.md
|
@ -6,11 +6,11 @@ Nostr Protocol
|
|||
|
||||
`draft` `mandatory`
|
||||
|
||||
This NIP defines the basic protocol that MUST be implemented by everybody. New NIPs may add new optional (or mandatory) fields, messages, and features to the structures and flows described here.
|
||||
This NIP defines the mandatory part of the Nostr protocol. New NIPs may add new optional (or mandatory) fields, messages, and features to the structures and flows described here.
|
||||
|
||||
# Events
|
||||
|
||||
Event is the only object type available. It is a hashed and signed payload with the following format:
|
||||
Event is the only object type available. It is a hashed and signed payload in the following format:
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -33,7 +33,7 @@ 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 byte array of a JSON-serialized string with the following structure:
|
||||
To obtain the hash `.id`, we `sha256` the UTF-8 byte array of a JSON-serialized string in the following structure:
|
||||
|
||||
```
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue
Block a user