sweat-token icon indicating copy to clipboard operation
sweat-token copied to clipboard

Use EIP155 or EIP3770 for unique cross chain DAO EVM address in app URL

Open ivelin opened this issue 3 years ago • 0 comments

Currently DAO address is used in SporosDAO URL for the UI App. Since the same EVM address can be used across any EVM chain, we need a way to specify which chain exactly the DAO is natively deployed on.

EIP3770 is one option as suggested by @shiv. It builds on EIP155. Examples:

EIP-3770 chain-specific address CAIP-10 account identifier
eth:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe eip155:1:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe
ovm:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe eip155:10:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe
poly:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe eip155:137:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe
arb1:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe eip155:42161:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe

Here is an example of EIP155 used in ENS domain listing for NFT avatars:

eip155:1/erc721:0x5Af0D9827E0c53E4799BB226655A1de152A425a5/5606 https://app.ens.domains/name/shivanshi.eth/details

https://medium.com/the-ethereum-name-service/step-by-step-guide-to-setting-an-nft-as-your-ens-profile-avatar-3562d39567fc

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md

https://eips.ethereum.org/EIPS/eip-3770

EIP155's naming scheme appears to be more stable and adopted in implementations. EIP3770 has a slightly more user readable format, but is not recommended for general use in implementations.

ivelin avatar Jun 28 '22 02:06 ivelin