kobe/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//! # Features
7//!
8//! - `std` (default): Enable standard library support
9//! - `alloc`: Enable heap allocation without full std (for `no_std` environments)
10
11#![cfg_attr(not(feature = "std"), no_std)]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16mod error;
17#[cfg(feature = "alloc")]
18mod wallet;
19
20#[cfg(feature = "camouflage")]
21pub mod camouflage;
22#[cfg(feature = "alloc")]
23pub mod mnemonic;
24
25pub use bip39::Language;
26#[cfg(feature = "rand_core")]
27pub use bip39::rand_core;
28pub use error::Error;
29#[cfg(feature = "alloc")]
30pub use wallet::Wallet;
31
32/// A convenient Result type alias for kobe-core operations.
33pub type Result<T> = core::result::Result<T, Error>;