Convert Ethereum or Bitcoin address to Polkadot or Substrate-based address

Viewed 632

I would like to convert user's Ethereum address for example(0xc5D3a7d27DbDe23A7FC5E53F1a6f17F38C03194F) to substrate based address in this case(5DXoin5qNbzKt88CxDtx86vmaCxhxYzEfEWXahTvwgYMf4Gq). I manage to do it via subkey although it is based on the mnemonic, is it possible for me to convert any public address in any network to substrate-based address? The reason to do this is to to allow users with existing address and infrastructure such as Metamask or Trezor can use Polkadot and other substrate-based chain.

1 Answers

MetaMask is implementing a new feature called snaps: (Documentation).

Once this functionality becomes standard, it would become trivial to make a snap that manages keychains for Polkadot. For example, here is the FileCoin snap: https://github.com/Chainsafe/filsnap/

Related