def verify_signature(secret, parts):
 if (signature(secret, parts[:(-1)]) == parts[(-1)]):
  return True
 else:
  return False

def verify_signature ( secret , parts ) : if ( signature ( secret , parts [ : ( - 1 ) ] ) == parts [ ( - 1 ) ] ) : return True else : return False
check the signature in the message .