Can someone teach me how to implement NIP05? I read the NIP but am a bit confused.

For example, if I want to support "xxx@blowater.deno.dev" in Blowater client, what should I do?

Reply to this note

Please Login to reply.

Discussion

Oh sorry you want to offer it as a service...

Don't know but you can ask around people who already do it...

You you give NIP-05 for your users help this guy

#[0]

You just need a nostr.json file in the /.well-known/ folder with the names and pub keys of users. https://blowater.deno.dev/.well-known/nostr.json

Here's mine https://nostr.haus/.well-known/nostr.json

This is manually created right? Whereas he can have 10,000 DM app users. He would have to keep track of them in DB... so that his service is aware of all users and returns given name=XYZ appropriately. He maybe doesn't think about registering them yet (i dunno what exactly he is striving for... but at least he has stuff to think about until next time)

https://www.satoshivibes.com/.well-known/nostr.json?name=lukeonchain

Dont forget to implement NAME parameter, so that it doesn't always have to return ALL keys

Versus all keys

https://www.satoshivibes.com/.well-known/nostr.json

#[4] can you give this guy some tips since nostrplebs. Im not sure yet what he's trying to do with his DM app so hard to guess. He didnt mention NIP5 registration service . What DB yall using to store name/key pairs, some nosql mongoDB or yall rocking SQL flavors? Anyways he maybe didnt get there yet but anything helps, Thanks 🙏

Here's a good example implementation https://github.com/jigglycrumb/nostr-verify

Dope, yea there ya go

Haaa called it, mongodb most sensible I guess. Great for json shit. Screw DynamoDB I hate vendor corp lockins yuckkkk lol