arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
fix(fp-cmp): use enforce unchecked in enforce unchecked function
Georgios Konstantopoulos me@gakonst.com
Wed, 06 May 2020 17:20:02 +0300
commit

ea2adb4f7fdb25f1e2466063c517395e3cedf959

parent

cc534494eccf73937f981c34d985d4d39b24ff76

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M r1cs-std/src/fields/fp/cmp.rs → r1cs-std/src/fields/fp/cmp.rs

@@ -27,7 +27,7 @@ b,

ordering, should_also_check_equality, )?; - Self::enforce_smaller_than_unchecked(cs.ns(|| "enforce smaller than"), &left, &right) + Self::enforce_smaller_than(cs.ns(|| "enforce smaller than"), &left, &right) } /// This function enforces the ordering between `self` and `b`. The

@@ -49,7 +49,7 @@ b,

ordering, should_also_check_equality, )?; - Self::enforce_smaller_than(cs.ns(|| "enforce smaller than"), &left, &right) + Self::enforce_smaller_than_unchecked(cs.ns(|| "enforce smaller than"), &left, &right) } /// This function checks the ordering between `self` and `b`. It outputs a