upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01.md2
-rw-r--r--02.md8
2 files changed, 5 insertions, 5 deletions
diff --git a/01.md b/01.md
index 8bf7fc3..3fd1cdc 100644
--- a/01.md
+++ b/01.md
@@ -38,7 +38,7 @@ To obtain the `event.id`, we `sha256` the serialized event. The serialization is
38 <pubkey, as a (lowercase) hex string>, 38 <pubkey, as a (lowercase) hex string>,
39 <created_at, as a number>, 39 <created_at, as a number>,
40 <kind, as a number>, 40 <kind, as a number>,
41 <tags, as an array of arrays of strings>, 41 <tags, as an array of arrays of non-null strings>,
42 <content, as a string> 42 <content, as a string>
43] 43]
44``` 44```
diff --git a/02.md b/02.md
index ae3afb8..7309dd5 100644
--- a/02.md
+++ b/02.md
@@ -8,7 +8,7 @@ Contact List and Petnames
8 8
9A special event with kind `3`, meaning "contact list" is defined as having a list of `p` tags, one for each of the followed/known profiles one is following. 9A special event with kind `3`, meaning "contact list" is defined as having a list of `p` tags, one for each of the followed/known profiles one is following.
10 10
11Each tag entry should contain the key for the profile, a relay URL where events from that key can be found (can be set to `null` or a invalid string if not needed), and a local name (or "petname") for that profile (can also be set to `null`), i.e., `["p", <32-bytes hex key>, <main relay URL>, <petname>]`. The `content` can be anything and should be ignored. 11Each tag entry should contain the key for the profile, a relay URL where events from that key can be found (can be set to an empty string if not needed), and a local name (or "petname") for that profile (can also be set to an empty string or not provided), i.e., `["p", <32-bytes hex key>, <main relay URL>, <petname>]`. The `content` can be anything and should be ignored.
12 12
13For example: 13For example:
14 14
@@ -48,7 +48,7 @@ A user has an internal contact list that says
48 48
49```json 49```json
50[ 50[
51 ["p", "21df6d143fb96c2ec9d63726bf9edc71", null, "erin"] 51 ["p", "21df6d143fb96c2ec9d63726bf9edc71", "", "erin"]
52] 52]
53``` 53```
54 54
@@ -56,7 +56,7 @@ And receives two contact lists, one from `21df6d143fb96c2ec9d63726bf9edc71` that
56 56
57```json 57```json
58[ 58[
59 ["p", "a8bb3d884d5d90b413d9891fe4c4e46d", null, "david"] 59 ["p", "a8bb3d884d5d90b413d9891fe4c4e46d", "", "david"]
60] 60]
61``` 61```
62 62
@@ -64,7 +64,7 @@ and another from `a8bb3d884d5d90b413d9891fe4c4e46d` that says
64 64
65```json 65```json
66[ 66[
67 ["p", "f57f54057d2a7af0efecc8b0b66f5708", null, "frank"] 67 ["p", "f57f54057d2a7af0efecc8b0b66f5708", "", "frank"]
68] 68]
69``` 69```
70 70