#[derive(Debug, PartialEq)]
pub enum HashType {
BLAKE2b,
Ed25519,
None,
}
impl HashType {
#[inline]
pub fn is_blake2b(&self) -> bool {
*self == HashType::BLAKE2b
}
#[inline]
pub fn is_ed25519(&self) -> bool {
*self == HashType::Ed25519
}
#[inline]
pub fn is_none(&self) -> bool {
*self == HashType::None
}
}