From d8e42d153e10187229dfa8dd1b2ed416a59212db Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Thu, 2 Dec 2021 14:08:28 +1100 Subject: [PATCH] Remove 'what' comments When used, code comments should say _why_ we do something not _what_ we do, the code already says what we do. Remove 'what we do' style comments. --- src/util/schnorr.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index 74c97042..d109e70a 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -50,10 +50,7 @@ pub trait TapTweak { impl TapTweak for UntweakedPublicKey { fn tap_tweak(self, secp: &Secp256k1, merkle_root: Option) -> TweakedPublicKey { - // Compute the tweak let tweak_value = TapTweakHash::from_key_and_tweak(self, merkle_root).into_inner(); - - //Tweak the internal key by the tweak value let mut output_key = self.clone(); let parity = output_key.tweak_add_assign(&secp, &tweak_value).expect("Tap tweak failed"); if self.tweak_add_check(&secp, &output_key, parity, tweak_value) {