pub fn bytes32(data: impl AsRef<[u8]>) -> Bytes32
Expand description

Converts a given input into a Bytes32 object by taking the first 32 bytes of the input.