ENS (Ethereum Name Service)
Registrar
Easy to set up subdomains by:
- Registering domain
- Creating a contract to do the registration (deploy an existing one like FIFSRegistrar for ease)
- Contract can be updated to limit registration with a price gate
Resolver
This is the javascript to use to set the ContentHash:
// using svelte & rollup
import contentHash from '@ensdomains/content-hash/dist/index.js'
const cidToHash = ipfsCid => `0x${contentHash.fromIpfs(ipfsCid)}`