did_crypto/crypto/mod.rs
1use crate::{algorithms::Algorithm, errors::Error};
2
3pub mod ecdsa;
4pub mod eddsa;
5pub mod rsa;
6
7pub trait SignFromKey {
8 fn sign(&self, content: String, alg: Algorithm) -> Result<String, Error>;
9}
10
11pub trait VerifyFromKey {
12 fn verify(&self, content: String, signature: String, alg: Algorithm) -> Result<bool, Error>;
13}