pub enum NostrKeyError {
Secp,
BadEncoding,
IdentitySig(CertError),
PossessionSig,
}Expand description
Errors building / verifying a Nostr transport binding. Verify-side variants are all fall-throughs: an invalid binding means “no usable Nostr transport”, never a hard failure of card processing.
Variants§
Secp
A secp256k1 secret/pubkey/signature was malformed.
BadEncoding
A field was not valid base64, or the wrong length.
IdentitySig(CertError)
The Ed25519 identity cross-signature did not verify.
PossessionSig
The secp256k1 possession (schnorr) signature did not verify.
Trait Implementations§
Source§impl Debug for NostrKeyError
impl Debug for NostrKeyError
Source§impl Display for NostrKeyError
impl Display for NostrKeyError
impl Eq for NostrKeyError
Source§impl PartialEq for NostrKeyError
impl PartialEq for NostrKeyError
impl StructuralPartialEq for NostrKeyError
Auto Trait Implementations§
impl Freeze for NostrKeyError
impl RefUnwindSafe for NostrKeyError
impl Send for NostrKeyError
impl Sync for NostrKeyError
impl Unpin for NostrKeyError
impl UnsafeUnpin for NostrKeyError
impl UnwindSafe for NostrKeyError
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.