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

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

Note

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

Required Methods§

source

fn to_eth_address(&self) -> Result<[u8; 20], ()>

Returns Ethereum address calculated from this ECDSA public key.

Implementations on Foreign Types§

source§

impl ECDSAExt for Public

Implementors§