Skip to main content

Crate kobe

Crate kobe 

Source
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§

DerivedAccount
A derived HD account — unified across all chains.
ParseDerivationStyleError
Error returned when FromStr fails on a chain’s DerivationStyle.
Wallet
A unified HD wallet that can derive keys for multiple cryptocurrencies.

Enums§

DeriveError
Errors produced by HD derivation, mnemonic handling, and address encoding.
DerivedPublicKey
Strongly typed public key emitted by an HD derivation.
Language
Language to be used for the mnemonic phrase.
PublicKeyKind
Tag describing DerivedPublicKey’s variant without carrying the bytes.

Traits§

DerivationStyle
Trait implemented by every chain’s DerivationStyle enum.
Derive
Unified derivation trait implemented by every chain deriver.
DeriveExt
Extension trait providing batch derivation for every Derive implementor.

Functions§

derive_range
Derive a range of accounts by repeatedly invoking a derivation closure.

Type Aliases§

Result
Convenient Result alias.