#cryptocurrency #wallet #blockchain #ethereum #crypto-wallet

bin+lib 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.

2 unstable releases

0.2.0 May 27, 2024
0.1.1 May 27, 2024
0.1.0 May 27, 2024

#3 in #crypto-wallet

MIT license

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

  1. Install the Crate:

    cargo install wallet-wizard
    
  2. 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
      

How to Use the Crate as a Library

  1. Add the Dependency:

    [dependencies]
    wallet-wizard = "0.2.0"
    
  2. 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

~10–22MB
~221K SLoC