For my project, I have to build a blockchain using ECDSA address in order to be compatible with Ethereum. But the native address is in sr25519 scheme in substrate. What should I do to implement this? Are there any best practices?
1 Answer
AFAIK substrate supports a couple of signature schemes, among them secp256k1. Moonbeam is a chain built with substrate which uses Ethereum-compatible unified accounts. I suggest looking at their docs and/or code for more detailed information.
-
Thank you for your answer! Does it mean I have to do some "Deep customization" to substrate except only coding for a pallet?– kugoolCommented Sep 2, 2022 at 1:50
-
I wouldn't say it's very 'deep customization'. Please have a look at this code in the Moonbeam repository. This is how the 'unified accounts' are implemented. Commented Sep 5, 2022 at 7:57