Secret contract based DNS service for Enigma blockchain.
NOTE: Current implementation does not do any authorization and there is no registration fee as the Enigma still lacks functionality like msg.sender and two-way communication with Ethereum.
Implements the backend functionality as an Enigma secret contract. It is possible to:
- Register a domain.
- Change the domain pointer.
- Resolve a domain.
Install discovery-cli: https://github.com/enigmampc/discovery-cli .
Run:
discovery init
discovery start
discovery compile
discovery migrate
Currently the following functionality has been implemented:
- Register a domain.
- Change domain pointer.
- Test the domain resolving.
Run:
cd client
npm install
npm start
Has been tested with Firefox 70.
The extension intercepts all page load calls and checks if the target URL is under a .enigma-domain. Then it calls the enigmadns backend to resolve the domain into a raw IP address or a different domain name and replaces the target URL with the resolved address.
cd browser-ext
npm install
npm run build
- Open Firefox and navigate to about:debugging.
- Select "This Firefox".
- Select "Load temporary add-on" and select browser-ext/addon/manifest.json.