2 unstable releases
0.2.0 | May 27, 2024 |
---|---|
0.1.1 | May 27, 2024 |
0.1.0 |
|
#1 in #crypto-wallet
9KB
77 lines
Wallet Wizard 🧙♂️✨
Embark on a cryptographic journey with wallet-wizard
, a Rust library that opens portals to the blockchain realm. This mystical tool harnesses the ancient art of BIP-39 mnemonics to generate secure wallets. Whether you're a seasoned sorcerer of the blockchain world or a novice in the cryptographic universe, wallet-wizard
offers a seamless and secure way to create wallets. Perfect for applications needing robust wallet functionality, it's your go-to spellbook for generating, managing, and utilizing wallets in your Rust applications.
Features
- Generate secure wallets using BIP-39 mnemonics.
- Derive multiple addresses from a single mnemonic.
- Perfect for applications needing robust wallet functionality.
How to Use the Crate as a CLI Tool
-
Install the Crate:
cargo install wallet-wizard
-
Run the CLI Tool:
- Generate wallets with a provided mnemonic:
wallet-wizard --num-wallets 3 --mnemonic "test test test test test test test test test test test test"
- Generate wallets with a random mnemonic:
wallet-wizard --num-wallets 3
- Generate wallets with a provided mnemonic:
How to Use the Crate as a Library
-
Add the Dependency:
[dependencies] wallet-wizard = "0.2.0"
-
Use the Crate in Your Code:
use wallet_wizard::generate_ethereum_wallet; use bip39::Mnemonic; use colored::*; use prettytable::{row, Table}; fn main() { let mnemonic = "test test test test test test test test test test test test"; let (address, private_key) = generate_ethereum_wallet(mnemonic, 0).unwrap(); println!("Mnemonic is {}", mnemonic.green()); println!("Ethereum Address: {}", address); println!("Private Key: {}", private_key); }
Dependencies
~9–18MB
~188K SLoC