From 64d068e9d101e631019e9aa95e1e0eb7cce832d9 Mon Sep 17 00:00:00 2001 From: notmike Date: Fri, 26 Jun 2026 20:08:22 -0600 Subject: [PATCH] bip360: minor syntax fix on tapbranch_hash() --- bip-0360/ref-impl/python/p2mr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0360/ref-impl/python/p2mr.py b/bip-0360/ref-impl/python/p2mr.py index bd793234..d0b752f2 100644 --- a/bip-0360/ref-impl/python/p2mr.py +++ b/bip-0360/ref-impl/python/p2mr.py @@ -85,7 +85,7 @@ def tapleaf_hash(script: str, tapleaf_ver: str = "c0") -> str: def tapbranch_hash(left: str, right: str) -> bytes: """Hash function for tree branches""" - return tagged_hash("TapBranch", b"".join(sorted((h2b(right) + h2b(left))))) + return tagged_hash("TapBranch", b"".join(sorted((h2b(left), h2b(right))))) def compute_merkle_root(tree: ScriptTree) -> str: