bips icon indicating copy to clipboard operation
bips copied to clipboard

BIP374: replace assert with return False in dleq_verify_proof

Open vibegentt opened this issue 4 months ago • 0 comments

Replace assert with return False for proof length validation to ensure the function behaves consistently and doesn't crash when Python runs with optimization flags (-O).

This makes the validation consistent with other checks in the same function and improves robustness of the reference implementation. Tests: All existing unit tests pass

vibegentt avatar Sep 09 '25 08:09 vibegentt