mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-11 09:33:09 +00:00
Fmt
This commit is contained in:
parent
33cdf7f25f
commit
facac5a20e
@ -30,6 +30,7 @@ def ifft_g1(vals: Sequence[G1], roots_of_unity: Sequence[BLSFieldElement], modul
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
def _fft(
|
||||
vals: Sequence[BLSFieldElement],
|
||||
roots_of_unity: Sequence[BLSFieldElement],
|
||||
@ -46,6 +47,7 @@ def _fft(
|
||||
o[i + len(L)] = BLSFieldElement((int(x) - int(y_times_root) + modulus) % modulus)
|
||||
return o
|
||||
|
||||
|
||||
def fft(vals, root_of_unity, modulus):
|
||||
assert len(vals) == len(root_of_unity)
|
||||
return _fft(vals, root_of_unity, modulus)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user