upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2025-02-18 17:48:49 -0600
committerGitHub <noreply@github.com>2025-02-18 17:48:49 -0600
commitebe5ec3b38ac81902b33220c13c14e662f238e09 (patch)
treef375f7d9b82ecaf09885ef5f6ca8d167c82ca930
parent330de34c7cc8fc6f34e3dec076f20ceb1af94927 (diff)
NIP-05: add dynamic server recommendation
-rw-r--r--05.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/05.md b/05.md
index 7e823fb..e971d53 100644
--- a/05.md
+++ b/05.md
@@ -101,3 +101,9 @@ Users should ensure that their `/.well-known/nostr.json` is served with the HTTP
101The `/.well-known/nostr.json` endpoint MUST NOT return any HTTP redirects. 101The `/.well-known/nostr.json` endpoint MUST NOT return any HTTP redirects.
102 102
103Fetchers MUST ignore any HTTP redirects given by the `/.well-known/nostr.json` endpoint. 103Fetchers MUST ignore any HTTP redirects given by the `/.well-known/nostr.json` endpoint.
104
105### Implementing a NIP-05 server
106
107NIP-05 is designed so that `nostr.json` can be hosted as a static file. But some services may allow users to sign up and be granted a NIP-05. The `nostr.json` is then served dynamically, depending on the `name` query parameter.
108
109For these servers, the **case** of the localpart should be considered. It is recommended to make the lowercase representation unique in the database, so that two people cannot reserve the same name in different cases (eg `chad` vs `Chad`). Servers may then serve any case variation of the name to the given pubkey, allowing users to freely change the case of their name. However, the server MUST match the case provided by the `name` query parameter.