kobe_core/lib.rs
1//! Core wallet types for Kobe multi-chain wallet CLI.
2//!
3//! This crate provides the unified [`Wallet`] type that holds a BIP39 mnemonic
4//! and derives seeds for multiple cryptocurrencies.
5//!
6//! # Example
7//!
8//! ```
9//! use kobe_core::Wallet;
10//!
11//! // Generate a new wallet
12//! let wallet = Wallet::generate(12, None)?;
13//!
14//! // Or with a passphrase (BIP39 optional password)
15//! let wallet = Wallet::generate(12, Some("my secret passphrase"))?;
16//!
17//! // The same mnemonic can derive addresses for any coin
18//! let seed = wallet.seed();
19//! # Ok::<(), kobe_core::Error>(())
20//! ```
21
22mod error;
23mod wallet;
24
25pub use error::Error;
26pub use wallet::Wallet;