claw-crypto-interface 0.3.0

Types and traits for the claw-crypto crate
Documentation
1
2
3
4
5
6
7
8
use mockall::automock;

#[automock]
pub trait HashService {
    fn hash(&self, string: &str) -> Result<String, ()>;

    fn verify(&self, token: &str, token_hash: &str) -> bool;
}