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.
You can register the following data in WorfNS:
- Handle. The handle must be unique.
- Ethereum account. One account can register multiple handles, and handles can be transferred to other accounts.
- Display name. This is a non-unique name associated with your handle.
- Image location. The avatar URI of an image (can be a URL or IPFS hash).
- peerID. The OpenBazaar address of your node.
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.
- 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/
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 |
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).
MIT
- Sameep Singhania
- Dani Grant
- Check out https://gravity.cool/
- Chris Sevilleja
- Website and form based on his tutorial
- Bluma
- Nice boilerplate components
- Worf