Skip to content

ENS Offchain Gateway for Aleph Zero

License

Notifications You must be signed in to change notification settings

scio-labs/offchain-resolver-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENS Offchain Gateway for Aleph Zero

Aleph Zero EFP

This repository is a fork of the ENS Offchain Resolver repository, maintained by Scio Labs. It supports ENS address resolution on EVM (EIP 3668, ENSIP 10) via the Aleph Zero Substrate network. It specifically targets the AZERO.ID registry, though, it can be easily extended to support other Substrate-based networks and protocols.

Deployments

Important

This project is still under active development.

Testnet¹ Mainnet²
Resolver Contract 0x5cf63C14b82C6E1B95023d8D23e682d12761F56C 0x723f6C968609F62583504DD67307A4Ae4c9Fd886
Gateway https://tzero-id-gateway.nameverse.io https://azero-id-gateway.nameverse.io
ENS Domain *.tzero-id.eth, tzero.eth *.azero-id.eth
¹ Testnet: Ethereum Sepolia & Aleph Zero Testnet
² Mainnet: Ethereum Mainnet & Aleph Zero Mainnet

Packages

The smart contract provides a resolver stub that implement CCIP Read (EIP 3668) and ENS wildcard resolution (ENSIP 10). When queried for a name, it directs the client to query the gateway server. When called back with the gateway server response, the resolver verifies the signature was produced by an authorised signer, and returns the response to the client.

The gateway server implements CCIP Read (EIP 3668), and answers requests by looking up the names on the registry Aleph Zero. Once a record is retrieved, it is signed using a user-provided key to assert its validity, and both record and signature are returned to the caller so they can be provided to the contract that initiated the request. It's designed to be deployed as a Cloudflare worker.

A simple script that resolves a given domain through the ENS protocol (using the gateway server) and verifies the response with the result from the registry contracts directly on the Aleph Zero network.

Getting Started

Important

  • Setup Node.js v20 (recommended via nvm)
  • Install Bun
  • Clone this repository
  1. Run the gateway server (packages/gateway/README.md)
    1. Use the worker url as environment variable when deploying the contracts
  2. Deploy the contracts (packages/contracts/README.md)
    1. Assign the new resolver to your ENS name
  3. Use the provided demo client (packages/client/README.md)