relay-crypto 0.1.0

The crypto library for the Relay Ecosystem.
Documentation
pub mod e2e;
pub mod sign;

#[derive(Debug, PartialEq, Eq, thiserror::Error)]
pub enum CryptoError {
    #[error("Key derivation failed")]
    KeyDerivationError,
    #[error("Key record expired")]
    ExpiredKeyRecord,
    #[error("Bad public signature key")]
    BadPublicSignatureKey,
    #[error("Encryption failed")]
    BadSignature,
    #[error("Missing signature")]
    MissingSignature,
    #[error("Encryption failed: {0}")]
    Encrypt(String),
    #[error("Decryption failed: {0}")]
    Decrypt(String),
    #[error("Invalid metadata: {0}")]
    InvalidMeta(String),
}