pub trait TryPublicKeyFrom<T>: Key + Sized {
    // Required method
    fn try_pk_from(x: T) -> Result<Self, KeyError>;
}
Expand description

Attempt a value -> PublicKey conversion that consumes the input value. The opposite of TryIntoPublicKey.

Required Methods§

source

fn try_pk_from(x: T) -> Result<Self, KeyError>

Implementors§