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

Add Pubky Integration #1548

Open
melvincarvalho opened this issue Oct 27, 2024 · 4 comments
Open

Add Pubky Integration #1548

melvincarvalho opened this issue Oct 27, 2024 · 4 comments

Comments

@melvincarvalho
Copy link

melvincarvalho commented Oct 27, 2024

Propose an integration with the Pubky protocol, which has just launched.

There are many ways to do it, but the simplest that will work is to integrate with NIP-24

 "pubky":  "96617cf250515332a051cb751b61ca2a320b1787216ba52a54379f488ae10ba2"

Clients already use and respect this. One line just needs to be added to the NIP text for a full integration.

Implementors can go ahead and implement this today. As deployments grow, the NIPs can reflect what is in use.

About pubky - Links taken from their official room

Some Pubky links to get started!

Blog post overview:

@vitorpamplona
Copy link
Collaborator

What would the extra metadata field do?

It feels like if we had to use something like pubky, it would be to avoid using relay URLs with domain names and just connect to the relay's own key instead. So, I don't know what the extra NIP-24 field would be doing.

@melvincarvalho
Copy link
Author

melvincarvalho commented Oct 29, 2024

I have implemented pubky in noskey which will allow you to generate a pubky from your nostr privkey

noskey -p <privkey>

Should work.

Note: the pubky value is without any URI prefix as that is implied from the json key.

It should not be possible to start putting pubky values into nostr profiles and beginning to use pubkey apps

image

@melvincarvalho
Copy link
Author

Showing what the UX could look like, mastodon have had this feature for a long time.

It should be farily easy to copy.

image

@melvincarvalho
Copy link
Author

melvincarvalho commented Nov 4, 2024

It has also been integrated into nslookup. The Ben is running a no-tracking DNS server.

This is a big deal because it allows every npub to have a censorship-resistant domain, no more takedowns, no gatekeepers, and your data is stored across a resilient, battle-tested, massive network of nodes.

$ nslookup -type=txt  _npub.8xssyidksmiup9og9k47s41hy7zt71r74fm6zhoc3cuxj9qr7ray 66.78.40.76

Server:		66.78.40.76
Address:	66.78.40.76#53

Non-authoritative answer:
_npub.8xssyidksmiup9og9k47s41hy7zt71r74fm6zhoc3cuxj9qr7ray	
text = "npub17zh5navmw7zrdmdfgm8khmeef0zrgyn4kjx4g2x6j0fkcyg7m8wqe3zmwj"

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

No branches or pull requests

2 participants