Catch 'Invalid hex string' when verifying signatures