mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-09 17:24:29 +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
|
result = 0
|
||||||
for i in range(width):
|
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
|
result = result * (pow(z, width, BLS_MODULUS) - 1) * inverse_width % BLS_MODULUS
|
||||||
return result
|
return result
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user