Merge pull request #119 from mikedilger/nip35

This commit is contained in:
fiatjaf 2022-12-26 12:12:02 -03:00 committed by GitHub
commit 37caf77b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
35.md
View File

@ -34,8 +34,10 @@ This NIP proposes an optional additional key like this:
},
"relays": {
"b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ "wss://relay.example.com", "wss://relay2.example.com" ]
},
}
}
````
The `relays` key contains an object with public keys as properties and arrays of relays as values.
Web servers which serve nostr.json files dynamically responding to the query string SHOULD also serve the relays data for any name they serve in the same reply.