mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-02 18:44:11 +00:00
422359acd7
* Kickstart fk20 * Implement i/fft from ethspecs * Expand test to different sizes * Implement toeplizt * Finish implementing fk20 * Fix roots of unity generation * Implement fft for g1 values * Fix fk20 and tests * Add len assertion in test * Fix roots computations * Fix test * Fix imports * Fmt * Docs and format
6 lines
105 B
Python
6 lines
105 B
Python
POWERS_OF_2 = {2**i for i in range(1, 32)}
|
|
|
|
|
|
def is_power_of_two(n) -> bool:
|
|
return n in POWERS_OF_2
|