Model-based testing for smart contracts
At this rate of adoption, blockchain has the potential to revolutionize and reshape the way we live and work. Still, security is an utmost concern. Although researchers have developed tools to analyze the security vulnerability of smart contracts, its behavior remains an area less explored. ModCon i...
Saved in:
Main Author: | |
---|---|
Other Authors: | |
Format: | Final Year Project |
Language: | English |
Published: |
Nanyang Technological University
2023
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/165958 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
id |
sg-ntu-dr.10356-165958 |
---|---|
record_format |
dspace |
spelling |
sg-ntu-dr.10356-1659582023-04-21T15:37:38Z Model-based testing for smart contracts Ng, Erica Xiang Qing Li Yi Yan Zhenzhen School of Computer Science and Engineering yi_li@ntu.edu.sg,yanzz@ntu.edu.sg, Engineering::Computer science and engineering::Software::Software engineering At this rate of adoption, blockchain has the potential to revolutionize and reshape the way we live and work. Still, security is an utmost concern. Although researchers have developed tools to analyze the security vulnerability of smart contracts, its behavior remains an area less explored. ModCon is designed to support testing for smart contract’s behavior. This study gives a comprehensive review on the efficiency of ModCon – a model-based testing tool – based on its coverage and its robustness. The coverage of ModCon is evaluated by testing game smart contracts and auction smart contracts on the Ethereum blockchain network. The robustness of ModCon is assessed based on various aspects, such as consistency and reproducibility, by testing the same smart contract on both the Ethereum and FISCO BCOS blockchain networks. ModCon is shown to be not efficient for its coverage for game smart contracts but efficient for auction smart contracts. For robustness, ModCon is not efficient based on reproducibility but efficient based on consistency. In summary, this report documents the testing process which comprises of how states are introduced to smart contracts, the challenges faced, solutions implemented, analysis of the findings and recommendations for the future. Bachelor of Science in Mathematical and Computer Sciences 2023-04-17T07:41:16Z 2023-04-17T07:41:16Z 2023 Final Year Project (FYP) Ng, E. X. Q. (2023). Model-based testing for smart contracts. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/165958 https://hdl.handle.net/10356/165958 en SCSE22-0201 application/pdf Nanyang Technological University |
institution |
Nanyang Technological University |
building |
NTU Library |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
NTU Library |
collection |
DR-NTU |
language |
English |
topic |
Engineering::Computer science and engineering::Software::Software engineering |
spellingShingle |
Engineering::Computer science and engineering::Software::Software engineering Ng, Erica Xiang Qing Model-based testing for smart contracts |
description |
At this rate of adoption, blockchain has the potential to revolutionize and reshape the way we live and work. Still, security is an utmost concern. Although researchers have developed tools to analyze the security vulnerability of smart contracts, its behavior remains an area less explored. ModCon is designed to support testing for smart contract’s behavior.
This study gives a comprehensive review on the efficiency of ModCon – a model-based testing tool – based on its coverage and its robustness. The coverage of ModCon is evaluated by testing game smart contracts and auction smart contracts on the Ethereum blockchain network. The robustness of ModCon is assessed based on various aspects, such as consistency and reproducibility, by testing the same smart contract on both the Ethereum and FISCO BCOS blockchain networks.
ModCon is shown to be not efficient for its coverage for game smart contracts but efficient for auction smart contracts. For robustness, ModCon is not efficient based on reproducibility but efficient based on consistency.
In summary, this report documents the testing process which comprises of how states are introduced to smart contracts, the challenges faced, solutions implemented, analysis of the findings and recommendations for the future. |
author2 |
Li Yi |
author_facet |
Li Yi Ng, Erica Xiang Qing |
format |
Final Year Project |
author |
Ng, Erica Xiang Qing |
author_sort |
Ng, Erica Xiang Qing |
title |
Model-based testing for smart contracts |
title_short |
Model-based testing for smart contracts |
title_full |
Model-based testing for smart contracts |
title_fullStr |
Model-based testing for smart contracts |
title_full_unstemmed |
Model-based testing for smart contracts |
title_sort |
model-based testing for smart contracts |
publisher |
Nanyang Technological University |
publishDate |
2023 |
url |
https://hdl.handle.net/10356/165958 |
_version_ |
1764208073000353792 |