1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Bitcoin HD wallet derivation for Kobe.
//!
//! Derives Bitcoin addresses from a [`kobe_primitives::Wallet`] seed following
//! BIP-32/44/49/84/86. Supports P2PKH, P2SH-P2WPKH, P2WPKH, and P2TR
//! address types across mainnet and testnet.
//!
//! # Architectural note: why `kobe-btc` does not use `kobe_primitives::bip32`
//!
//! Every other secp256k1 chain in the workspace derives keys through
//! [`kobe_primitives::Wallet::derive_secp256k1`] (backed by the `bip32`
//! crate). `kobe-btc` is the sole exception: it builds a
//! [`bitcoin::bip32::Xpriv`] directly from
//! [`kobe_primitives::Wallet::seed`] so the entire pipeline —
//! [`bitcoin::PrivateKey::to_wif`], [`bitcoin::key::CompressedPublicKey`],
//! the native [`bitcoin::Address`] enum, and the BIP-44/49/84/86 path
//! constants — stays inside the `bitcoin` crate's type system.
//!
//! The two BIP-32 implementations are held to the same test vectors (see
//! the `kat_bip84_*`, `kat_bip49_*`, `kat_bip86_*`, and `wif_roundtrips_*`
//! tests), so users never observe the divergence. If you need to unify on a
//! single secp256k1 pipeline, note that giving up Bitcoin's native
//! `Address` / WIF layer would require re-implementing every Bitcoin
//! address encoding by hand — a net negative for maintenance and audit.
extern crate alloc;
pub use ;
pub use ;
pub use ;
pub use DerivationPath;
pub use ;