zach on Nostr: One idea I've been considering it leveraging NIP-05 to help fix this. Whenever a user ...
One idea I've been considering it leveraging NIP-05 to help fix this. Whenever a user edits their profile, the client could send a post request to their NIP-05 provider with the updated kind 0. Then assuming the sig is valid, the NIP-05 server could save that info and return it along with the other info for that user like relays.
I would love the developer experience of just being able to set an image src as:
<img src="
https://example.com/.well-known/nostr.json?name=bob&image=true"; />
Published at
2024-02-29 09:00:56Event JSON
{
"id": "6a4b03fc8463284620ad967895c11e0d1c1c35040289bbfeda720f326374f477",
"pubkey": "17717ad4d20e2a425cda0a2195624a0a4a73c4f6975f16b1593fc87fa46f2d58",
"created_at": 1709197256,
"kind": 1,
"tags": [
[
"e",
"d1aa2901127fe9474c1c211be0ce7320dec48cc1e8ef817138f3cc38ec5bbf7d",
"",
"root"
],
[
"p",
"17717ad4d20e2a425cda0a2195624a0a4a73c4f6975f16b1593fc87fa46f2d58"
]
],
"content": "One idea I've been considering it leveraging NIP-05 to help fix this. Whenever a user edits their profile, the client could send a post request to their NIP-05 provider with the updated kind 0. Then assuming the sig is valid, the NIP-05 server could save that info and return it along with the other info for that user like relays. \n\nI would love the developer experience of just being able to set an image src as:\n\u003cimg src=\"https://example.com/.well-known/nostr.json?name=bob\u0026image=true\" /\u003e",
"sig": "33fa593660f4b37261df54b13351c4aae9067bb24db0182e422c86ddf20af3df30eae60b8f2a9a0c304acfb71cdd1a8c99bee8117da8c3296d724a501665abd9"
}