Enum bitcoin::util::misc::MessageSignatureError
source · pub enum MessageSignatureError {
InvalidLength,
InvalidEncoding(Error),
InvalidBase64,
UnsupportedAddressType(AddressType),
}
Available on crate feature
secp-recovery
only.Expand description
An error used for dealing with Bitcoin Signed Messages.
Variants
InvalidLength
Signature is expected to be 65 bytes.
InvalidEncoding(Error)
The signature is invalidly constructed.
InvalidBase64
Invalid base64 encoding.
UnsupportedAddressType(AddressType)
Unsupported Address Type
Trait Implementations
sourceimpl Debug for MessageSignatureError
impl Debug for MessageSignatureError
sourceimpl Display for MessageSignatureError
impl Display for MessageSignatureError
sourceimpl Error for MessageSignatureError
Available on crate feature std
only.
impl Error for MessageSignatureError
Available on crate feature
std
only.sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<MessageSignatureError> for MessageSignatureError
impl PartialEq<MessageSignatureError> for MessageSignatureError
sourcefn eq(&self, other: &MessageSignatureError) -> bool
fn eq(&self, other: &MessageSignatureError) -> bool
impl Eq for MessageSignatureError
impl StructuralEq for MessageSignatureError
impl StructuralPartialEq for MessageSignatureError
Auto Trait Implementations
impl RefUnwindSafe for MessageSignatureError
impl Send for MessageSignatureError
impl Sync for MessageSignatureError
impl Unpin for MessageSignatureError
impl UnwindSafe for MessageSignatureError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more