Enum matrix_sdk_crypto::SignatureError [−][src]
pub enum SignatureError {
UnsupportedAlgorithm,
InvalidKeyId(IdentifierError),
MissingSigningKey,
UserIdMissmatch,
NotAnObject,
NoSignatureFound,
VerificationError,
JsonError(SerdeError),
}Expand description
Error type describin different errors that happen when we check or create signatures for a Matrix JSON object.
Variants
The signature was made using an unsupported algorithm.
The ID of the signing key isn’t a valid key ID.
The signing key that should create or check a signature is missing.
The user id of signing key differs from the user id that provided the signature.
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
The signature couldn’t be verified.
JsonError(SerdeError)The signed object couldn’t be deserialized.
Tuple Fields of JsonError
0: SerdeErrorTrait Implementations
Performs the conversion.