🤖 AI Summary
To address the high overhead, poor real-time performance, and weak security of cross-contract communication in vehicular networks under Web 3.0, this paper proposes a lightweight cross-contract data feed protocol tailored for connected autonomous vehicles (CAVs). The protocol innovatively integrates pooled state management, local caching, event-driven subscription, and dynamic update mechanisms—enabling gas-optimized execution and supporting upgradable smart contracts. Implemented on Ethereum and validated on a testnet, it reduces computational complexity by approximately 62% and gas consumption by 57% compared to conventional cross-contract invocations. These improvements significantly enhance information-sharing efficiency and real-time collaborative responsiveness among vehicles under high-concurrency conditions. The protocol establishes a secure, low-overhead, plug-and-play data integration paradigm for decentralized vehicle-infrastructure cooperation.
📝 Abstract
Smart contracts have been a topic of interest in blockchain research and are a key enabling technology for Connected Autonomous Vehicles (CAVs) in the era of Web 3.0. These contracts enable trustless interactions without the need for intermediaries, as they operate based on predefined rules encoded on the blockchain. However, smart contacts face significant challenges in cross-contract communication and information sharing, making it difficult to establish seamless connectivity and collaboration among CAVs with Web 3.0. In this paper, we propose DeFeed, a novel secure protocol that incorporates various gas-saving functions for CAVs, originated from in-depth research into the interaction among smart contracts for decentralized cross-contract data feed in Web 3.0. DeFeed allows smart contracts to obtain information from other contracts efficiently in a single click, without complicated operations. We judiciously design and complete various functions with DeFeed, including a pool function and a cache function for gas optimization, a subscribe function for facilitating data access, and an update function for the future iteration of our protocol. Tailored for CAVs with Web 3.0 use cases, DeFeed enables efficient data feed between smart contracts underpinning decentralized applications and vehicle coordination. Implemented and tested on the Ethereum official test network, DeFeed demonstrates significant improvements in contract interaction efficiency, reducing computational complexity and gas costs. Our solution represents a critical step towards seamless, decentralized communication in Web 3.0 ecosystems.