Skip to content

Commit adf6ab5

Browse files
committed
Fix the length of the taproot output to 34 bytes in script_is_v1_tr
1 parent 6a89bd0 commit adf6ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl MsKeyBuilder for script::Builder {
5252
// This belongs in rust-bitcoin, make this upstream later
5353
pub(crate) fn script_is_v1_tr(s: &Script) -> bool {
5454
let mut iter = s.instructions_minimal();
55-
if s.len() != 32
55+
if s.len() != 34
5656
|| iter.next() != Some(Ok(Instruction::Op(opcodes::all::OP_PUSHNUM_1)))
5757
|| iter.next() != Some(Ok(Instruction::Op(opcodes::all::OP_PUSHBYTES_32)))
5858
{

0 commit comments

Comments
 (0)