mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-04 06:44:59 +00:00
Conver roots_of_unity_brp
to integers
This commit is contained in:
parent
0c8885570e
commit
438a7e55ea
@ -276,7 +276,7 @@ def evaluate_polynomial_in_evaluation_form(polynomial: Polynomial,
|
||||
|
||||
result = 0
|
||||
for i in range(width):
|
||||
result += div(int(polynomial[i]) * int(roots_of_unity_brp[i]), (int(z) - roots_of_unity_brp[i]))
|
||||
result += div(int(polynomial[i]) * int(roots_of_unity_brp[i]), (int(z) - int(roots_of_unity_brp[i])))
|
||||
result = result * (pow(z, width, BLS_MODULUS) - 1) * inverse_width % BLS_MODULUS
|
||||
return result
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user