blockful-io / external-resolver

This project aims to scale the Ethereum Name Service (ENS) by consolidating existing patterns and proofs of concept into a unified and production-ready codebase.
MIT License
14 stars 3 forks source link

Register domain DNS encoded name #140

Closed pikonha closed 3 months ago

pikonha commented 3 months ago

Refactor Request

Describe the Refactor Request

We need access to some properties that can't be gathered from the namehash of the domain. We need to have access to the DNS-encoded domain name instead.

Describe Preferred Solution

Change the register function to receive the DNS-encoded name instead of the namehash of it.

// current implementation
function register(bytes32 name, uint32 ttl)

// expected version
function register(bytes memory name, uint32 ttl)

We then need to store the following properties onto the database: