mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 06:14:38 +00:00
Improve bls::SecretKey privacy (#1164)
* Improve bls::SecretKey privacy * Add missed file * Remove more methods from bls::SecretKey * Add as_bytes() to SecretKey, remove as_raw * Remove as_raw * Add back as_raw * Address review comments
This commit is contained in:
@@ -5,11 +5,9 @@ const TREE_HASH_LOOPS: usize = 1_000;
|
||||
const VALIDATOR_COUNT: usize = 1_000;
|
||||
|
||||
fn build_state<T: EthSpec>(validator_count: usize) -> BeaconState<T> {
|
||||
let (state, _keypairs) = TestingBeaconStateBuilder::from_default_keypairs_file_if_exists(
|
||||
validator_count,
|
||||
&T::default_spec(),
|
||||
)
|
||||
.build();
|
||||
let (state, _keypairs) =
|
||||
TestingBeaconStateBuilder::from_deterministic_keypairs(validator_count, &T::default_spec())
|
||||
.build();
|
||||
|
||||
assert_eq!(state.validators.len(), validator_count);
|
||||
assert_eq!(state.balances.len(), validator_count);
|
||||
|
||||
Reference in New Issue
Block a user