From 3c22d3d1ada5c648ad77f8cdd7744236622ffe42 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Wed, 7 Feb 2024 14:20:41 +0400 Subject: [PATCH] Rename function parameter --- .../signature/inputsig/arbitrary_message/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs b/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs index c1acb35bcf..747e268db4 100644 --- a/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs +++ b/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs @@ -79,10 +79,10 @@ impl ArbitraryMessageSignature { pub fn verify_signature( &self, chain_config: &ChainConfig, - outpoint_destination: &Destination, + destination: &Destination, challenge: &H256, ) -> Result<(), DestinationSigError> { - match outpoint_destination { + match destination { Destination::PublicKeyHash(addr) => { let sig_components = AuthorizedPublicKeyHashSpend::from_data(&self.raw_signature)?; verify_address_spending(addr, &sig_components, challenge)? @@ -109,12 +109,12 @@ impl ArbitraryMessageSignature { pub fn produce_uniparty_signature( private_key: &crypto::key::PrivateKey, - outpoint_destination: &Destination, + destination: &Destination, message: &[u8], ) -> Result { let challenge = produce_message_challenge(message); let signature = - match outpoint_destination { + match destination { Destination::PublicKeyHash(addr) => { let sig = sign_address_spending(private_key, addr, &challenge)?; sig.encode()