Skip to main content

Supported Chains

Kobe supports key derivation for Bitcoin, Ethereum, and Solana from a single BIP-39 mnemonic.

Bitcoin (kobe-btc)

cargo add kobe kobe-btc

Four address types are supported:

Address TypeStandardExample Prefix
P2PKH (Legacy)BIP-441…
P2SH-P2WPKH (Nested SegWit)BIP-493…
P2WPKH (Native SegWit)BIP-84bc1q…
P2TR (Taproot)BIP-86bc1p…
use kobe::Wallet;
use kobe_btc::{AddressType, Deriver, Network};

let wallet = Wallet::generate(12, None)?;

let deriver = Deriver::new(wallet.seed(), AddressType::P2wpkh, Network::Mainnet);
let addr = deriver.derive(0)?;

println!("Address: {}", addr.address);
println!("Path: {}", addr.path);

Ethereum (kobe-evm)

cargo add kobe kobe-evm

Three derivation styles match popular wallet applications:

StylePath PatternCompatible With
Standardm/44'/60'/0'/0/iMetaMask, most wallets
Ledger Livem/44'/60'/i'/0/0Ledger Live
Ledger Legacym/44'/60'/0'/iLedger Legacy
use kobe::Wallet;
use kobe_evm::{DerivationStyle, Deriver};

let wallet = Wallet::from_mnemonic("abandon … about", None)?;

let deriver = Deriver::new(wallet.seed(), DerivationStyle::Standard);
let addr = deriver.derive(0)?;

println!("Address: {}", addr.address); // 0x9858EfFD…

Solana (kobe-svm)

cargo add kobe kobe-svm

Four derivation styles using SLIP-10 Ed25519:

StylePath PatternCompatible With
Standardm/44'/501'/i'/0'Phantom, Solflare
Ledger Livem/44'/501'/i'Ledger Live
Trustm/44'/501'/0'Trust Wallet
Legacym/44'/501'Legacy wallets
use kobe::Wallet;
use kobe_svm::{DerivationStyle, Deriver};

let wallet = Wallet::generate(24, None)?;

let deriver = Deriver::new(wallet.seed(), DerivationStyle::Standard);
let addr = deriver.derive(0)?;

println!("Address: {}", addr.address);

Planned Chains

  • kobe-sui — Sui blockchain
  • kobe-xmr — Monero
  • kobe-zec — Zcash