Trait sp_core::crypto::Public

source ·
pub trait Public: ByteArray + Derive + CryptoType + PartialEq + Eq + Clone + Send + Sync {
    // Required method
    fn to_public_crypto_pair(&self) -> CryptoTypePublicPair;
}
Expand description

Trait suitable for typical cryptographic PKI key public type.

Required Methods§

source

fn to_public_crypto_pair(&self) -> CryptoTypePublicPair

Return CryptoTypePublicPair from public key.

Implementors§

source§

impl Public for sp_core::ecdsa::Public

source§

impl Public for sp_core::ed25519::Public

source§

impl Public for sp_core::sr25519::Public

source§

impl Public for Dummy