Trait FromPublicKey

Source
pub trait FromPublicKey: Sized {
    // Required methods
    fn from_public_key<P>(public_key: &P) -> Self
       where P: HasPublicKeyHash;
    fn from_public_key_hash<P>(public_key_hash: P) -> Self
       where P: IsPublicKeyHash;
}

Required Methods§

Source

fn from_public_key<P>(public_key: &P) -> Self

Source

fn from_public_key_hash<P>(public_key_hash: P) -> Self
where P: IsPublicKeyHash,

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.

Implementors§