Enum nostr_types::Error
source · pub enum Error {
Show 56 variants
AssertionFailed(String),
BadEncryptedMessage,
BadEncryptedMessageBase64(DecodeError),
Base64(DecodeError),
Bech32Decode(DecodeError),
Bech32Encode(EncodeError),
Bech32Hrp(Error),
Crypto(Error),
PrivateKeyEncryption,
FromUtf8(FromUtf8Error),
WrongBech32(String, String),
KeyOrSignature(Error),
EventInFuture,
Fmt(Error),
HashMismatch,
HexDecode(FromHexError),
InvalidEncryptedPrivateKey,
InvalidEncryptedEvent,
InvalidId,
InvalidIdPrefix,
InvalidLength(InvalidLength),
InvalidNAddr,
InvalidNEvent,
InvalidOperation,
InvalidPrivateKey,
InvalidProfile,
InvalidPublicKey,
InvalidPublicKeyPrefix,
InvalidRecipient,
InvalidUrl(ParseError),
InvalidUrlTlv,
InvalidUrlHost(String),
InvalidUrlScheme(String),
InvalidUrlMissingAuthority,
NonReplaceableAddr,
NoPrivateKey,
NoPublicKey,
OutOfRange(usize),
ParseInt(ParseIntError),
Scrypt,
SerdeJson(Error),
SignerIsLocked,
Slice(TryFromSliceError),
Speedy(Error),
TagMismatch,
UnknownEventKind(u32),
UnknownKeySecurity(u8),
UnknownCipherVersion(u8),
Unpad(UnpadError),
Url(String),
Utf8Error(Utf8Error),
WrongEventKind,
WrongLengthHexString,
WrongLengthKindBytes,
WrongDecryptionPassword,
ZapReceipt(String),
}
Expand description
Errors that can occur in the nostr-proto crate
Variants§
AssertionFailed(String)
Assertion failed
BadEncryptedMessage
Bad Encrypted Message
BadEncryptedMessageBase64(DecodeError)
Bad Encrypted Message due to bad Base64
Base64(DecodeError)
Base64 error
Bech32Decode(DecodeError)
Bech32 decode error
Bech32Encode(EncodeError)
Bech32 encode error
Bech32Hrp(Error)
Bech32 HRP error
Crypto(Error)
Crypto error
PrivateKeyEncryption
Encryption/Decryption Error
FromUtf8(FromUtf8Error)
From utf8 Error
WrongBech32(String, String)
Bech32 error
KeyOrSignature(Error)
Key or Signature error
EventInFuture
Event is in the future
Fmt(Error)
Formatting error
HashMismatch
A hash mismatch verification error
HexDecode(FromHexError)
Hex string decoding error
InvalidEncryptedPrivateKey
Invalid encrypted private key
InvalidEncryptedEvent
Invalid encrypted event
InvalidId
Invalid event Id
InvalidIdPrefix
Invalid event Id Prefix
InvalidLength(InvalidLength)
Invalid digest length
InvalidNAddr
Invalid NAddr
InvalidNEvent
Invalid NEvent
InvalidOperation
Invalid Operation
InvalidPrivateKey
Invalid Private Key
InvalidProfile
Invalid Profile
InvalidPublicKey
Invalid public key
InvalidPublicKeyPrefix
Invalid public key prefix
InvalidRecipient
Invalid recipient
InvalidUrl(ParseError)
Invalid URL
InvalidUrlTlv
Invalid URL TLV encoding
InvalidUrlHost(String)
Invalid URL Host
InvalidUrlScheme(String)
Invalid URL Scheme
InvalidUrlMissingAuthority
Missing URL Authority
NonReplaceableAddr
Addr to a non-replaceable event kind
NoPrivateKey
No Private Key
NoPublicKey
No Public Key
OutOfRange(usize)
Out of Range
ParseInt(ParseIntError)
Parse integer error
Scrypt
Scrypt error
SerdeJson(Error)
Serialization error
SignerIsLocked
Signer is locked
Slice(TryFromSliceError)
Try from slice error
Speedy(Error)
Speedy error
TagMismatch
Tag mismatch
UnknownEventKind(u32)
Unknown event kind
UnknownKeySecurity(u8)
Unknown Key Security
UnknownCipherVersion(u8)
Unknown Cipher Version
Unpad(UnpadError)
Unpad error
Url(String)
Url Error
Utf8Error(Utf8Error)
UTF-8 error
WrongEventKind
Wrong event kind
WrongLengthHexString
Wrong length hex string
WrongLengthKindBytes
Wrong length bytes for event kind
WrongDecryptionPassword
Wrong Decryption Password
ZapReceipt(String)
Zap Receipt issue