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 = "0.8", features = ["evm", "btc", "svm"] }
use kobe::{Wallet, Derive, DeriveExt};
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)?;

Re-exports§

pub use kobe_btc as btc;
pub use kobe_evm as evm;
pub use kobe_svm as svm;

Modules§

bip32
BIP-32 secp256k1 key derivation utilities.
mnemonic
BIP-39 mnemonic utilities.
slip10
SLIP-0010 Ed25519 key derivation.

Structs§

DerivedAccount
A derived account from any chain.
Wallet
A unified HD wallet that can derive keys for multiple cryptocurrencies.

Enums§

DeriveError
Errors that can occur during wallet operations.
Language
Language to be used for the mnemonic phrase.

Traits§

Derive
Unified derivation trait implemented by all chain derivers.
DeriveExt
Extension trait providing batch derivation for all Derive implementors.

Type Aliases§

Result
Convenient Result alias.