FromKey

Trait FromKey 

Source
pub trait FromKey: Sized {
    // Required methods
    fn from_public_key(key: &PublicKey) -> Self;
    fn from_secret_key(key: &SecretKey) -> Result<Self, Error>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromKey for Address

Implementors§