#[allow(clippy::module_inception)]
mod bip85;
mod password;
pub use bip85::{Bip85, Wif};
pub use password::Password;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("invalid parameter: {0}")]
InvalidParameter(&'static str),
#[error("bip39 error: {0}")]
Bip39Err(#[from] crate::bip39::Bip39Error),
#[error("address error")]
AddressErr(#[from] bitcoin::key::UncompressedPublicKeyError),
#[error("p2sh error")]
P2shErr(#[from] bitcoin::address::P2shError),
#[error("bip32 error: {0}")]
Bip32Err(#[from] bitcoin::bip32::Error),
#[error("runtime error")]
SecpErr(#[from] bitcoin::secp256k1::Error),
#[error("hex error")]
HexErr(#[from] bitcoin::hex::HexToArrayError),
}