An idealist’s approach for smart contract correctness

In this work, we experiment an idealistic approach for smart contract correctness verification and enforcement, based on the assumption that developers are either desired or required to provide a correctness specification due to the importance of smart contracts and the fact that they are immutable...

Full description

Saved in:
Bibliographic Details
Main Authors: NGUYEN, Duy Tai, PHAM, Hong Long, SUN, Jun, LE, Quang Loc
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2023
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/8373
https://ink.library.smu.edu.sg/context/sis_research/article/9376/viewcontent/SmartContractCorrectness_av.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-9376
record_format dspace
spelling sg-smu-ink.sis_research-93762023-12-13T02:38:51Z An idealist’s approach for smart contract correctness NGUYEN, Duy Tai PHAM, Hong Long SUN, Jun LE, Quang Loc In this work, we experiment an idealistic approach for smart contract correctness verification and enforcement, based on the assumption that developers are either desired or required to provide a correctness specification due to the importance of smart contracts and the fact that they are immutable after deployment. We design a static verification system with a specification language which supports fully compositional verification (with the help of function specifications, contract invariants, loop invariants and call invariants). Our approach has been implemented in a tool named iContract which automatically proves the correctness of a smart contract statically or checks the unverified part of the specification during runtime. Using iContract, we have verified 10 high-profile smart contracts against manually developed detailed specifications, many of which are beyond the capacity of existing verifiers. Specially, we have uncovered two ERC20 violations in the BNB and QNT contracts. 2023-11-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8373 info:doi/10.1007/978-981-99-7584-6_2 https://ink.library.smu.edu.sg/context/sis_research/article/9376/viewcontent/SmartContractCorrectness_av.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Contracts Finance and Financial Management Software Engineering Theory and Algorithms
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Contracts
Finance and Financial Management
Software Engineering
Theory and Algorithms
spellingShingle Contracts
Finance and Financial Management
Software Engineering
Theory and Algorithms
NGUYEN, Duy Tai
PHAM, Hong Long
SUN, Jun
LE, Quang Loc
An idealist’s approach for smart contract correctness
description In this work, we experiment an idealistic approach for smart contract correctness verification and enforcement, based on the assumption that developers are either desired or required to provide a correctness specification due to the importance of smart contracts and the fact that they are immutable after deployment. We design a static verification system with a specification language which supports fully compositional verification (with the help of function specifications, contract invariants, loop invariants and call invariants). Our approach has been implemented in a tool named iContract which automatically proves the correctness of a smart contract statically or checks the unverified part of the specification during runtime. Using iContract, we have verified 10 high-profile smart contracts against manually developed detailed specifications, many of which are beyond the capacity of existing verifiers. Specially, we have uncovered two ERC20 violations in the BNB and QNT contracts.
format text
author NGUYEN, Duy Tai
PHAM, Hong Long
SUN, Jun
LE, Quang Loc
author_facet NGUYEN, Duy Tai
PHAM, Hong Long
SUN, Jun
LE, Quang Loc
author_sort NGUYEN, Duy Tai
title An idealist’s approach for smart contract correctness
title_short An idealist’s approach for smart contract correctness
title_full An idealist’s approach for smart contract correctness
title_fullStr An idealist’s approach for smart contract correctness
title_full_unstemmed An idealist’s approach for smart contract correctness
title_sort idealist’s approach for smart contract correctness
publisher Institutional Knowledge at Singapore Management University
publishDate 2023
url https://ink.library.smu.edu.sg/sis_research/8373
https://ink.library.smu.edu.sg/context/sis_research/article/9376/viewcontent/SmartContractCorrectness_av.pdf
_version_ 1787136845334708224