Expand description
Names at a domain (NIP-05): ana@example.com.
Anyone can write any name into their profile. It is theirs only if the
domain says so: https://<domain>/.well-known/nostr.json?name=<name>
has to give their public key for that name. Until it has, the name is
not shown; a name that could be shown unchecked is a name that could be
borrowed.
The domain has to answer itself. An answer from somewhere it redirects to is not taken, as NIP-05 has it.
Constants§
- ANSWER_
MAX_ 🔒BYTES - The most a domain’s answer may weigh. Asked for one name, a domain answers with one; some answer with every name they have.
Functions§
- is_name
- Whether
typedreads as a name at a domain,ana@example.com: what can be asked of the domain. A domain alone does not: it reads as a word, or as the address of a page. - parse 🔒
- What
claimedsays, if it is a name at a domain: the name in lower case, which is how it is looked up, and where to ask. - resolve
- Whose name
claimedis, as its domain says. Nobody’s, if it is no name at a domain, the domain doesn’t answer, or it knows no such name. - shown
- How a name shows:
ana@example.com, or the domain alone for the name_, which stands for the domain itself. - verify
- Whether the domain in
claimedsays that name ispublic_key’s. Anything short of that is no: a name that isn’t one, a domain that doesn’t answer, an answer that names someone else.