@@ -21,7 +21,7 @@ use pallas_network::{
2121use pallas_primitives:: ToCanonicalJson ;
2222use pallas_traverse:: Era ;
2323
24- use mithril_common:: crypto_helper:: { KesPeriod , OpCert , encode_bech32} ;
24+ use mithril_common:: crypto_helper:: { KesPeriod , encode_bech32} ;
2525use mithril_common:: entities:: { BlockNumber , ChainPoint , Epoch , SlotNumber , StakeDistribution } ;
2626use mithril_common:: { CardanoNetwork , StdResult } ;
2727
@@ -491,10 +491,7 @@ impl ChainObserver for PallasChainObserver {
491491 Ok ( stake_distribution)
492492 }
493493
494- async fn get_current_kes_period (
495- & self ,
496- _opcert : & OpCert ,
497- ) -> Result < Option < KesPeriod > , ChainObserverError > {
494+ async fn get_current_kes_period ( & self ) -> Result < Option < KesPeriod > , ChainObserverError > {
498495 let mut client = self . get_client ( ) . await ?;
499496
500497 let current_kes_period = self . get_kes_period ( & mut client) . await ?;
@@ -512,7 +509,6 @@ impl ChainObserver for PallasChainObserver {
512509mod tests {
513510 use std:: fs;
514511
515- use kes_summed_ed25519:: { kes:: Sum6Kes , traits:: KesSk } ;
516512 use pallas_codec:: utils:: { AnyCbor , AnyUInt , KeyValuePairs , TagWrap } ;
517513 use pallas_crypto:: hash:: Hash ;
518514 use pallas_network:: facades:: NodeServer ;
@@ -528,7 +524,6 @@ mod tests {
528524 } ;
529525 use tokio:: net:: UnixListener ;
530526
531- use mithril_common:: crypto_helper:: ColdKeyGenerator ;
532527 use mithril_common:: test:: TempDir ;
533528
534529 use super :: * ;
@@ -781,15 +776,7 @@ mod tests {
781776 let observer =
782777 PallasChainObserver :: new ( socket_path. as_path ( ) , CardanoNetwork :: TestNet ( 10 ) ) ;
783778
784- let keypair = ColdKeyGenerator :: create_deterministic_keypair ( [ 0u8 ; 32 ] ) ;
785- let mut dummy_key_buffer = [ 0u8 ; Sum6Kes :: SIZE + 4 ] ;
786- let mut dummy_seed = [ 0u8 ; 32 ] ;
787- let ( _, kes_verification_key) = Sum6Kes :: keygen ( & mut dummy_key_buffer, & mut dummy_seed) ;
788- let operational_certificate = OpCert :: new ( kes_verification_key, 0 , 0 , keypair) ;
789- observer
790- . get_current_kes_period ( & operational_certificate)
791- . await
792- . unwrap ( )
779+ observer. get_current_kes_period ( ) . await . unwrap ( )
793780 } ) ;
794781
795782 let ( _, client_res) = tokio:: join!( server, client) ;
0 commit comments