From d9ccb60a2f9e89c8bb1979f032e8a222ab9b025a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 26 Nov 2024 10:06:58 +1100 Subject: [PATCH] Fix typo in hash tag type In commit: `39f7dcb Reduce API surface of tagged wrapped hash types` I introduced a typo in the tagged hash tag type. Fortunately it has no effect because the tag type controls how an engine is created (when the tag is input into the engine) and has no effect on the call to `from_engine`. However the typo makes the code confusing. This bug is currently unreleased. Fix: #3649 --- bitcoin/src/taproot/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs index b8bd00342..dbcb65193 100644 --- a/bitcoin/src/taproot/mod.rs +++ b/bitcoin/src/taproot/mod.rs @@ -68,7 +68,7 @@ crate::internal_macros::define_extension_trait! { let mut eng = sha256t::Hash::::engine(); ver.to_consensus().consensus_encode(&mut eng).expect("engines don't error"); script.consensus_encode(&mut eng).expect("engines don't error"); - let inner = sha256t::Hash::::from_engine(eng); + let inner = sha256t::Hash::::from_engine(eng); TapLeafHash::from_byte_array(inner.to_byte_array()) } }