Update examples/wallets/examples/keystores.rs

Co-authored-by: Rohit Narurkar <rohit.narurkar@protonmail.com>
This commit is contained in:
crypdough.eth 2023-01-23 21:43:37 -05:00 committed by GitHub
parent fd85de3eaa
commit 4de393d305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ async fn main() -> Result<()>{
//generates a brand new keystore with key //generates a brand new keystore with key
//name your keystore file, set the path, set the password //name your keystore file, set the path, set the password
//*NOTE* -- pls don't store your passwords in a plain text file, this is just an example //*NOTE* -- pls don't store your passwords in a plain text file, this is just an example
let key_store = LocalWallet::new_keystore(encryption_path, &mut thread_rng(), &password, Some("my_encrypted_keys")) let (signing_key, _) = LocalWallet::new_keystore(encryption_path, &mut thread_rng(), &password, Some("my_encrypted_keys"))
.expect("key store fail"); .expect("key store fail");
let (your_signing_key, _) = key_store; let (your_signing_key, _) = key_store;