mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(router): make routes public and move crypto module to common utils (#176)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -54,3 +54,20 @@ pub enum ValidationError {
|
||||
#[error("{message}")]
|
||||
InvalidValue { message: String },
|
||||
}
|
||||
|
||||
/// Cryptograpic algorithm errors
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum CryptoError {
|
||||
/// The cryptographic algorithm was unable to encode the message
|
||||
#[error("Failed to encode given message")]
|
||||
EncodingFailed,
|
||||
/// The cryptographic algorithm was unable to decode the message
|
||||
#[error("Failed to decode given message")]
|
||||
DecodingFailed,
|
||||
/// The cryptographic algorithm was unable to sign the message
|
||||
#[error("Failed to sign message")]
|
||||
MessageSigningFailed,
|
||||
/// The cryptographic algorithm was unable to verify the given signature
|
||||
#[error("Failed to verify signature")]
|
||||
SignatureVerificationFailed,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user