File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ impl FileSigner {
8181 }
8282}
8383
84- fn get_evm_public_key ( public_key : & PublicKey ) -> anyhow:: Result < [ u8 ; 20 ] > {
84+ fn get_evm_address ( public_key : & PublicKey ) -> anyhow:: Result < [ u8 ; 20 ] > {
8585 let pubkey_uncompressed = public_key. serialize_uncompressed ( ) ;
8686 let pubkey_hash: [ u8 ; 32 ] = Keccak256 :: new_with_prefix ( & pubkey_uncompressed[ 1 ..] )
8787 . finalize ( )
@@ -108,7 +108,7 @@ impl Signer for FileSigner {
108108 async fn get_public_key ( & self ) -> anyhow:: Result < ( PublicKey , [ u8 ; 20 ] ) > {
109109 let secp = Secp256k1 :: new ( ) ;
110110 let public_key = self . secret_key . public_key ( & secp) ;
111- let pubkey_evm = get_evm_public_key ( & public_key) ?;
111+ let pubkey_evm = get_evm_address ( & public_key) ?;
112112 Ok ( ( public_key, pubkey_evm) )
113113 }
114114}
@@ -235,7 +235,7 @@ impl Signer for KMSSigner {
235235 let public_key =
236236 PublicKey :: from_slice ( decoded_algorithm_identifier. subject_public_key . raw_bytes ( ) )
237237 . map_err ( |e| anyhow:: anyhow!( "Failed to create PublicKey from KMS: {}" , e) ) ?;
238- let pubkey_evm = get_evm_public_key ( & public_key) ?;
238+ let pubkey_evm = get_evm_address ( & public_key) ?;
239239
240240 Ok ( ( public_key, pubkey_evm) )
241241 }
You can’t perform that action at this time.
0 commit comments