@@ -94,13 +94,13 @@ impl LocalSigningManager {
9494 pub async fn create_proxy_bls (
9595 & mut self ,
9696 module_id : ModuleId ,
97- delegator : BlsPublicKey ,
97+ delegator : & BlsPublicKey ,
9898 ) -> Result < SignedProxyDelegationBls , SignerModuleError > {
9999 let signer = BlsSigner :: new_random ( ) ;
100100 let proxy_pubkey = signer. pubkey ( ) ;
101101
102102 let message = ProxyDelegationBls { delegator : delegator. clone ( ) , proxy : proxy_pubkey } ;
103- let signature = self . sign_consensus ( & delegator, & message. tree_hash_root ( ) , None ) . await ?;
103+ let signature = self . sign_consensus ( delegator, & message. tree_hash_root ( ) , None ) . await ?;
104104 let delegation = SignedProxyDelegationBls { signature, message } ;
105105 let proxy_signer = BlsProxySigner { signer, delegation : delegation. clone ( ) } ;
106106
@@ -113,13 +113,13 @@ impl LocalSigningManager {
113113 pub async fn create_proxy_ecdsa (
114114 & mut self ,
115115 module_id : ModuleId ,
116- delegator : BlsPublicKey ,
116+ delegator : & BlsPublicKey ,
117117 ) -> Result < SignedProxyDelegationEcdsa , SignerModuleError > {
118118 let signer = EcdsaSigner :: new_random ( ) ;
119119 let proxy_address = signer. address ( ) ;
120120
121121 let message = ProxyDelegationEcdsa { delegator : delegator. clone ( ) , proxy : proxy_address } ;
122- let signature = self . sign_consensus ( & delegator, & message. tree_hash_root ( ) , None ) . await ?;
122+ let signature = self . sign_consensus ( delegator, & message. tree_hash_root ( ) , None ) . await ?;
123123 let delegation = SignedProxyDelegationEcdsa { signature, message } ;
124124 let proxy_signer = EcdsaProxySigner { signer, delegation : delegation. clone ( ) } ;
125125
@@ -351,7 +351,7 @@ mod tests {
351351 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
352352
353353 let signed_delegation =
354- signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
354+ signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
355355
356356 let validation_result = signed_delegation. validate ( CHAIN ) ;
357357
@@ -372,7 +372,7 @@ mod tests {
372372 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
373373
374374 let mut signed_delegation =
375- signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
375+ signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
376376
377377 signed_delegation. signature = BlsSignature :: test_random ( ) ;
378378
@@ -386,7 +386,7 @@ mod tests {
386386 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
387387
388388 let signed_delegation =
389- signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
389+ signing_manager. create_proxy_bls ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
390390 let proxy_pk = signed_delegation. message . proxy ;
391391
392392 let data_root = B256 :: random ( ) ;
@@ -433,7 +433,7 @@ mod tests {
433433 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
434434
435435 let signed_delegation =
436- signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
436+ signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
437437
438438 let validation_result = signed_delegation. validate ( CHAIN ) ;
439439
@@ -454,7 +454,7 @@ mod tests {
454454 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
455455
456456 let mut signed_delegation =
457- signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
457+ signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
458458
459459 signed_delegation. signature = BlsSignature :: test_random ( ) ;
460460
@@ -468,7 +468,7 @@ mod tests {
468468 let ( mut signing_manager, consensus_pk) = init_signing_manager ( ) ;
469469
470470 let signed_delegation =
471- signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , consensus_pk) . await . unwrap ( ) ;
471+ signing_manager. create_proxy_ecdsa ( MODULE_ID . clone ( ) , & consensus_pk) . await . unwrap ( ) ;
472472 let proxy_pk = signed_delegation. message . proxy ;
473473
474474 let data_root = B256 :: random ( ) ;
0 commit comments