#[cfg(feature = "alloc")]
use alloc::string::String;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
Core(#[from] kobe_core::Error),
#[error("bip32: {0}")]
Bip32(#[from] bitcoin::bip32::Error),
#[cfg(feature = "alloc")]
#[error("{0}")]
InvalidDerivationPath(String),
#[error("invalid private key")]
InvalidPrivateKey,
#[error("secp256k1: {0}")]
Secp256k1(#[from] bitcoin::secp256k1::Error),
}