frame_support::crypto::ecdsaTrait ECDSAExt
Source 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
.
Returns Ethereum address calculated from this ECDSA public key.