Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nip05 Signed Metadata #1196

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

trbouma
Copy link

@trbouma trbouma commented Apr 24, 2024

This NIP proposes to add signed metadata to a NIP-05 request. This could be a new nip or added to NIP-05

@staab
Copy link
Member

staab commented Apr 24, 2024

What does this accomplish that regular kind 0's don't? I wouldn't want my NIP 05 provider to be providing metadata about me that isn't signed.

@vitorpamplona
Copy link
Collaborator

Is the goal to let the nip05 provider describe who the user is or for users to describe themselves in these fields?

@trbouma
Copy link
Author

trbouma commented Apr 24, 2024

Is the goal to let the nip05 provider describe who the user is or for users to describe themselves in these fields?

It really depends on the nip 05 provider. For example, I might want to provide my profile information via nip-05 provider who then can emit a kind 0 note on my behalf, or, when a nip 05 request is mad,e use the additional metadata information for some specific purpose.

@trbouma
Copy link
Author

trbouma commented Apr 24, 2024

What does this accomplish that regular kind 0's don't? I wouldn't want my NIP 05 provider to be providing metadata about me that isn't signed.

Yeah, I agree with that. Profile information should not be updated if is not signed by the user. This approach allows for additional information that can be provide that might not be related to the user, but rather about the NIP-05 provider. The kind 0 format is a generic way to structure this information, but doesn't necessarily mean that a kind 0 event will be transmitted.

@vitorpamplona
Copy link
Collaborator

I am not sure if I understand the benefits of making it this general/insecure. Is anyone you know trying to use this? Which version would they want to implement?

@trbouma
Copy link
Author

trbouma commented Apr 24, 2024

You can see a live example here:

https://staging.nimo.cash/.well-known/nostr.json/?name=trbouma

@vitorpamplona
Copy link
Collaborator

Sure, but who is reading the metadata from the json and how are they presenting on their screens if not signed by users themselves?

@fiatjaf
Copy link
Member

fiatjaf commented Apr 24, 2024

Return a relay URL in the nostr.json file, tell clients to connect to that and fetch kind 0.

@trbouma
Copy link
Author

trbouma commented Apr 25, 2024

Sure, but who is reading the metadata from the json and how are they presenting on their screens if not signed by users themselves?

@vitorpamplona - It's really intended for parties that exist outside of the nostr ecosystem to find info. Originally I was going to do a W3C did:web implementation, but realized it would be just as easy to extend NIP-05 first.

@trbouma
Copy link
Author

trbouma commented Apr 25, 2024

I am not sure if I understand the benefits of making it this general/insecure. Is anyone you know trying to use this? Which version would they want to implement?

One of the use cases is for automated nostr accounts, or accounts that are used by services to backend communicate with other services via relays. A decentralized push notification service for apps, for example. An app instance might generate its own npub/nsec and use an app-specific relay. The additional metadata could help the app to query other app-generated npubs.

Copy link
Collaborator

@Semisol Semisol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not that difficult to publish a kind 0 to a relay you control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants