11use std:: time:: Duration ;
22
3- use alloy:: rpc:: types:: beacon:: BlsPublicKey ;
43use commit_boost:: prelude:: * ;
54use eyre:: { OptionExt , Result } ;
65use lazy_static:: lazy_static;
@@ -51,19 +50,19 @@ impl DaCommitService {
5150 let pubkey = * pubkeys. consensus . first ( ) . ok_or_eyre ( "no key available" ) ?;
5251 info ! ( "Registered validator {pubkey}" ) ;
5352
54- let proxy_delegation_bls = self . config . signer_client . generate_bls_proxy_key ( pubkey) . await ?;
53+ let proxy_delegation_bls = self . config . signer_client . generate_proxy_key_bls ( pubkey) . await ?;
5554 info ! ( "Obtained a BLS proxy delegation:\n {proxy_delegation_bls}" ) ;
5655 let proxy_bls = proxy_delegation_bls. message . proxy ;
5756
5857 let proxy_delegation_ecdsa =
59- self . config . signer_client . generate_ecdsa_proxy_key ( pubkey) . await ?;
58+ self . config . signer_client . generate_proxy_key_ecdsa ( pubkey) . await ?;
6059 info ! ( "Obtained an ECDSA proxy delegation:\n {proxy_delegation_ecdsa}" ) ;
6160 let proxy_ecdsa = proxy_delegation_ecdsa. message . proxy ;
6261
6362 let mut data = 0 ;
6463
6564 loop {
66- self . send_request ( data, pubkey. into ( ) , proxy_bls. into ( ) , proxy_ecdsa) . await ?;
65+ self . send_request ( data, pubkey, proxy_bls, proxy_ecdsa) . await ?;
6766 sleep ( Duration :: from_secs ( self . config . extra . sleep_secs ) ) . await ;
6867 data += 1 ;
6968 }
@@ -78,16 +77,16 @@ impl DaCommitService {
7877 ) -> Result < ( ) > {
7978 let datagram = Datagram { data } ;
8079
81- let request = SignConsensusRequest :: builder ( pubkey. into ( ) ) . with_msg ( & datagram) ;
80+ let request = SignConsensusRequest :: builder ( pubkey) . with_msg ( & datagram) ;
8281 let signature = self . config . signer_client . request_consensus_signature ( request) ;
8382
84- let proxy_request_bls = SignProxyRequest :: builder ( proxy_bls. into ( ) ) . with_msg ( & datagram) ;
83+ let proxy_request_bls = SignProxyRequest :: builder ( proxy_bls) . with_msg ( & datagram) ;
8584 let proxy_signature_bls =
86- self . config . signer_client . request_proxy_bls_signature ( proxy_request_bls) ;
85+ self . config . signer_client . request_proxy_signature_bls ( proxy_request_bls) ;
8786
8887 let proxy_request_ecdsa = SignProxyRequest :: builder ( proxy_ecdsa) . with_msg ( & datagram) ;
8988 let proxy_signature_ecdsa =
90- self . config . signer_client . request_proxy_ecdsa_signature ( proxy_request_ecdsa) ;
89+ self . config . signer_client . request_proxy_signature_ecdsa ( proxy_request_ecdsa) ;
9190
9291 let ( signature, proxy_signature_bls, proxy_signature_ecdsa) = {
9392 let res = tokio:: join!( signature, proxy_signature_bls, proxy_signature_ecdsa) ;
0 commit comments