use crate::core::transaction;
use util::secp;
#[derive(Clone, Debug, Eq, thiserror::Error, PartialEq, Serialize, Deserialize)]
pub enum Error {
#[error("LibTx Secp Error, {source:?}")]
Secp {
#[from]
source: secp::Error,
},
#[error("LibTx Keychain Error, {source:?}")]
Keychain {
#[from]
source: keychain::Error,
},
#[error("LibTx Transaction Error, {source:?}")]
Transaction {
#[from]
source: transaction::Error,
},
#[error("LibTx Signature Error, {0}")]
Signature(String),
#[error("LibTx Rangeproof Error, {0}")]
RangeProof(String),
#[error("LibTx Other Error, {0}")]
Other(String),
}