Automatic Conversion of Smart Contracts for Non-Blocking Verification
Paper in proceeding, 2024

Smart contracts are programs stored on a blockchain ledger, thus being immutable after deployment, which makes assessment of their correctness before deployment vital. Extended finite state machines (EFSM) offer a structured framework for modeling complex systems, thus providing a systematic approach to scrutinize smart contract functionalities. This paper describes a methodology to automatically convert from the abstract syntax tree of a smart contract to an EFSM model. A smart contract implementing a casino is the specific use case, and verification of the EFSM model reveals it to be blocking. This blocking represents that a malicious player can lock the funds of the casino so that they can never be retrieved.

security

non-blocking

smart contracts

Verification

Extended finite state machines

Author

Nishant Parekh

Chalmers, Electrical Engineering, Systems and control

Wolfgang Ahrendt

Chalmers, Computer Science and Engineering (Chalmers), Formal methods

Martin Fabian

Chalmers, Electrical Engineering, Systems and control

IFAC-PapersOnLine

24058963 (eISSN)

Vol. 58 1 282-287

17th IFAC Workshop on Discrete Event Systems, WODES 2024
Rio de Janeiro, Brazil,

Subject Categories

Computational Mathematics

Computer Science

Computer Systems

DOI

10.1016/j.ifacol.2024.07.048

More information

Latest update

9/23/2024