Skip to main content

kobe_btc/
lib.rs

1//! Bitcoin HD wallet derivation for Kobe.
2//!
3//! Derives Bitcoin addresses from a [`kobe::Wallet`] seed following
4//! BIP-32/44/49/84/86. Supports P2PKH, P2SH-P2WPKH, P2WPKH, and P2TR
5//! address types across mainnet and testnet.
6
7#![cfg_attr(not(feature = "std"), no_std)]
8
9#[cfg(feature = "alloc")]
10extern crate alloc;
11
12#[cfg(feature = "alloc")]
13mod address;
14#[cfg(feature = "alloc")]
15mod deriver;
16mod error;
17mod network;
18mod types;
19
20#[cfg(feature = "alloc")]
21pub use deriver::{DerivedAddress, Deriver};
22pub use error::Error;
23pub use network::{Network, ParseNetworkError};
24#[cfg(feature = "alloc")]
25pub use types::DerivationPath;
26pub use types::{AddressType, ParseAddressTypeError};
27
28/// Convenient Result alias.
29pub type Result<T> = core::result::Result<T, Error>;