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--05.md7
-rw-r--r--19.md8
2 files changed, 10 insertions, 5 deletions
diff --git a/05.md b/05.md
index fdf1101..b489b4b 100644
--- a/05.md
+++ b/05.md
@@ -47,9 +47,9 @@ A client may implement support for finding users' public keys from _internet ide
47 47
48For example, if after finding that `bob@bob.com` has the public key `abc...def`, the user clicks a button to follow that profile, the client must keep a primary reference to `abc...def`, not `bob@bob.com`. If, for any reason, the address `https://bob.com/.well-known/nostr.json?name=bob` starts returning the public key `1d2...e3f` at any time in the future, the client must not replace `abc...def` in his list of followed profiles for the user (but it should stop displaying "bob@bob.com" for that user, as that will have become an invalid `"nip05"` property). 48For example, if after finding that `bob@bob.com` has the public key `abc...def`, the user clicks a button to follow that profile, the client must keep a primary reference to `abc...def`, not `bob@bob.com`. If, for any reason, the address `https://bob.com/.well-known/nostr.json?name=bob` starts returning the public key `1d2...e3f` at any time in the future, the client must not replace `abc...def` in his list of followed profiles for the user (but it should stop displaying "bob@bob.com" for that user, as that will have become an invalid `"nip05"` property).
49 49
50### Public keys must be in Hex format 50### Public keys must be in hex format
51 51
52Keys must be returned in Hex format. Keys returned in npub format are not supported by this spec. 52Keys must be returned in hex format. Keys in NIP-19 `npub` format are are only meant to be used for display in client UIs, not in this NIP.
53 53
54### User Discovery implementation suggestion 54### User Discovery implementation suggestion
55 55
@@ -78,7 +78,6 @@ Users should ensure that their `/.well-known/nostr.json` is served with the HTTP
78 78
79### Security Constraints 79### Security Constraints
80 80
81The `/.well-known/nostr.json` endpoint MUST NOT return any HTTP redirects. 81The `/.well-known/nostr.json` endpoint MUST NOT return any HTTP redirects.
82 82
83Fetchers MUST ignore any HTTP redirects given by the `/.well-known/nostr.json` endpoint. 83Fetchers MUST ignore any HTTP redirects given by the `/.well-known/nostr.json` endpoint.
84
diff --git a/19.md b/19.md
index 8f05b67..b9973cf 100644
--- a/19.md
+++ b/19.md
@@ -6,7 +6,9 @@ bech32-encoded entities
6 6
7`draft` `optional` `author:jb55` `author:fiatjaf` `author:Semisol` 7`draft` `optional` `author:jb55` `author:fiatjaf` `author:Semisol`
8 8
9This NIP specifies all bech32-encoded entities. 9This NIP standardizes bech32-formatted strings that can be used to display keys, ids and other information in clients. These formats are not meant to be used anywhere in the core protocol, they are only meant for displaying to users, copy-pasting, sharing, rendering QR codes and inputting data.
10
11It is recommended that ids and keys are stored in either hex or binary format, since these formats are closer to what must actually be used the core protocol.
10 12
11## Bare keys and ids 13## Bare keys and ids
12 14
@@ -50,3 +52,7 @@ These possible standardized `TLV` types are indicated here:
50 - pubkey: `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` 52 - pubkey: `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d`
51 - relay: `wss://r.x.com` 53 - relay: `wss://r.x.com`
52 - relay: `wss://djbas.sadkb.com` 54 - relay: `wss://djbas.sadkb.com`
55
56## Notes
57
58- `npub` keys MUST NOT be used in NIP-01 events or in NIP-05 JSON responses, only the hex format is supported there.