relay_crypto/crypto/
mod.rs1pub mod e2e;
2pub mod sign;
3
4#[derive(Debug, PartialEq, Eq, thiserror::Error)]
5pub enum CryptoError {
6 #[error("Key derivation failed")]
7 KeyDerivationError,
8 #[error("Key record expired")]
9 ExpiredKeyRecord,
10 #[error("Bad public signature key")]
11 BadPublicSignatureKey,
12 #[error("Encryption failed")]
13 BadSignature,
14 #[error("Missing signature")]
15 MissingSignature,
16 #[error("Encryption failed: {0}")]
17 Encrypt(String),
18 #[error("Decryption failed: {0}")]
19 Decrypt(String),
20 #[error("Invalid metadata: {0}")]
21 InvalidMeta(String),
22}