DIP-2: Seamless Account Integration Between EVM and Substrate

Darwinia
DARWINIA NETWORK
Published in
2 min readDec 15, 2023

--

Abstract

To facilitate Ethereum integration, Substrate-based chains are transitioning to H160 account addresses, using ECDSA for signatures. This change streamlines the user experience by consolidating address types and wallets.

Rationale

Ethereum-like and Substrate-based chains differ significantly in their account format.

Ethereum uses H160 for its account addresses, while Substrate opts for H256.

With the EVM being a superior feature, more Substrate-based chains are incorporating it into their systems to tap into Ethereum’s ecosystem Darwinia is doing the same.

However, this creates an issue where users and developers must juggle two distinct address types and wallets.

To avoid this disconnect, we’ve decided to adopt H160 as the native account address type for Substrate.

With this improvement, users only need to interact with one type of account and wallet.

Specification

Utilize ECDSA as the signature algorithm for Substrate native runtime.

The address is 20 bytes long, and the public key no longer has a corresponding SS58 address.

All pallet addresses have been truncated to 20 bytes; simply remove the trailing zeros, which are 12 bytes long.

Copyright

Copyright and related rights waived via CC0.

--

--

Darwinia
DARWINIA NETWORK

As an open cross-chain bridge protocol based on Substrate, Darwinia focuses on the construction of future Internet of Tokens. TG: http://t.me/DarwiniaNetwork