arnaucube
arnaucube/circomPublic Self-hosted repository
Fix negative short composition
Jordi Baylina jordi@baylina.cat
Mon, 27 Apr 2020 11:57:32 +0200
commit

99afb4312e8b78b70c7f0495c922cc9defa97e08

parent

67ec7c5d5b7ab4e8bd21b1351ccb86ea2b27e524

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

jump to
M ports/c/builder.js → ports/c/builder.js

@@ -504,7 +504,7 @@ }

function addShortMontgomeryNegative(a) { - const b = a.minus(self.header.P); + const b = self.F.neg(a); return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`; }