From 523b947e344a50033d8983880b9c1a4c65af6d2d Mon Sep 17 00:00:00 2001 From: James Ray <16969914+jamesray1@users.noreply.github.com> Date: Tue, 9 Jan 2018 15:55:17 +1100 Subject: [PATCH] "# eliminates zero coefficients" --- py_ecc/bn128/bn128_field_elements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_ecc/bn128/bn128_field_elements.py b/py_ecc/bn128/bn128_field_elements.py index 86d6a82..4359fd1 100644 --- a/py_ecc/bn128/bn128_field_elements.py +++ b/py_ecc/bn128/bn128_field_elements.py @@ -112,7 +112,7 @@ def zero(cls): # Utility methods for polynomial math def deg(p): d = len(p) - 1 - while p[d] == 0 and d: + while p[d] == 0 and d:# eliminates zero coefficients d -= 1 return d