scroll-tech / ceno

Accelerate Zero-knowledge Virtual Machine by Non-uniform Prover Based on GKR Protocol
Apache License 2.0
57 stars 7 forks source link

Remove `Rng` from PCS type paramter. #549

Closed yczhangsjtu closed 2 weeks ago

yczhangsjtu commented 3 weeks ago

Extracting a small PR from #294.

The random generator is used only when the encoding scheme is Basecode, and not used for RS code. So remove it from the type parameter for Basefold, i.e., Basefold<E, Spec, Rng> is replaced with Basefold<E, Spec> to make the API simpler. Fix it to ChaCha8Rng in the implementation of Basecode.