kroma-network / tachyon

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

feat(c/zk): generalize halo2 prover and verifier c API #458

Closed chokobole closed 3 weeks ago

chokobole commented 3 weeks ago

Description

The motivation behind this PR is to simplify the naming convention for supporting halo2 and log_derivative_halo2 lookups. Previously, we would need to create 8 C APIs as follows:

Instead of this complicated approach, this PR unifies the following to enable switching the lookup scheme: