Trait sapio_miniscript::miniscript::decode::ParseableKey
source · [−]pub trait ParseableKey: Sized + ToPublicKey + Sealed {
fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>;
}
Expand description
Trait for parsing keys from byte slices
Required methods
fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>
fn from_slice(sl: &[u8]) -> Result<Self, KeyParseError>
Parse a key from slice