mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-24 07:14:46 +00:00
Remove ZeroizeString in favour of Zeroizing<String> (#6661)
* Remove ZeroizeString in favour of Zeroizing<String> * cargo fmt * remove unrelated line that slipped in * Update beacon_node/store/Cargo.toml thanks michael! Co-authored-by: Michael Sproul <micsproul@gmail.com> * Merge branch 'unstable' into remove-zeroizedstring
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use account_utils::strip_off_newlines;
|
||||
pub use account_utils::STDIN_INPUTS_FLAG;
|
||||
use account_utils::{strip_off_newlines, ZeroizeString};
|
||||
use eth2::lighthouse_vc::std_types::{InterchangeJsonStr, KeystoreJsonStr};
|
||||
use eth2::{
|
||||
lighthouse_vc::{
|
||||
@@ -14,6 +14,7 @@ use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use tree_hash::TreeHash;
|
||||
use types::*;
|
||||
use zeroize::Zeroizing;
|
||||
|
||||
pub const IGNORE_DUPLICATES_FLAG: &str = "ignore-duplicates";
|
||||
pub const COUNT_FLAG: &str = "count";
|
||||
@@ -41,7 +42,7 @@ pub enum UploadError {
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
pub struct ValidatorSpecification {
|
||||
pub voting_keystore: KeystoreJsonStr,
|
||||
pub voting_keystore_password: ZeroizeString,
|
||||
pub voting_keystore_password: Zeroizing<String>,
|
||||
pub slashing_protection: Option<InterchangeJsonStr>,
|
||||
pub fee_recipient: Option<Address>,
|
||||
pub gas_limit: Option<u64>,
|
||||
|
||||
Reference in New Issue
Block a user