Skip to content

Commit a562710

Browse files
committed
Fix compute_quotient_eval_within_domain overflow
1 parent ab11a01 commit a562710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/deneb/polynomial-commitments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def compute_quotient_eval_within_domain(z: BLSFieldElement,
459459
f_i = int(BLS_MODULUS) + int(polynomial[i]) - int(y) % BLS_MODULUS
460460
numerator = f_i * int(omega_i) % BLS_MODULUS
461461
denominator = int(z) * (int(BLS_MODULUS) + int(z) - int(omega_i)) % BLS_MODULUS
462-
result += div(BLSFieldElement(numerator), BLSFieldElement(denominator))
462+
result += int(div(BLSFieldElement(numerator), BLSFieldElement(denominator)))
463463

464464
return BLSFieldElement(result % BLS_MODULUS)
465465
```

0 commit comments

Comments
 (0)