Trustroots / nostroots

nostroots: transition Trustroots onto the nostr network
https://trustroots.github.io/nostroots/
GNU Affero General Public License v3.0
24 stars 7 forks source link

NIP-05: bob@trustroots.org #4

Closed guaka closed 4 months ago

guaka commented 10 months ago

Seems easy to implement early 2024:

UPDATE: better provide nsecs for everyone right away

probably add another section here, replace ELSEWHERE with NOSTR:

image

(and NOSTR can even link to a page with apps that can use this)

guaka commented 6 months ago

I'd like to try to set up a NIP-05 team@trustroots.org for this npub https://primal.net/p/npub1lt6a968lk4h6yqduqnxcha628cudulgy8xk607c4xyxn6d6w6kcsmgp8hj

I used https://nostrtool.com/ to get the hex code:

faf5d2e8ffb56fa201bc04cd8bf74a3e38de7d0439ada7fb15310d3d374ed5b1

Now if we put a static file containing { "names": { "team": "faf5d2e8ffb56fa201bc04cd8bf74a3e38de7d0439ada7fb15310d3d374ed5b1" } } at https://www.trustroots.org/.well-known/nostr.json it should work, it returns the same if ?name=team is added.

chmac commented 6 months ago

Maybe returning the same npub for nostr.json?name=foo is a lil tricky?

Maybe for the collective we could try to add a profile field for npub. Then we could add an API endpoint that resolves usernames into npubs and returns the appropriate JSON. Seems like quite a small change to the current codebase, but would open up nip05 options. Would lay the groundwork for simple trust verifications and so on.

guaka commented 4 months ago

there's progress.. continue at https://github.com/trustroots/trustroots/issues/2692