DeFeed: Secure Decentralized Cross-Contract Data Feed in Web 3.0 for Connected Autonomous Vehicles
Xingchen Sun, Runhua Xu, Wei Ni, Li Duan, Chao Li
TL;DR
This paper tackles the Cross-Contract Data Feed (CCDF) problem in Ethereum-like Web 3.0 environments for Connected Autonomous Vehicles by introducing DeFeed, a secure cross-contract data feed protocol. The approach modularizes data exchange through separate contracts (Data Owner, Data Feed Center, Data Feed Management) and governance via a Committee, complemented by pool, cache, subscribe, and update mechanisms to optimize gas usage and enable real-time data delivery. Implemented in Solidity on the Sepolia test network, DeFeed demonstrates reduced gas costs, scalable batching of requests, and reliable inter-contract communication essential for cooperative CAV operations. The work provides a practical, deployable framework for secure, decentralized inter-contract data sharing in Web 3.0 ecosystems, addressing limitations of traditional oracles and paving the way for more integrated autonomous systems.
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.
