Function monero_primitives::keccak256_to_scalar

source ยท
pub fn keccak256_to_scalar(data: impl AsRef<[u8]>) -> Scalar
Expand description

Hash the provided data to a scalar via keccak256(data) % l.

This function panics if it finds the Keccak-256 preimage for [0; 32].