@@ -10,10 +10,10 @@ use cliquenet::{Address, AddressableCommittee};
10
10
use multisig:: { Certificate , Committee , CommitteeId , Keypair , x25519} ;
11
11
use sailfish:: types:: { ConsensusTime , RoundNumber , Timestamp } ;
12
12
use timeboost:: builder:: Certifier ;
13
- use timeboost:: config:: { CERTIFIER_PORT_OFFSET , ChainConfig , DECRYPTER_PORT_OFFSET , ParentChain } ;
13
+ use timeboost:: config:: { CERTIFIER_PORT_OFFSET , ChainConfig , DECRYPTER_PORT_OFFSET } ;
14
14
use timeboost:: crypto:: prelude:: DkgDecKey ;
15
15
use timeboost:: sequencer:: { Output , SequencerConfig } ;
16
- use timeboost:: types:: { Block , BlockInfo , BundleVariant , DecryptionKeyCell , KeyStore } ;
16
+ use timeboost:: types:: { Block , BlockInfo , BundleVariant , KeyStore , ThresholdKeyCell } ;
17
17
use timeboost_utils:: types:: logging:: init_logging;
18
18
use tokio:: select;
19
19
use tokio:: sync:: broadcast:: error:: RecvError ;
@@ -35,8 +35,8 @@ enum Cmd {
35
35
36
36
/// Run a handover test between the current and the next set of nodes.
37
37
async fn run_handover (
38
- curr : Vec < ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) > ,
39
- next : Vec < ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) > ,
38
+ curr : Vec < ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) > ,
39
+ next : Vec < ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) > ,
40
40
) {
41
41
const NEXT_COMMITTEE_DELAY : u64 = 15 ;
42
42
const NUM_OF_BLOCKS_PER_EPOCH : usize = 50 ;
@@ -288,11 +288,11 @@ async fn run_handover(
288
288
/// Create sequencer configs.
289
289
async fn mk_configs (
290
290
id : CommitteeId ,
291
- prev : & [ ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) ] ,
291
+ prev : & [ ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) ] ,
292
292
keep : usize ,
293
293
add : NonZeroUsize ,
294
294
set_prev : bool ,
295
- ) -> Vec < ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) > {
295
+ ) -> Vec < ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) > {
296
296
let sign_keys = prev
297
297
. iter ( )
298
298
. take ( keep)
@@ -391,7 +391,7 @@ async fn mk_configs(
391
391
let sa = & sf_addrs[ i] ;
392
392
let da = & de_addrs[ i] ;
393
393
let pa = & cert_addrs[ i] ;
394
- let enc_key = DecryptionKeyCell :: new ( ) ;
394
+ let enc_key = ThresholdKeyCell :: new ( ) ;
395
395
let conf = SequencerConfig :: builder ( )
396
396
. sign_keypair ( kpair. clone ( ) )
397
397
. dh_keypair ( xpair. clone ( ) )
@@ -443,7 +443,7 @@ async fn mk_configs(
443
443
444
444
struct TestConfig {
445
445
committee_id : CommitteeId ,
446
- prev_configs : Vec < ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) > ,
446
+ prev_configs : Vec < ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) > ,
447
447
keep : usize ,
448
448
add : NonZeroUsize ,
449
449
set_prev : bool ,
@@ -462,7 +462,7 @@ impl TestConfig {
462
462
463
463
fn with_prev_configs (
464
464
mut self ,
465
- prev : & [ ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) ] ,
465
+ prev : & [ ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) ] ,
466
466
) -> Self {
467
467
self . prev_configs = prev. to_vec ( ) ;
468
468
self
@@ -483,7 +483,7 @@ impl TestConfig {
483
483
self
484
484
}
485
485
486
- async fn build ( self ) -> Vec < ( DecryptionKeyCell , SequencerConfig , CertifierConfig ) > {
486
+ async fn build ( self ) -> Vec < ( ThresholdKeyCell , SequencerConfig , CertifierConfig ) > {
487
487
mk_configs (
488
488
self . committee_id ,
489
489
& self . prev_configs ,
0 commit comments