In view of the security risks and centralized structure of traditional intelligent transportation system, we propose a novel scheme of secure data sharing and customized services based on the consortium blockchain (DSCSCB). The ciphertext-policy attribute-based proxy re-encryption algorithm has the function of keyword searching by dividing the key into an attribute key and a search key, which not only solves the problem that proxy re-encryption algorithm cannot retrieve data, but also realizes data sharing and data forwarding. Moreover, the algorithm effectively controls the access permission of data, and provides a secure communication environment for the vehicular ad-hoc network (VANET). Service sectors, such as insurance companies, the traffic police and maintenance suppliers, obtain the corresponding ciphertext and then apply the smart contract to provide customized services for the onboard unit after decryption. Security analysis and performance evaluation demonstrate that our scheme not only meets the requirements of data sharing in the security and confidentiality, but also has obvious advantages in the overhead of computing and communication. INDEX TERMS Consortium blockchain, data sharing, customized services, smart contract, intelligent transportation. DI WANG received the B.S. degree in electronic and information engineering from the Jiangxi University of Science and Technology, Jiangxi, China, where she is currently pursuing the M.S. degree in communication and information system. Her current research interests include blockchain technology and information security. XIAOHONG ZHANG received the B.S. degree in physics from Jiangxi Normal University, Jiangxi, China, in 1984, the M.S. degree in optical information processing from the Chinese Academy of Sciences, Changchun, China, in 1990, the Ph.D. degree in control theory and information safety from the University of Science and Technology Beijing (USTB), in 2002, and the Ph.D. degree from the Beijing University of Posts and Telecommunications (BUPT), in 2006. She was a Visiting Scholar with the