Skip to content

Commit 270a66e

Browse files
authored
Merge pull request #3256 from ethereum/fix-compute_quotient_eval_within_domain
Fix `compute_quotient_eval_within_domain` overflow
2 parents ab11a01 + a562710 commit 270a66e

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)