Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

hash_byte_array

Returns a unique hash given a ByteArray.

The hash is computed by serializing the data into a span of felts, and then hashing the span using the Pedersen hash algorithm.

Fully qualified path: openzeppelin_utils::bytearray::hash_byte_array

pub fn hash_byte_array(data: @ByteArray) -> felt252