pub enum SignatureError {
UnsupportedAlgorithm,
InvalidKeyId(IdParseError),
MissingSigningKey,
UserIdMismatch,
NotAnObject,
NoSignatureFound,
VerificationError(SignatureError),
InvalidKey(KeyError),
InvalidSignature,
SigningKeyChanged(Option<Box<Ed25519PublicKey>>, Option<Box<Ed25519PublicKey>>),
JsonError(CanonicalJsonError),
StoreError(CryptoStoreError),
}
Expand description
Error type describing different errors that happen when we check or create signatures for a Matrix JSON object.
Variants§
UnsupportedAlgorithm
The signature was made using an unsupported algorithm.
InvalidKeyId(IdParseError)
The ID of the signing key isn’t a valid key ID.
MissingSigningKey
The signing key that should create or check a signature is missing.
UserIdMismatch
The user id of signing key differs from the user id that provided the signature.
NotAnObject
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
NoSignatureFound
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
VerificationError(SignatureError)
The signature couldn’t be verified.
InvalidKey(KeyError)
The public key isn’t a valid ed25519 key.
InvalidSignature
The signature could not be decoded.
SigningKeyChanged(Option<Box<Ed25519PublicKey>>, Option<Box<Ed25519PublicKey>>)
The signing key that used to sign the object has been changed.
JsonError(CanonicalJsonError)
The signed object couldn’t be deserialized.
StoreError(CryptoStoreError)
The store ran into an error.