【Author】
Wang, Yibo; Zhang, Qi; Li, Kai; Tang, Yuzhe; Chen, Jiaqi; Luo, Xiapu; Chen, Ting
【Source】PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21)
【Abstract】This paper presents IBATCH, a middleware system running on top of an operational Ethereum network to enable secure batching of smart-contract invocations against an untrusted relay server off-chain. IBATCH does so at a low overhead by validating the server's batched invocations in smart contracts without additional states. The IBATCH mechanism supports a variety of policies, ranging from conservative to aggressive batching, and can be configured adaptively to the current workloads. IBATCH automatically rewrites smart contracts to integrate with legacy applications and support large-scale deployment. For cost evaluation, we develop a platform with fast and costaccurate transaction replaying, build real transaction benchmarks on popular Ethereum applications, and build a functional prototype of IBATCH on Ethereum. The evaluation results show that IBATCH saves 14.6% similar to 59.1% Gas cost per invocation with a moderate 2-minute delay and 19.06% similar to 31.52% Ether cost per invocation with a delay of 0.26 similar to 1.66 blocks.
【Keywords】Blockchains; smart contracts; DeFi; cost effectiveness; replay attacks
评论