This pull request refactors the logical checks in reference.py to enhance code readability and follow best practices in Python. Specifically:
- Replaced bitwise
&with logicalandin conditional checks. - Simplified list length checks by using Pythonic
if input_pub_keys:instead ofif len(input_pub_keys) > 0.
These changes improve the clarity and consistency of the code while maintaining its functionality.
Changes
- Replaced
&withandfor logical operations in several conditional checks. - Replaced
if len(input_pub_keys) > 0withif input_pub_keysto check for non-empty lists.