In the Internet of Vehicles (IoV) era, connected vehicles are about to embark on an innovative journey, opening avenues for innovative applications and increasing security measures. Even as the number of connected cars in the automotive industry rises significantly, security and privacy vulnerabilities continue. Existing IoV applications use intelligent sensors to collect valuable data from connected cars while operating within cyber-physical communication infrastructures. This technological-evolution enables the sharing of essential information among drivers, insurance companies, and service providers. Today’s Internet of Vehicles ecosystem is vulnerable to hackers who can steal data or spy on communication. Blockchain technology enhances security and decreases the risk of these threats in the IoV network. IoV stores records about how drivers behave, speeding incidents, vehicle and component candidates, records accidents and repair history. Ensuring the reliability and accuracy of this data is crucial because insurance companies use it to determine premiums. In this paper, we propose introducing blockchain technology to vehicle networking so that vehicles can benefit from various scalable IoV application scenarios for decision-making and use a distributed access control system to share data with more security, reliability, and trust. The proposed structure provides a trust model for data sharing among connected vehicles.Our trust model establishes a secure and efficient consensus framework for data sharing. Through a comprehensive analysis, we validate the effectiveness of our proposed scheme in ensuring the integrity and reliability of shared data.