An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.

feat(crypto): implement CryptoError enum

authored by malpercio.dev and committed by

Tangled 775b9632 f4ec617b

+15 -1
+11
crates/crypto/src/error.rs
··· 1 + #[derive(Debug, thiserror::Error)] 2 + pub enum CryptoError { 3 + #[error("key generation failed: {0}")] 4 + KeyGeneration(String), 5 + #[error("encryption failed: {0}")] 6 + Encryption(String), 7 + #[error("decryption failed: {0}")] 8 + Decryption(String), 9 + #[error("invalid key id: {0}")] 10 + InvalidKeyId(String), 11 + }
+4 -1
crates/crypto/src/lib.rs
··· 1 1 // crypto: signing, Shamir secret sharing, DID operations. 2 - // Integrates with rsky-crypto. 2 + 3 + pub mod error; 4 + 5 + pub use error::CryptoError;