emerald-vault 0.36.0

Emerald Vault - Key Storage for Emerald Wallet
Documentation
use uuid::Uuid;

/// Interface to an identifiable entiry, i.e. that stored on can be stored in the Vault as an individual object
pub trait HasUuid {
    /// Return current id
    fn get_id(&self) -> Uuid;
}

pub trait IsVerified {
    fn verify(self) -> Result<Self, String>
        where
            Self: std::marker::Sized;
}

/// For vault items that may use a Global Key
pub trait UsesOddKey {

    ///
    /// Check if it's currently encrypted with an individual key, i.e., is not using Global Key
    fn is_odd_key(&self) -> bool;
}