Expand description
Bitcoin wallet utilities for Kobe CLI.
Provides Bitcoin address derivation from a unified kobe_core::Wallet.
§Features
std(default): Enable standard library supportalloc: Enable heap allocation without full std (forno_stdenvironments)rand: Enable random key generation forStandardWallet
§Usage
use kobe_core::Wallet;
use kobe_btc::{Deriver, Network, AddressType};
// Create a wallet from kobe-core
let wallet = Wallet::generate(12, None).unwrap();
// Derive Bitcoin addresses from the wallet
let deriver = Deriver::new(&wallet, Network::Mainnet).unwrap();
let addr = deriver.derive(AddressType::P2wpkh, 0, false, 0).unwrap();
println!("Address: {}", addr.address);Structs§
- Derivation
Path - BIP32 derivation path.
- Derived
Address - A derived Bitcoin address with associated keys.
- Deriver
- Bitcoin address deriver from a unified wallet seed.
- Standard
Wallet - A standard Bitcoin wallet with a single private key.
Enums§
- Address
Type - Bitcoin address types.
- Error
- Errors that can occur during Bitcoin wallet operations.
- Network
- Supported Bitcoin networks.