From d87763781dc1213d7c1b53ab0a4172f8237cbdf3 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 9 Feb 2023 17:13:35 -0300 Subject: [PATCH] clarify and change account account_uris to account_paths. --- 05.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/05.md b/05.md index d042b301..5a5b5f2e 100644 --- a/05.md +++ b/05.md @@ -35,7 +35,7 @@ It will make a GET request to `https://example.com/.well-known/nostr.json?name=b } ```` -or with the **optional** `"relays"` and/or `"account_uris"` attributes: +or with the **optional** `"relays"` and/or `"account_paths"` attributes: ```json { @@ -45,8 +45,8 @@ or with the **optional** `"relays"` and/or `"account_uris"` attributes: "relays": { "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ "wss://relay.example.com", "wss://relay2.example.com" ] }, - "account_uris": { - "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": "https://bob.com/profile/bob" + "account_paths": { + "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": "/profile/bob" } } ```` @@ -55,7 +55,7 @@ If the pubkey matches the one given in `"names"` (as in the example above) that The optional `"relays"` attribute may contain an object with public keys as properties and arrays of relay URLs as values. When present, that can be used to help clients learn in which relays that user may be found. Web servers which serve `/.well-known/nostr.json` files dynamically based on the query string SHOULD also serve the relays data for any name they serve in the same reply when that is available. -The optional `"account_uris"` attribute may contain an object with public keys as properties and URIs as values. When present, this allows clients to direct their users to a URI which provides more information about the account on the server which was used to validate the given public key. Clients should ignore any URIs which don't include the server's ``. +The optional `"account_paths"` attribute may contain an object with public keys as properties and URIs as values. When present, this allows clients to direct their users to a URI that provides more information about the account on the same NIP-05 server -- for example, if the address is `"bob@example.com"` and the account_path for Bob's public key is `"/profile/bob"` the client may have a link to `https://example.com/profile/bob` at Bob's NIP-05 address. ## Finding users from their NIP-05 identifier