rustywallet-cli-0.1.2 is not a library.
rustywallet-cli
A secure, cross-platform command-line tool for cryptocurrency wallet operations supporting Bitcoin, Ethereum, and other blockchain networks.
Features
- Private Key Generation: Generate cryptographically secure private keys in hex or WIF format
- Mnemonic Support: Create and validate BIP39 mnemonic phrases (12/15/18/21/24 words)
- HD Wallet Derivation: Hierarchical deterministic wallet support with custom derivation paths
- Multi-Chain Address Generation: Support for Bitcoin (Legacy, SegWit, Taproot) and Ethereum addresses
- Message Signing: Sign messages using Bitcoin (BIP-137) and Ethereum (EIP-191) standards
- Signature Verification: Verify message signatures for both Bitcoin and Ethereum
- Cross-Platform: Works on Linux, macOS, and Windows
- Secure: No network connections, all operations performed locally
Installation
From Crates.io
From Source
Commands
generate - Generate Private Keys
Generate cryptographically secure private keys.
# Generate private key in hex format (default)
# Generate private key in WIF format for mainnet
# Generate private key in WIF format for testnet
Options:
--format: Output format (hexorwif, default:hex)--network: Network for WIF format (mainnetortestnet, default:mainnet)
mnemonic - Mnemonic Operations
Generate and validate BIP39 mnemonic phrases.
# Generate 12-word mnemonic (default)
# Generate 24-word mnemonic
# Generate mnemonic and show seed
# Validate existing mnemonic
# Generate with custom entropy length
Options:
--words: Number of words (12, 15, 18, 21, 24, default:12)--show-seed: Display the seed along with mnemonic--validate: Validate an existing mnemonic phrase
address - Derive Addresses
Derive cryptocurrency addresses from private keys.
# Generate SegWit address (default)
# Generate Legacy P2PKH address
# Generate Taproot address
# Generate Ethereum address
# Specify network for Bitcoin addresses
Options:
--key: Private key in hex format (required)--type: Address type (legacy,segwit,taproot,ethereum, default:segwit)--network: Network (mainnetortestnet, default:mainnet)
hd - HD Wallet Derivation
Hierarchical deterministic wallet operations using BIP32/BIP44 standards.
# Default BIP44 Bitcoin path (m/44'/0'/0'/0/0)
# Custom derivation path for Ethereum
# With passphrase protection
# Generate multiple addresses
# Testnet derivation
Options:
--mnemonic: BIP39 mnemonic phrase (required)--path: Derivation path (default:m/44'/0'/0'/0/0)--address-type: Address type (legacy,segwit,taproot,ethereum, default:segwit)--passphrase: Optional passphrase for seed generation--count: Number of addresses to generate (default:1)--network: Network (mainnetortestnet, default:mainnet)
sign - Sign Messages
Sign messages using private keys with different signing standards.
# Bitcoin message signing (BIP-137)
# Ethereum personal_sign (EIP-191)
# Sign with specific address type for Bitcoin
Options:
--key: Private key in hex format (required)--message: Message to sign (required)--format: Signing format (bitcoinorethereum, required)--address-type: Bitcoin address type for signature (legacy,segwit,taproot, default:segwit)
verify - Verify Signatures
Verify message signatures against addresses.
# Verify Bitcoin signature
# Verify Ethereum signature
Options:
--address: Address to verify against (required)--message: Original message that was signed (required)--signature: Signature to verify (required)--format: Signature format (bitcoinorethereum, required)
Examples
Complete Workflow Example
# 1. Generate a mnemonic
# Output: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
# 2. Derive HD wallet addresses
# 3. Generate a standalone private key
# 4. Get address from private key
# 5. Sign a message
# 6. Verify the signature
Cross-Chain Operations
# Bitcoin operations
# Ethereum operations
Security Notes
- All operations are performed locally without network connections
- Private keys and mnemonics are never stored or transmitted
- Use secure random number generation for all cryptographic operations
- Always verify addresses and signatures before using in production
- Store mnemonics and private keys securely
License
This project is licensed under the MIT License - see the LICENSE file for details.