pub enum NostrKeypairError {
Show 14 variants
InvalidKey,
Bech32DecodeError(DecodeError),
Bech32EncodeError(EncodeError),
HexDecodeError(FromHexError),
HrpParseError,
Nip01Error(NostrErrors),
Nip04Error(Nip04Error),
Nip44Error(Nip44Error),
Nip59Error(Nip59Error),
K256Error(Error),
ConversionError(Infallible),
SharedSecretError,
NotExtractable,
Bip39Error(Error),
}Expand description
Errors that can occur when working with Nostr keypairs and cryptographic operations
Variants§
InvalidKey
Bech32DecodeError(DecodeError)
Bech32EncodeError(EncodeError)
HexDecodeError(FromHexError)
HrpParseError
Nip01Error(NostrErrors)
Nip04Error(Nip04Error)
Nip44Error(Nip44Error)
Nip59Error(Nip59Error)
K256Error(Error)
ConversionError(Infallible)
NotExtractable
Bip39Error(Error)
Trait Implementations§
Source§impl Debug for NostrKeypairError
impl Debug for NostrKeypairError
Source§impl Display for NostrKeypairError
impl Display for NostrKeypairError
Source§impl Error for NostrKeypairError
impl Error for NostrKeypairError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DecodeError> for NostrKeypairError
impl From<DecodeError> for NostrKeypairError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for NostrKeypairError
impl From<EncodeError> for NostrKeypairError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for NostrKeypairError
impl From<Error> for NostrKeypairError
Source§impl From<Error> for NostrKeypairError
impl From<Error> for NostrKeypairError
Source§impl From<FromHexError> for NostrKeypairError
impl From<FromHexError> for NostrKeypairError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for NostrKeypairError
impl From<Infallible> for NostrKeypairError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<Nip04Error> for NostrKeypairError
impl From<Nip04Error> for NostrKeypairError
Source§fn from(source: Nip04Error) -> Self
fn from(source: Nip04Error) -> Self
Converts to this type from the input type.
Source§impl From<Nip44Error> for NostrKeypairError
impl From<Nip44Error> for NostrKeypairError
Source§fn from(source: Nip44Error) -> Self
fn from(source: Nip44Error) -> Self
Converts to this type from the input type.
Source§impl From<Nip59Error> for NostrKeypairError
impl From<Nip59Error> for NostrKeypairError
Source§fn from(source: Nip59Error) -> Self
fn from(source: Nip59Error) -> Self
Converts to this type from the input type.
Source§impl From<NostrErrors> for NostrKeypairError
impl From<NostrErrors> for NostrKeypairError
Source§fn from(source: NostrErrors) -> Self
fn from(source: NostrErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NostrKeypairError
impl !RefUnwindSafe for NostrKeypairError
impl Send for NostrKeypairError
impl Sync for NostrKeypairError
impl Unpin for NostrKeypairError
impl !UnwindSafe for NostrKeypairError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more