metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

Update ENS resolving implementation to match what is defined in EIP-1577

Open decanus opened this issue 8 years ago • 16 comments

What problem are you trying to solve?

Name resolution is done using the content and multihash fields right now, to try and find a better system @arachnid and I created EIP-1577 that allows for a better representation of network and content addresses.

Describe the solution you'd like

Implement resolution using the new multiaddr field when available.

decanus avatar Nov 13 '18 02:11 decanus

There will be changes made to the EIP so implementation should be paused.

decanus avatar Nov 13 '18 23:11 decanus

The EIP has been updated and should be good to go: https://eips.ethereum.org/EIPS/eip-1577

decanus avatar Nov 19 '18 03:11 decanus

Pinging @PhyrexTsai in case he has bandwidth for this.

danfinlay avatar Nov 19 '18 17:11 danfinlay

@danfinlay @bitpshr probably best to put this on pause, as we expect to update the spec again soon.

decanus avatar Dec 21 '18 17:12 decanus

@danfinlay The EIP has been updated, work should be able to start on it now. https://eips.ethereum.org/EIPS/eip-1577

decanus avatar Jan 10 '19 22:01 decanus

Cant connect blank screen at least 8hrs of nothing but blank

Platinumwrist avatar Jan 11 '19 08:01 Platinumwrist

@Platinumwrist could you share your UI and background logs on issue https://github.com/MetaMask/metamask-extension/issues/4894 to help us debug. This issue is for something entirely different.

Instructions how to find those logs are here.

bdresser avatar Jan 11 '19 19:01 bdresser

Hi ! I have wirtten a small JS lib to implement EIP1577 ! @decanus and the ENS team have used it for the ENS Manager dApp (issue), so I think it could also help in Metamask :) Also it would be an honnor for me to contribute !

pldespaigne avatar Mar 11 '19 11:03 pldespaigne

@pldespaigne that's fantastic! We would be incredibly grateful for the contribution, we want our ENS support to reflect the latest standard. Please let us know if you have any questions!

danfinlay avatar Mar 13 '19 04:03 danfinlay

OK I will be working on it :grinning: ! Can you help me to find my way through the metamask codebase ?

pldespaigne avatar Mar 13 '19 10:03 pldespaigne

I believe our current implementation is in this folder: https://github.com/MetaMask/metamask-extension/tree/develop/app/scripts/lib/ens-ipfs

I was just made aware of this library, which may be useful for allowing us to resolve a variety of decentralized name services, although I need to look into it more (can it use our user's configured blockchain provider?) https://github.com/unstoppabledomains/namicorn

danfinlay avatar Mar 27 '19 16:03 danfinlay

namicorn looks okay, but I'm not sure of its value: The format of its returned data seems to depend on the provider, and it doesn't attempt to encode or decode the content hash data at all. I'm not sure it would save you any time over just using our libraries (or calling the contracts) directly.

Arachnid avatar Mar 27 '19 23:03 Arachnid

Work in progress ;)

pldespaigne avatar Apr 04 '19 15:04 pldespaigne

ping @danfinlay @kumavis @decanus @Arachnid work done ✔️ review requested here

pldespaigne avatar May 04 '19 17:05 pldespaigne

Guys ? Is there anybody to review my PR ? @danfinlay @kumavis @bdresser

pldespaigne avatar May 13 '19 08:05 pldespaigne

Closed in https://github.com/MetaMask/metamask-extension/pull/6402

bdresser avatar Jun 05 '19 20:06 bdresser