pub enum Nip44Error {
Key,
PlaintextLen,
BadPayload,
Mac,
Padding,
Utf8,
}Variants§
Key
A secp256k1 key was malformed, or ECDH failed.
PlaintextLen
Plaintext length is outside 1..=65535.
BadPayload
Payload base64 / structure / version was invalid.
Mac
The MAC did not verify (wrong key or tampered ciphertext).
Padding
The decrypted padding was malformed.
Utf8
Decrypted bytes were not valid UTF-8.
Trait Implementations§
Source§impl Debug for Nip44Error
impl Debug for Nip44Error
Source§impl Display for Nip44Error
impl Display for Nip44Error
impl Eq for Nip44Error
Source§impl PartialEq for Nip44Error
impl PartialEq for Nip44Error
impl StructuralPartialEq for Nip44Error
Auto Trait Implementations§
impl Freeze for Nip44Error
impl RefUnwindSafe for Nip44Error
impl Send for Nip44Error
impl Sync for Nip44Error
impl Unpin for Nip44Error
impl UnsafeUnpin for Nip44Error
impl UnwindSafe for Nip44Error
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.