Online Detection of E ectively Callback Free Objects with Applications to Smart Contracts

نویسندگان

  • SHELLY GROSSMAN
  • ITTAI ABRAHAM
  • GUY GOLAN-GUETA
  • YAN MICHALEVSKY
  • Shelly Grossman
  • Ittai Abraham
  • Guy Golan-Gueta
  • Yan Michalevsky
  • Noam Rinetzky
چکیده

Callbacks are essential in many programming environments, but drastically complicate program understanding and reasoning because they allow to mutate object’s local states by external objects in unexpected fashions, thus breaking modularity. The famous DAO bug in the cryptocurrency framework Ethereum, employed callbacks to steal $150M. We de ne the notion of E ectively Callback Free (ECF) objects in order to allow callbacks without preventing modular reasoning. An object is ECF in a given execution trace if there exists an equivalent execution trace without callbacks to this object. An object is ECF if it is ECF in every possible execution trace. We study the decidability of dynamically checking ECF in a given execution trace and statically checking if an object is ECF. We also show that dynamically checking ECF in Ethereum is feasible and can be done online. By running the history of all execution traces in Ethereum, we were able to verify that virtually all existing contract executions, excluding these of the DAO or of contracts with similar known vulnerabilities, are ECF. Finally, we show that ECF, whether it is veri ed dynamically or statically, enables modular reasoning about objects with encapsulated state.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Online multiple people tracking-by-detection in crowded scenes

Multiple people detection and tracking is a challenging task in real-world crowded scenes. In this paper, we have presented an online multiple people tracking-by-detection approach with a single camera. We have detected objects with deformable part models and a visual background extractor. In the tracking phase we have used a combination of support vector machine (SVM) person-specific classifie...

متن کامل

A Mutual Authentication Method for Internet of Things

Today, we are witnessing the expansion of various Internet of Things (IoT) applications and services such as surveillance and health. These services are delivered to users via smart devices anywhere and anytime. Forecasts show that the IoT, which is controlled online in the user environment, will reach 25 billion devices worldwide by 2020. Data security is one of the main concerns in the IoT. ...

متن کامل

Tsunami warning system using of IoT

Abstract   Today, the world has reached a new nature with advances in science. The Internet of Things is a technology that can connect all objects in different fields through the Internet. Any unforeseen event that destroys economic, social and physical capabilities and inflicts human and financial losses is known as a natural disaster, such as a tsunami. IoT-based tsunami forecasting system ...

متن کامل

Examining the role of Smart Contracts in the development of the electronic registration system of documents

The document registration system is one of the most important instruments for guaranteeing the rights of individuals and preventing the occurrence of many disputes. In many developed countries, attempts have been made to change the system of registering transactions and documents. Thus, countries like the United States and Britain have changed the status of electronic registrations by adopting ...

متن کامل

Design and Implementation of a Wireless Sensor Network for Smart Home Applications

In smart homes devices take partial control of the house and make decisions that increase its safety and functionality. Due to the high cost of cable installation, wireless sensor networks are considered to be a good choice for smart home systems. In smart homes, to reliably detect events such as intrusions, gas leakages, or accidents, is an essential functionality. A correct control action, su...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017