Sampling Support for KZG-Style Setup #
This file contains small shared probabilistic helpers used by KZG setup and its reductions.
Notation #
Groups.sampleNonzeroZModsamples the SRS trapdoor fromZMod p \ {0}.
Uniformly sample a nonzero element of ZMod p.
The implementation samples an index in {0, ..., p - 2} and shifts it by one, so the support is
exactly the canonical representatives 1, ..., p - 1 modulo p.
Instances For
Simulating the random oracle leaves the nonzero SRS trapdoor sampler unchanged.