Skip to content

OpenBazaar/wns

Repository files navigation

Worldwide OpenBazaar resource finder naming service (WorfNS)

WorfNS is a simple naming service to register unique human-readable handles that map to OpenBazaar addresses (i.e. peerIDs). This means that instead of finding a store using an address like QmYEChohLWGxbdgezhwSbaeCsTAG5iimzSkZyhLLUHv2TC, you can use @drwasho instead!

Registering a handle is free and are claimed on a first-come-first-served basis. The only cost is the network transaction fee (i.e. gas) required to register the handle in the WorfNS smart contract.

WorfNS was inspired by the awesome work of Dani Grant creating https://gravity.cool.

Features

You can register the following data in WorfNS:

  1. Handle. The handle must be unique.
  2. Ethereum account. One account can register multiple handles, and handles can be transferred to other accounts.
  3. Display name. This is a non-unique name associated with your handle.
  4. Image location. The avatar URI of an image (can be a URL or IPFS hash).
  5. peerID. The OpenBazaar address of your node.

Status

WorfNS is a proof-of-concept and is deployed in the Rinkeby Ethereum testnet. The smart contract is not audited, and we're inviting the community to leave feedback and make suggestions.

Deployment

  • Contract is deployed on the Rinkeby network
  • Contract address: 0x75483ee05abdf364ae5dbe313a0366d32c1a0ffe
  • ABI JSON
  • You can interact with the contract and register a name here: https://openbazaar.github.io/wns/

Gas costs

It costs 176,247 gas to register a handle.

Function Gas cost Cost*
Create a handle 176,247 $0.10
Remove a handle 31,775 $0.02
Transfer a handle 34,248 $0.02
Change display name 39,697 $0.02
Change peerID 38,840 $0.02
Change image 21,871 $0.01
Create handle for another account 135,009 $0.08

(*) Based on today's gas cost of 2.1 gwei/gas and exchange rate

Price estimates for creating a handle at higher gas costs:

Gas level Gwei Cost
Low 1 $0.05
Medium 10 $0.49
High 100 $4.9

Why?

Many of us are frustrated by the complexity and cost of existing naming services. While a decentralized naming service is vulnerable to squatters, some attempts to mitigate this have made the process of registering a name cumbersome, confusing, and expensive. The WorfNS philosophy is to not try and fight against squatters; sometimes an imperfect but simpler solution is better received by end-users.

Having said that, WorfNS should not be seen as a competitor to ENS, or any other decentralized naming service. OpenBazaar presently supports any naming service being used to resolve handles to OpenBazaar addresses (including Blockstack and ENS).

License

MIT

Special thanks

image

About

Worldwide OpenBazaar resource finder naming service (WorfNS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published