#[derive(Debug, thiserror::Error)]
pub enum TangleError {
#[error("Not an active operator")]
NotActiveOperator,
#[error("Transport error: {0}")]
Transport(String),
#[error("Contract error: {0}")]
Contract(String),
#[error("Keystore error: {0}")]
Keystore(String),
#[error("Keystore error: {0}")]
KeystoreError(#[from] blueprint_keystore::Error),
#[error("Unable to convert compressed ECDSA key to uncompressed key")]
DecompressEcdsaKey,
#[error("Not configured for Tangle")]
NotTangle,
#[error("Missing configuration: {0}")]
MissingConfig(String),
#[error("Transaction error: {0}")]
Transaction(String),
}