mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-06 18:56:40 +01:00
Fix negative short composition
This commit is contained in:
@@ -504,7 +504,7 @@ class BuilderC {
|
|||||||
|
|
||||||
|
|
||||||
function addShortMontgomeryNegative(a) {
|
function addShortMontgomeryNegative(a) {
|
||||||
const b = a.minus(self.header.P);
|
const b = self.F.neg(a);
|
||||||
return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`;
|
return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user