diff --git a/bip-0374/reference.py b/bip-0374/reference.py index 51354bd256..23c944c203 100755 --- a/bip-0374/reference.py +++ b/bip-0374/reference.py @@ -82,7 +82,8 @@ def dleq_verify_proof( ) -> bool: if A.infinity or B.infinity or C.infinity or G.infinity: return False - assert len(proof) == 64 + if len(proof) != 64: + return False e = int.from_bytes(proof[:32], "big") s = int.from_bytes(proof[32:], "big") if s >= GE.ORDER: