mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-22 00:20:28 +00:00
Fix compute_quotient_eval_within_domain
overflow
This commit is contained in:
parent
ab11a014ee
commit
a562710fe6
@ -459,7 +459,7 @@ def compute_quotient_eval_within_domain(z: BLSFieldElement,
|
||||
f_i = int(BLS_MODULUS) + int(polynomial[i]) - int(y) % BLS_MODULUS
|
||||
numerator = f_i * int(omega_i) % BLS_MODULUS
|
||||
denominator = int(z) * (int(BLS_MODULUS) + int(z) - int(omega_i)) % BLS_MODULUS
|
||||
result += div(BLSFieldElement(numerator), BLSFieldElement(denominator))
|
||||
result += int(div(BLSFieldElement(numerator), BLSFieldElement(denominator)))
|
||||
|
||||
return BLSFieldElement(result % BLS_MODULUS)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user