Closed kobigurk closed 4 years ago
@gakonst I added a comment that explains the whole logic. Additionally, given all that we've learnt recently, the logic has been simplified to use half
instead of half + 1
, as the biggest coordinate can only be p-1
, which is 2*half
, and therefore 2*half - half = half
is still <= half
, and so the check still passes.
Description
There were a few problems:
Fixes #147.
We shouldn't merge this until Zexe merges
alloc_constant
in https://github.com/scipr-lab/zexe/pull/189.