3

We are using frontier with substrate to be able to deploy evm smart contract. When I create a transfer between two evm address and that the second one does not exist, the node create a new ss58 address, but I can't figure out what is the used algo? because it does not correspond to subkey is giving for example?

1 Answer 1

2

You can calculated it with this tool: Substrate EVM Utilities. An example with a random account generated:

  Secret phrase:     worth wrestle meat ecology merry ginger online glad soda usage peasant lava
  Network ID:        substrate
  Secret seed:       0x8e940c2a136dadf87c3b4b408866ff5fb1cbb64893a933493341c5e400a81690
  Public key (hex):  0x381faf1906bf0ea763e7e25f110b26b880680d55bed21f52b76d9d5973fcee6e
  Account ID:        0x381faf1906bf0ea763e7e25f110b26b880680d55bed21f52b76d9d5973fcee6e
  Public key (SS58): 5DLHx6nDCn9EiYHryuyELhvsDKBmZGwLZthSdD3cshjAzusN
  SS58 Address:      5DLHx6nDCn9EiYHryuyELhvsDKBmZGwLZthSdD3cshjAzusN

I calculated the Ethereum Address for my account, basically truncating the Public key (hex) value above: 0x381faf1906bf0ea763e7e25f110b26b880680d55

See the Susbtrate docs Access EVM accounts, for more info. And I open a question here a long time with a doubt with the private keys on Frontier if you want more information on that too: Private key for EVM Frontier

Not the answer you're looking for? Browse other questions tagged or ask your own question.