pub trait ECDSAExt {
    fn to_eth_address(&self) -> Result<[u8; 20], ()>;
Expand description

Extension trait for Public to be used from inside the runtime.


This is needed because host functions cannot be called from within sp_core due to cyclic dependencies on sp_io.

Required Methods

Returns Ethereum address calculated from this ECDSA public key.

Implementations on Foreign Types