Function wedpr_l_crypto_zkp_utils::hash_to_scalar[][src]

pub fn hash_to_scalar<T: ?Sized + AsRef<[u8]>>(input: &T) -> Scalar
Expand description

Converts an arbitrary string to Scalar. It will hash it first, and transform the numeric value of hash output to Scalar.