kroma-network / tachyon

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

feat(math): add `TwoInv` constant #510

Closed ashjeong closed 3 months ago

ashjeong commented 3 months ago

This PR generates the inverse of two for every field as a constant, removing the repetitive use of F(2).Inverse() across multiple functions.

chokobole commented 3 months ago

Please add scope math to feat: add kTwoInv along with TwoInv()