rustywallet-import
Import private keys from various wallet formats.
Supported Formats
| Format | Description | Example |
|---|---|---|
| WIF | Wallet Import Format | 5HueCGU8... or KwdMAjG... |
| Hex | Raw 64-char hex | 0c28fca3... |
| Mini Key | Casascius format | S6c56bnX... |
| Mnemonic | BIP39 phrase | abandon abandon... |
| BIP38 | Encrypted key | 6PRVWUbk... |
Quick Start
use ;
// Auto-detect format
let result = import_any?;
println!;
// Import WIF directly
let = import_wif?;
// Import hex
let key = import_hex?;
// Import mnemonic with custom path
let config = new
.with_path
.with_passphrase;
let result = import_mnemonic?;
Format Detection
use ;
let format = detect_format;
assert_eq!;
BIP38 Encrypted Keys
BIP38 keys require a password:
use import_bip38;
let key = import_bip38?;
Mnemonic Derivation Paths
use paths;
// BIP44 - Legacy (P2PKH): m/44'/0'/0'/0/0
// BIP49 - SegWit-compatible (P2SH-P2WPKH): m/49'/0'/0'/0/0
// BIP84 - Native SegWit (P2WPKH): m/84'/0'/0'/0/0
License
MIT