use thiserror::Error;
#[derive(Error, Debug)]
pub enum KeyPairError {
#[error(transparent)]
Ed25519(#[from] ed25519_dalek::ed25519::Error),
#[error(transparent)]
HexEncoding(#[from] hex::FromHexError),
}
#[derive(Error, Debug)]
#[allow(missing_copy_implementations)]
pub enum AuthorError {
#[error("invalid author key length")]
InvalidLength,
#[error("invalid hex encoding in author string")]
InvalidHexEncoding,
}