Checks whether str is a hash digest.
string to check
if true, the radix specified "0x" is allowed at the start of str
true if str is a hash digest
See Implementation
Checks whether str is a hash digest.