error_code_from_msg

Function error_code_from_msg 

Source
pub fn error_code_from_msg(msg: impl AsRef<str>) -> BaseElement
Expand description

Derives an error code from an error message by hashing the message and returning the 0th element of the resulting Word.