From ebfcd72a8d545d3f8386051a9ec53475447fbfb8 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 5 May 2025 20:11:52 -0400 Subject: [PATCH] Using yaml to fix NIP-01 JSON formatting (#1910) --- 01.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01.md b/01.md index f7f592c..a3d23f8 100644 --- a/01.md +++ b/01.md @@ -14,7 +14,7 @@ Each user has a keypair. Signatures, public key, and encodings are done accordin The only object type that exists is the `event`, which has the following format on the wire: -```jsonc +```yaml { "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>, "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, @@ -120,7 +120,7 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th `` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes: -```json +```yaml { "ids": , "authors": ,