A blockchain-based reputation system for data credibility assessment in vehicular networks