Skip to content

Integrate plebname (.btc) user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin#101

Open
ndee wants to merge 2 commits into
PrimalHQ:mainfrom
ndee:integrate-plebname-search
Open

Integrate plebname (.btc) user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin#101
ndee wants to merge 2 commits into
PrimalHQ:mainfrom
ndee:integrate-plebname-search

Conversation

@ndee
Copy link
Copy Markdown

@ndee ndee commented Sep 28, 2024

Plebnames (http://plebnames.org/) provide completely decentralized, uncensorable and unique aliases for npubs. Only normal Bitcoin explorers like mempool.space or blockstream.info need to be accessed.

Basic example

When you search for a plebname in the top right search bar (e.g. "alice.btc") a lookup in the Bitcoin chain is made (via cors request to arbitrary Bitcoin explorers) to check if there is a Plebname with an attached Nostr npub. If there is one it appears in the search results.

Motivation

Other naming schemes are in some degree centralized and could be corrupted or attacked. Plebnames are as uncorruptible and uncensorable as Bitcoin, because they are stored in the Bitcoin chain and read via normal Bitcoin explorers. How it works is also described in the README.md of https://github.com/MichiSpebach/plebnames, it is a really simple protocol.

Test

The integration can be tested by searching for "test.btc" which returns a valid pleb name with attached npub.

@ndee ndee force-pushed the integrate-plebname-search branch from 4bd2827 to f8388bc Compare September 28, 2024 21:19
Copy link
Copy Markdown

@MichiSpebach MichiSpebach left a comment

Choose a reason for hiding this comment

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

Unless the two .vscode files that where added it looks good. It is straight forward and does not add much weight.

Comment thread .vscode/settings.json Outdated
@ndee ndee marked this pull request as ready for review September 30, 2024 09:58
@ndee ndee changed the title Integrate "plebname" user search Integrate alice.btc user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin Sep 30, 2024
@ndee ndee changed the title Integrate alice.btc user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin Integrate alice.btc user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin Sep 30, 2024
@ndee ndee changed the title Integrate alice.btc user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin Integrate plebname (.btc) user search: decentralized, uncensorable and unique aliases for npubs on Bitcoin Sep 30, 2024
@DiegoYegros
Copy link
Copy Markdown

👀

@MichiSpebach
Copy link
Copy Markdown

We now host a NIP-05 Provider at https://pleb.name/ that does the lookup in the Bitcoin chain. So searching for Plebnames with @pleb.name (like https://njump.me/ndee@pleb.name) works now on all Nostr clients and pleb.name only does a lookup in the Bitcoin chain like described at https://plebnames.org/. Nevertheless https://pleb.name/ is a single point of failure and could be corrupted and in the long run it is important that Nostr clients do the lookup in the Bitcoin chain by themselves like this pull request proposes.

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.

4 participants