pub fn bytes_to_element(bytes: &[u8]) -> Result<Element, SemaphoreError>
Converts a byte array to an element