We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60db79 commit d8e42d1Copy full SHA for d8e42d1
src/util/schnorr.rs
@@ -50,10 +50,7 @@ pub trait TapTweak {
50
51
impl TapTweak for UntweakedPublicKey {
52
fn tap_tweak<C: Verification>(self, secp: &Secp256k1<C>, merkle_root: Option<TapBranchHash>) -> TweakedPublicKey {
53
- // Compute the tweak
54
let tweak_value = TapTweakHash::from_key_and_tweak(self, merkle_root).into_inner();
55
-
56
- //Tweak the internal key by the tweak value
57
let mut output_key = self.clone();
58
let parity = output_key.tweak_add_assign(&secp, &tweak_value).expect("Tap tweak failed");
59
if self.tweak_add_check(&secp, &output_key, parity, tweak_value) {
0 commit comments