Skip to content

Commit

Permalink
Update ens-improvement-proposals/ensip-17-evmchain-reverse-resolution.md
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Johnson <[email protected]>
  • Loading branch information
jefflau and Arachnid authored May 31, 2024
1 parent 8fa5b3c commit 7253c72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ When a new EVM reverse registrar is deployed, it will need to be setup by the ow
### Resolving Primary ENS Names by a dapp

1) If a dapp has a connected user it SHOULD first check the chainId of the user.
2) It MUST then construct the cointype using ENSIP11: `coinType = 0x80000000 | chainId`, which must be converted to the hexadecimal representation.
2) It MUST then construct the cointype using ENSIP11: `coinType = 0x80000000 | chainId`, which must be converted to lower-case hexadecimal representation.
3) If the chainId is not 1, it SHOULD then construct the ENS node representing the reverse node on that network using the coinType and the user's connected `address`: `node = namehash([address].[coinTypeAsHex].reverse)`
4) Call the registry with the namehash to retrieve the resolver `resolver = registry.resolver(node)`
5) Call name on the resolver `name = resolver.name(node)`
Expand Down

0 comments on commit 7253c72

Please sign in to comment.