pub type EditResult<T> = Result<T, EditError>;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum EditError {
#[error("chain unreachable: {0}")]
ChainUnreachable(String),
#[error("the network rejected the edit: {0}")]
Rejected(String),
#[error("the profile's store has no current on-chain coin")]
NoStore,
#[error("profile content does not match the store's on-chain root")]
StaleOrTamperedContent,
#[error("profile content unavailable: {0}")]
ContentUnavailable(String),
#[error("profile format error: {0}")]
Format(String),
#[error("could not build the edit spend: {0}")]
Build(String),
#[error("the account is locked")]
Locked,
#[error("the edit was refused: {0}")]
Refused(String),
}