Skip to content
/ ANS Public
forked from decentldotland/ANS

a Domain Names Service - Gravatar hybrid on the Arweave network

License

Notifications You must be signed in to change notification settings

xylophonez/ANS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arweave Names Service

a Domain Names Service & De-Gravatar hybrid on the Arweave network

Motivation

Using and adopting names service accross Arweave ecosystem has several benefits:

  • faciliate of sharing addresses and sending AR/PSTs
  • create an economic cycle through domains financial activities (trading)
  • the ability to be used as social profiles contructors in Arweave based social networks (e.g. decent.land users)
  • a decentralized gravatar-like use-case

Terminology

  • label: equivalent to domain's name in DNS, such as "decent" in decent.ar
  • user: the controller of the label
  • name: full ANS identifier such as "decent.ar" (label and 'ar' TLD sepperated by a dot)

Label's string handling

ANS registry contract uses the NFKC (Normalization Form Compatibility Composition) unicode normalization algorithm and case folding to normalize the label's string before comparing its length and allowed unicodes that are predefined in the contract. Then, the label get minted and stored according to its processed format (after normalization), following a Nameprep-like methodology.

Allowed unicodes The allowed unicode are those of the lowercase alphabetical characters in addition to integers from 0 to 9. Thus, usernames as known as labels are alphanumeric. The supported UTF-16 code units range from 48 to 57 (0 -> 9) and from 27 to 122 (a -> z).

The usage of the NFKC algorithm allows to reduce the visual security issues like:

  • visual spoofing
  • reduce visual confuses. examples
  • Punnycode and Script spoofing

Available Labels

ANS labels minting is based and limited using the arrangement without repitition of the conditional probability

Knowing that p is that arbitrary label string entered by the user that may be alphanumerical, and n is the total number of allowed characters which is 36 (26 characters from alphabetical characters and 10 characters from the allowed integers). For a better UX, labels of length equal to one are disallowed and cannot be minted, hence, that total number of labels that can ever exist is more than 43B labels. Breakdown:

label length label supply
2 1260
3 42,840
4 1,413,720
5 45,239,040
6 1,402,410,240
7 42,072,307,200

Label scarcity is determined by its length, the lower length it has, the more scarce it is. No renewal fees.

Current implemented minting models:

This section discusses the possible option to be adopted for the label minting process

  • Model Alpha: minting using $DLT

Labels marketplace

Labels may be a new asset with new standars not compatible with PSTs or atomic NFTs standards, thus, that requires building a marketplace dedicted for ANS labels.

characteristics

  • main currency: $DLT
  • create an economical experience and new opportunities
  • incentives for $DLT holders through marketplace earned fees

About

a Domain Names Service - Gravatar hybrid on the Arweave network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.9%
  • Python 5.1%