Trait miniscript::miniscript::decode::ParseableKey
source · 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§
sourcefn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>
fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>
Parse a key from slice