Writing a Registrar
A registrar in LNS is simply any contract that owns a name, and allocates subdomains of it according to some set of rules defined in the contract code. A trivial first in first served contract is demonstrated below:
You may wish to set custom rules for the allocation of new names to your users; the rules you set are entirely up to you.
Last updated