Skip to content

Commit d8e42d1

Browse files
committed
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.
1 parent b60db79 commit d8e42d1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/util/schnorr.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ pub trait TapTweak {
5050

5151
impl TapTweak for UntweakedPublicKey {
5252
fn tap_tweak<C: Verification>(self, secp: &Secp256k1<C>, merkle_root: Option<TapBranchHash>) -> TweakedPublicKey {
53-
// Compute the tweak
5453
let tweak_value = TapTweakHash::from_key_and_tweak(self, merkle_root).into_inner();
55-
56-
//Tweak the internal key by the tweak value
5754
let mut output_key = self.clone();
5855
let parity = output_key.tweak_add_assign(&secp, &tweak_value).expect("Tap tweak failed");
5956
if self.tweak_add_check(&secp, &output_key, parity, tweak_value) {

0 commit comments

Comments
 (0)