Function wedpr_l_crypto_zkp_range_proof::prove_value_range [−][src]
pub fn prove_value_range(value: u64) -> (Vec<u8>, RistrettoPoint, Scalar)
Expand description
Proves whether a value belongs to (0, 2^RANGE_SIZE_IN_BITS - 1], and create a commitment for the value. It returns:
- the encoded string for the proof.
- the point representing the commitment created for the value.
- the random blinding value used in the above commitment.