kroma-network / tachyon

Modular ZK(Zero Knowledge) backend accelerated by GPU
MIT License
7.78k stars 226 forks source link

refac(math): refactor prime fields #422

Closed chokobole closed 2 months ago

chokobole commented 2 months ago

Description

This PR addresses two key areas:

Initially, our prime fields were constructed based on EC-based prime fields, leading some interfaces (e.g., operator[]()) to not be suitable for other types of prime fields. After internal discussion, we have decided on standardized interfaces for prime fields.