#![warn(missing_docs)]
pub(crate) mod bip38;
pub(crate) mod bip39;
pub(crate) mod bip49;
pub(crate) mod bip85;
pub(crate) mod bit_operation;
pub(crate) mod complex;
pub(crate) mod diagram;
pub(crate) mod password;
pub(crate) mod simple;
pub(crate) mod words;
pub use bip38::Encryptor;
pub use bip39::Derivation as BIP39;
pub use bip49::Derivation as BIP49;
pub use bip85::{Derivation as BIP85, Language, Password};
#[doc(no_inline)]
pub use bitcoin::{self, bip32::Xpriv};
pub use complex::ComplexDiagram;
pub use diagram::Diagram;
pub use simple::SimpleDiagram;
pub mod error {
pub use super::bip38::EncryptError;
pub use super::bip85::DeriveError;
pub use super::bitcoin::bip32::Error as Bip32Error;
pub use super::diagram::DiagramError;
use thiserror::Error;
#[derive(Error, Debug, PartialEq)]
pub enum Error {
#[error("diagram error")]
DiagramError(#[from] DiagramError),
#[error("encrypt error")]
EncryptError(#[from] EncryptError),
#[error("bip85 error")]
Bip85Error(#[from] DeriveError),
#[error("bip32 error")]
Bip32Error(#[from] Bip32Error),
}
pub type ArtResult<T = ()> = Result<T, Error>;
}
pub use error::Error;