Logo
Explore Help
Sign In
logos-blockchain/logos-blockchain-specs
1
0
Fork 0
You've already forked logos-blockchain-specs
mirror of https://github.com/logos-blockchain/logos-blockchain-specs.git synced 2026-01-06 15:13:14 +00:00
Code Issues Packages Projects Releases Wiki Activity
logos-blockchain-specs/da/kzg_rs/utils.py

6 lines
105 B
Python
Raw Normal View History

Da: fk20 proof generation (#95) * 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
2024-06-17 09:20:11 +02:00
POWERS_OF_2 = {2**i for i in range(1, 32)}
def is_power_of_two(n) -> bool:
return n in POWERS_OF_2
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 33ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API