@@ -19,7 +19,6 @@ use namada::ledger::parameters::EpochDuration;
19
19
use namada:: ledger:: pos:: { Dec , GenesisValidator , OwnedPosParams } ;
20
20
use namada:: types:: address:: Address ;
21
21
use namada:: types:: chain:: ProposalBytes ;
22
- use namada:: types:: key:: dkg_session_keys:: DkgPublicKey ;
23
22
use namada:: types:: key:: * ;
24
23
use namada:: types:: time:: { DateTimeUtc , DurationSecs } ;
25
24
use namada:: types:: token:: Denomination ;
@@ -75,8 +74,6 @@ pub struct Validator {
75
74
/// this key on a transaction signature.
76
75
/// Note that this is distinct from consensus key used in the PoS system.
77
76
pub account_key : common:: PublicKey ,
78
- /// The public DKG session key used during the DKG protocol
79
- pub dkg_public_key : DkgPublicKey ,
80
77
/// These tokens are not staked and hence do not contribute to the
81
78
/// validator's voting power
82
79
pub non_staked_balance : token:: Amount ,
@@ -374,8 +371,7 @@ pub fn make_dev_genesis(
374
371
) ;
375
372
let eth_cold_keypair =
376
373
common:: SecretKey :: try_from_sk ( & secp_eth_cold_keypair) . unwrap ( ) ;
377
- let ( protocol_keypair, eth_bridge_keypair, dkg_keypair) =
378
- defaults:: validator_keys ( ) ;
374
+ let ( protocol_keypair, eth_bridge_keypair) = defaults:: validator_keys ( ) ;
379
375
let alias = Alias :: from_str ( & format ! ( "validator-{}" , val + 1 ) )
380
376
. expect ( "infallible" ) ;
381
377
// add the validator
@@ -384,9 +380,6 @@ pub fn make_dev_genesis(
384
380
address,
385
381
tx : transactions:: ValidatorAccountTx {
386
382
alias : alias. clone ( ) ,
387
- dkg_key : StringEncoded {
388
- raw : dkg_keypair. public ( ) ,
389
- } ,
390
383
vp : "vp_validator" . to_string ( ) ,
391
384
commission_rate : Dec :: new ( 5 , 2 ) . expect ( "This can't fail" ) ,
392
385
max_commission_rate_change : Dec :: new ( 1 , 2 )
@@ -477,7 +470,7 @@ pub mod tests {
477
470
let keypair: common:: SecretKey =
478
471
ed25519:: SigScheme :: generate ( & mut rng) . try_to_sk ( ) . unwrap ( ) ;
479
472
let kp_arr = keypair. serialize_to_vec ( ) ;
480
- let ( protocol_keypair, _eth_hot_bridge_keypair, dkg_keypair ) =
473
+ let ( protocol_keypair, _eth_hot_bridge_keypair) =
481
474
wallet:: defaults:: validator_keys ( ) ;
482
475
483
476
// TODO: derive validator eth address from an eth keypair
@@ -493,7 +486,6 @@ pub mod tests {
493
486
println ! ( "address: {}" , address) ;
494
487
println ! ( "keypair: {:?}" , kp_arr) ;
495
488
println ! ( "protocol_keypair: {:?}" , protocol_keypair) ;
496
- println ! ( "dkg_keypair: {:?}" , dkg_keypair. serialize_to_vec( ) ) ;
497
489
println ! (
498
490
"eth_cold_gov_keypair: {:?}" ,
499
491
eth_cold_gov_keypair. serialize_to_vec( )
0 commit comments