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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ParseableKey for PublicKey

source§

impl ParseableKey for XOnlyPublicKey

Implementors§