PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
203 stars 41 forks source link

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

Open ndee opened 1 month ago

ndee commented 1 month ago

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.