Expand description
Multi-chain HD wallet derivation — umbrella crate.
This crate re-exports kobe_primitives and all chain-specific crates behind
feature flags, so a single dependency covers everything:
[dependencies]
kobe = { version = "2.0", features = ["evm", "btc", "svm"] }use kobe::prelude::*;
use kobe::evm::Deriver;
let wallet = Wallet::from_mnemonic("abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about", None)?;
let account = Deriver::new(&wallet).derive(0)?;
println!("path={} address={}", account.path(), account.address());Re-exports§
pub use kobe_aptos as aptos;pub use kobe_btc as btc;pub use kobe_cosmos as cosmos;pub use kobe_evm as evm;pub use kobe_fil as fil;pub use kobe_nostr as nostr;pub use kobe_spark as spark;pub use kobe_sui as sui;pub use kobe_svm as svm;pub use kobe_ton as ton;pub use kobe_tron as tron;pub use kobe_xrpl as xrpl;
Modules§
- bip32
- BIP-32 secp256k1 key derivation utilities.
- camouflage
- Mnemonic camouflage via entropy-layer XOR encryption.
- mnemonic
- BIP-39 mnemonic utilities.
- prelude
- Common imports for downstream users.
- rand_
core - Random number generation traits
- slip10
- SLIP-0010 Ed25519 key derivation.
Structs§
- Derived
Account - A derived HD account — unified across all chains.
- Parse
Derivation Style Error - Error returned when
FromStrfails on a chain’sDerivationStyle. - Wallet
- A unified HD wallet that can derive keys for multiple cryptocurrencies.
Enums§
- Derive
Error - Errors produced by HD derivation, mnemonic handling, and address encoding.
- Derived
Public Key - Strongly typed public key emitted by an HD derivation.
- Language
- Language to be used for the mnemonic phrase.
- Public
KeyKind - Tag describing
DerivedPublicKey’s variant without carrying the bytes.
Traits§
- Derivation
Style - Trait implemented by every chain’s
DerivationStyleenum. - Derive
- Unified derivation trait implemented by every chain deriver.
- Derive
Ext - Extension trait providing batch derivation for every
Deriveimplementor.
Functions§
- derive_
range - Derive a range of accounts by repeatedly invoking a derivation closure.
Type Aliases§
- Result
- Convenient Result alias.