This is a library for generating and managing wallets. This library contains the following features: - BIP39 Mnemonic and Seed Generation - BIP32 HD Wallet Generation
```rust use laronwallet::bips::bip39::{Mnemonic, MnemonicType}; use laronwallet::bips::wordlists::Language; use laronwallet::bips::bip32::ExtendedKey; use laronwallet::bips::DerivationPath;
let mnemonic = Mnemonic::new(MnemonicType::Words12, Language::English); let seed = mnemonic.toseed("password"); let masterkey = ExtendedKey::new_master(&seed).unwrap();
// define the path to derive, We will use ethereum path let path = DerivationPath::parse("m/44'/60'/0'/0/0").unwrap(); let childkey = masterkey.derivepath(&path).unwrap(); let privatekey = childkey.privatekey(); let publickey = privatekey.publickey(); let address = publickey.address(); ```
License: GPL-3.0-or-later