pub fn error_code_from_msg(msg: impl AsRef<str>) -> BaseElementExpand description
Derives an error code from an error message by hashing the message and interpreting the first 64 bits as a Felt.
pub fn error_code_from_msg(msg: impl AsRef<str>) -> BaseElementDerives an error code from an error message by hashing the message and interpreting the first 64 bits as a Felt.