Function zebra_chain::orchard::commitment::generate_trapdoor

source ·
pub fn generate_trapdoor<T>(csprng: &mut T) -> Result<Scalar, RandError>
where T: RngCore + CryptoRng,
Expand description

Generates a random scalar from the scalar field 𝔽_{q_P}.

https://zips.z.cash/protocol/nu5.pdf#pallasandvesta