narayanprusty / name

Name Registration System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name Registration System

Name contract allows us to register and lock a name for 1 hour. For locking the contract charges 1000 wei per byte.

When the lock expires another user can register and lock the same name and the previous user gets refund looses his ownership.

A user can renew his lock any number of times without any extra fee.

It protects from front running attacks using commit-reveal scheme. Reference links for commit-reveal-scheme:

Run the following command to test it:

npx hardhat test

About

Name Registration System


Languages

Language:Solidity 58.7%Language:JavaScript 41.3%