This pull request refactors the logical checks in reference.py
to enhance code readability and follow best practices in Python. Specifically:
- Replaced bitwise
&
with logicaland
in 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
&
withand
for logical operations in several conditional checks. - Replaced
if len(input_pub_keys) > 0
withif input_pub_keys
to check for non-empty lists.