use thiserror::Error;
#[derive(Error, Debug)]
#[allow(missing_copy_implementations)]
pub enum HashError {
#[error("invalid hash length")]
InvalidLength,
#[error("invalid hex encoding in hash string")]
InvalidHexEncoding,
#[error("can not decode YAMF BLAKE2b hash")]
DecodingFailed,
#[error(transparent)]
YamfHashError(#[from] yamf_hash::error::Error),
}