monero_primitives

Function 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].