signstar_crypto/traits/
mod.rs

1//! Traits for cryptography related items.
2
3use crate::passphrase::Passphrase;
4
5/// An abstraction for a user with a passphrase.
6pub trait UserWithPassphrase: std::fmt::Debug {
7    /// Returns the name of the user as owned string.
8    fn user(&self) -> String;
9
10    /// Returns the passphrase of the user.
11    fn passphrase(&self) -> &Passphrase;
12}