pub trait ParseableKey: Sized + ToPublicKey + Sealed {
    // Required method
    fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>;
}
Expand description

Trait for parsing keys from byte slices

Required Methods§

source

fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>

Parse a key from slice

Implementations on Foreign Types§

source§

impl ParseableKey for XOnlyPublicKey

source§

impl ParseableKey for PublicKey

Implementors§