Skip to main content

topic_from_bytes

Function topic_from_bytes 

Source
pub fn topic_from_bytes(bytes: &[u8]) -> [u8; 32]
Expand description

Converts raw bytes to a 32-byte topic (left-padded with zeros if shorter).