Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bs58 = "0.5"
bincode = "1.3"
hex = "0.4"
base64 = "0.22"
rand = "0.9"
rand = "0.10"
rand_core = { version = "0.6", features = ["getrandom"] }
zeroize = { version = "1.8", features = ["derive"] }
eth-keystore = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion cli/src/wallet_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ pub fn add_command(
WalletType::Evm | WalletType::Tempo => {
let key = if is_generate {
use alloy_signer_local::PrivateKeySigner;
use rand::Rng;
use rand::RngExt;

let mut rng = rand::rng();
let key_bytes: [u8; 32] = rng.random();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl KeyGenerator for SolanaKeyGenerator {
/// Returns (private_key_hex, address)
pub fn generate_evm_key() -> Result<(String, String)> {
use alloy_signer_local::PrivateKeySigner;
use rand::Rng;
use rand::RngExt;

let mut rng = rand::rng();
let key_bytes: [u8; EVM_PRIVATE_KEY_BYTES] = rng.random();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/keystore/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub fn create_solana_keystore(keypair_b58: &str, password: &str, name: &str) ->
use aes09::Aes128;
use ctr::cipher::{KeyIvInit, StreamCipher};
use ctr::Ctr128BE;
use rand::RngCore;
use rand::Rng;
use scrypt::{scrypt, Params};
use sha3::{Digest, Keccak256};

Expand Down
Loading