flip bytes should be done in hashHeader()