From 1325ccc7dbebea9f62c687702ac5088a77481f0d Mon Sep 17 00:00:00 2001 From: conduition Date: Sat, 27 Jun 2026 01:15:28 +0000 Subject: [PATCH] return type is not optional anymore --- 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 64d4f342..ac6bf35e 100644 --- a/bip-0360/ref-impl/python/p2mr.py +++ b/bip-0360/ref-impl/python/p2mr.py @@ -130,7 +130,7 @@ def compute_merkle_root(tree: ScriptTree) -> str: raise ValueError("Invalid tree node") -def compute_control_block(path: int, tree: ScriptTree) -> Optional[bytes]: +def compute_control_block(path: int, tree: ScriptTree) -> bytes: """ Compute the control block for a script leaf at a given position in the script tree. The `path` argument encodes the position as follows.