Skip to main content

generate_commitment_key

Function generate_commitment_key 

Source
pub fn generate_commitment_key(prime_bits: u32) -> CommitmentKey
Expand description

Generate a commitment key: Ñ = P̃Q̃ with P̃, Q̃ safe primes of prime_bits each, h₁ a random quadratic residue mod Ñ, and h₂ = h₁^w for uniformly random discarded w.

The generator of this key is its VERIFIER — see the module docs for the trust direction.