Securing Smart Contract with Runtime Validation

被引:45
|
作者
Li, Ao [1 ]
Choi, Jemin Andrew [1 ]
Long, Fan [1 ]
机构
[1] Univ Toronto, Toronto, ON, Canada
关键词
runtime validation; smart contract; compiler;
D O I
10.1145/3385412.3385982
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present Solythesis, a source to source Solidity compiler which takes a smart contract code and a user specified invariant as the input and produces an instrumented contract that rejects all transactions that violate the invariant. The design of Solythesis is driven by our observation that the consensus protocol and the storage layer are the primary and the secondary performance bottlenecks of Ethereum, respectively. Solythesis operates with our novel delta update and delta check techniques to minimize the overhead caused by the instrumented storage access statements. Our experimental results validate our hypothesis that the overhead of runtime validation, which is often too expensive for other domains, is in fact negligible for smart contracts. The CPU overhead of Solythesis is only 0.1% on average for our 23 benchmark contracts.
引用
收藏
页码:438 / 453
页数:16
相关论文
共 50 条
  • [21] Securing Smart Homes
    Sametinger, Johannes
    DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA 2019), 2019, 1062 : 101 - 107
  • [22] POSTER: Smart Contract-based Miner Registration and Block Validation
    Zhang, Shijie
    Lee, Jong-Hyouk
    PROCEEDINGS OF THE 2019 ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY (ASIACCS '19), 2019, : 691 - 693
  • [23] On the Validation of Invariants at Runtime
    Kosiuczenko, Piotr
    FUNDAMENTA INFORMATICAE, 2013, 125 (02) : 183 - 222
  • [24] Securing the smart city
    Jones L.
    Engineering and Technology, 2016, 11 (05): : 30 - 33
  • [25] Securing Implantable Medical Devices with Runtime Enforcement Hardware
    Pearce, Hammond
    Kuo, Matthew M. Y.
    Roop, Partha S.
    Pinisetty, Srinivas
    17TH ACM-IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN (MEMOCODE), 2019,
  • [26] Runtime Monitoring of Contract Regulated Web Services
    Lomuscio, Alessio
    Penczek, Wojciech
    Solanki, Monika
    Szreter, Maciej
    FUNDAMENTA INFORMATICAE, 2011, 111 (03) : 339 - 355
  • [27] Smart Contract-Based Secure Model for Miner Registration and Block Validation
    Zhang, Shire
    Lee, Jong-Hyouk
    IEEE ACCESS, 2019, 7 : 132087 - 132094
  • [28] A Decentralized Authenticated Key Agreement Scheme Based on Smart Contract for Securing Vehicular Ad-Hoc Networks
    Wei, Lu
    Cui, Jie
    Zhong, Hong
    Bolodurina, Irina
    Gu, Chengjie
    He, Debiao
    IEEE TRANSACTIONS ON MOBILE COMPUTING, 2024, 23 (05) : 4318 - 4333
  • [29] Smart Contract Broker: Improving Smart Contract Reusability in a Blockchain Environment
    Park, Joonseok
    Jeong, Sumin
    Yeom, Keunhyuk
    SENSORS, 2023, 23 (13)
  • [30] Smart Contract Locator (SCL) and Smart Contract Description Language (SCDL)
    Lamparelli, Andrea
    Falazi, Ghareeb
    Breitenbuecher, Uwe
    Daniel, Florian
    Leymann, Frank
    SERVICE-ORIENTED COMPUTING, ICSOC 2019, 2020, 12019 : 195 - 210