Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 3.13 KB

INTRODUCTION.md

File metadata and controls

27 lines (18 loc) · 3.13 KB

Introduction

What is WNS?

WNS is the Wanchain Name Service, a distributed, open, and extensible naming system based on the Wanchain blockchain.
WNS is to map human-readable names like portal.wan to machine-readable identifiers such as Wanchain addresses, content hashes, and metadata. WNS also supports reverse resolution, making it possible to associate metadata such as canonical names or interface descriptions with Wanchain addresses.

WNS has similar goals to DNS, the Internet’s Domain Name Service, but has significantly different architecture, due to the capabilities and constraints provided by the Wanchain blockchain. Like DNS, WNS operates on a system of dot-separated hierarchial names called domains, with the owner of a domain having full control over the allocation of subdomains.

Top-level domains, like .wan are owned by smart contracts called registrars, which specify rules governing the allocation of their subdomains. Anyone may, by following the rules imposed by these registrar contracts, obtain ownership of a second-level domain for their own use.

Why we need WNS?

Blockchain addresses are not friendly enough to humans, �the hash addresses are too long, hard to remember, and not easy to identify which is correct or incorrect.

The blockchain now becomes more and more popular, the shortcomings of address transfer will become more and more obvious. Just as we are sending emails today, it is difficult to use a 32-bit string as an email account. Therefore, an alias service is very helpful for the ease of use of the blockchain system. For example, IPFS has an alias service called InterPlanetary Name Service (IPNS), and Ethereum has its own domain name service called Ethereum Name Service (ENS). We do think that Wanchain system should also have its own alias service. Called Wanchain Name Service (WNS),

WNS use cases

The most important use case of the WNS is for transfer, especially those address that need to disclose their own transfer address and do not change the address frequently.

For example, such as ICO smart contract, the project party needs to disclose its official smart contract address in advance on the official website, but it may be modified by hackers. The address, however, it is difficult for investors to find out which is correct or incorrect. If the project party announces a short and easy-to-remember address alias such as WNS, the WNS will be easily recognise, so that the smart contract address can be prevented from being modified by the hacker.

The Expandability of WNS

What kind of resource an alias should point to is flexible and can be implemented just by implementing the corresponding WNS resolvers. In addition to pointing to an address, it can also point to a contract address, thus enabling interaction through WNS and smart contracts.

Resources

  • EIP137 - Ethereum Name Service
  • EIP162 - Initial ENS Registrar Specification
  • EIP1062 - Formalize IPFS hash into ENS(Ethereum Name Service) resolver