pub fn generate_trapdoor<T>(csprng: &mut T) -> Result<Fr, RandError>
Expand description
Generates a random scalar from the scalar field π½_{r_π}.
The prime order subgroup π^(r) is the order-r_π subgroup of π that consists of the points whose order divides r. This function is useful when generating the uniform distribution on π½_{r_π} needed for Sapling commitment schemesβ trapdoor generators.