#![warn(missing_docs)]
pub(crate) mod bip39;
pub(crate) mod bip49;
pub(crate) mod bip85;
pub(crate) mod bits;
pub(crate) mod complex;
pub(crate) mod generic;
pub(crate) mod macros;
pub(crate) mod password;
pub(crate) mod simple;
pub(crate) mod words;
pub use bip39::Derivation as BIP39;
pub use bip49::Derivation as BIP49;
pub use bip85::{Derivation as BIP85, Language, Password, Wif};
#[doc(no_inline)]
pub use bitcoin::{self, bip32::Xpriv};
pub use complex::ComplexDiagram;
pub use generic::{Diagram, GenericDiagram, Vector};
pub use simple::SimpleDiagram;
pub mod error {
pub use super::bip85::Bip85Error;
pub use super::bitcoin::bip32::Error as Bip32Error;
pub use super::generic::GenericError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("bip85 error")]
Bip85Error(#[from] Bip85Error),
#[error("bip32 error")]
Bip32Error(#[from] Bip32Error),
#[error("generic error")]
GenericError(#[from] GenericError),
}
pub type ArtResult<T = ()> = Result<T, Error>;
}
pub use error::Error;