學術產出-Theses

Article View/Open

Publication Export

Google ScholarTM

政大圖書館

Citation Infomation

  • No doi shows Citation Infomation
題名 應用可修改智能合約於數位資產管理架構與實作之研究
Modifiable Smart Contract on Account in Trust of Digital Assets
作者 朱芳葶
Chu, Fang-Ting
貢獻者 郁方
Yu, Fang
朱芳葶
Chu, Fang-Ting
關鍵詞 區塊鏈
智能合約
有限狀態機
Solidity
數位資產
信託
Blockchain
Smart contract
Finite state machine
Solidity
Digital assets
Trust
日期 2021
上傳時間 1-Sep-2023 14:52:20 (UTC+8)
摘要 智能合約的不可變性是區塊鏈的一個重要特性。這種不可變性阻止了已部署的智能合約被惡意修改和操縱,也可以保證合約的執行遵循了用戶和合約所有者的初始協議。

然而,在合約部署後,也相對的無法靈活地更改程式代碼,很難修復開發缺陷或改進不良設計和實作新的功能。此外,因為智能合約需要根據當前的市場狀態來修改其行為,這也限制了智能合約在金融投資方面的應用。

因此,本研究在信託帳戶數位資產平台上實現了可修改智能合約框架的概念,展示了無需重新部署整個合約即可重新設計智能合約的靈活性和調整性。這個數位平台可以隨著新應用、新用戶、新功能甚至新的應用控制流程進行調整。特別是,我們通過信託帳戶發行新的代幣,使得失效的賬戶可以由指定的繼承人重新領取。我們還實現了兩個應用:人工智能投資和年金保險,並以兩個應用為例,展示如何利用該平台進一步開發數位資產應用。
The immutability of smart contract is a significant feature of blockchain. The immutability prevents deployed smart contracts from malicious modification and manipulations, guaranteeing the contract execution obeying the initial agreements of both sides: users and contract owners. On the other hand, without the flexibility of changing codes after the deployment, it is hard to fix software defects or improve poor design and utility functions.

Furthermore, the restriction also limits smart contract applications on financial investment while they are required to modify their behaviors according to the current market states.

This work realizes the concept of modifiable smart contract framework on digital asset platform with account in trust, demonstrating the flexibility and adjustment to redesign smart contracts without redeployment of the whole contract.
We implement the digital platform can be adjusted with new applications, new users, new functions and even new control flows of applications. Particularly, we issue new tokens with account in trust, such that a dead account can be re-claimed by designated survivors. We also implemented two applications: AI investment and annuity insurance as examples to show how digital asset applications can be further developed with the platform.
參考文獻 [1] Absolute immutability will slow blockchain progress,. https://www.coindesk.com/ absolute-immutability-will-slow-permissioned-blockchain-progress.
[2] Erc-20 token standard,. https://ethereum.org/en/developers/docs/standards/ tokens/erc-20/.
[3] Howtowriteupgradablesmartcontractsinsolidity,.https://medium.com/quillhash/ d8f1b95a0e9a.
[4] Openzeppelin upgrades,. https://simpleaswater.com/ upgradable-smart-contracts/.
[5] Upgradable (versioned) smart contracts,. https://hackernoon.com/ how-to-write-upgradable-versioned-smart-contracts-in-solidity-910007057943.
[6] Upgradeable smart contracts,. https://hackernoon.com/a7e9aef76fdd.
[7] Mengjie Chen, Daoyuan Wu, Xiao Yi, and Jianliang Xu. Agchain: A blockchain-based gateway for permanent, distributed, and secure app delegation from existing mobile app markets. arXiv preprint arXiv:2101.06454, 2021.
[8] Yan Chen. Blockchain tokens and the potential democratization of entrepreneurship and innovation. Business Horizons, 61(4):567–575, 2018.
[9] Yan Chen and Cristiano Bellavitis. Blockchain disruption and decentralized finance: The rise of decentralized business models. Journal of Business Venturing Insights, 13:e00151, 2020.
[10] Evangeline Ducas and Alex Wilner. The security and financial implications of blockchain technologies: Regulating emerging technologies in canada. International Journal, 72(4):538–562, 2017.
[11] Tharaka Mawanane Hewa, Yining Hu, Madhusanka Liyanage, Salil Kanhare, and Mika Ylianttila. Survey on blockchain based smart contracts: Technical aspects and future research. IEEE Access, 2021.
[12] Bin Hu, Zongyang Zhang, Jianwei Liu, Yizhong Liu, Jiayuan Yin, Rongxing Lu, and Xiaodong Lin. A comprehensive survey on smart contract construction and execution: paradigms, tools, and systems. Patterns, 2(2):100179, 2021.
[13] Ruthia He Yun Ma Kaidong Wu, Chuqiao Ren. Erc-1504 upgradable smart contract,. https://github.com/ethereum/EIPs/issues/1503, 2018.
[14] Liu Lee. State-based modifiable smart contract. pages 1–41, 2019.
[15] Stephen Marsh and Mark R Dibben. Trust, untrust, distrust and mistrust–an exploration of the dark (er) side. In International conference on trust management, pages 17–33. Springer, 2005.
[16] Muhammad Izhar Mehar, Charles Louis Shier, Alana Giambattista, Elgar Gong, Gabrielle Fletcher, Ryan Sanayhie, Henry M Kim, and Marek Laskowski. Understanding a revolu- tionary and flawed grand experiment in blockchain: the dao attack. Journal of Cases on Information Technology (JCIT), 21(1):19–32, 2019.
[17] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. Technical report, Manubot, 2019.
[18] Mohamad Osmani, Ramzi El-Haddadeh, Nitham Hindi, Marijn Janssen, and Vishanth Weerakkody. Blockchain for next generation services in banking and finance: cost, benefit, risk and opportunity analysis. Journal of Enterprise Information Management, 2020.
[19] Eugenia Politou, Fran Casino, Efthymios Alepis, and Constantinos Patsakis. Blockchain mutability: Challenges and proposed solutions. IEEE Transactions on Emerging Topics in Computing, PP:1–1, 10 2019.
[20] Mehrdokht Pournader, Yangyan Shi, Stefan Seuring, and SC Lenny Koh. Blockchain applications in supply chains, transport and logistics: a systematic review of the literature. International Journal of Production Research, 58(7):2063–2081, 2020.
[21] Purathani Praitheeshan, Lei Pan, and Robin Doss. Security evaluation of smart contract- based on-chain ethereum wallets. In Mirosław Kutyłowski, Jun Zhang, and Chao Chen, editors, Network and System Security, pages 22–41, Cham, 2020. Springer International Publishing.
[22] Reza Rahimian and Jeremy Clark. Tokenhook: Secure erc-20 smart contract. arXiv preprint arXiv:2107.02997, 2021.
[23] Waleed Rashideh. Blockchain technology framework: Current and future perspectives for the tourism industry. Tourism Management, 80:104125, 2020.
[24] Brophy Richard. Blockchain and insurance: a review for operations and regulation. Jour- nal of Financial Regulation and Compliance, 28(2):215–234, Jan 2019.
[25] Nick Szabo. Formalizing and securing relationships on public networks. First monday, 1997.
[26] Ramakrishna Thurimella and Yeturu Aahlad. The hitchhiker’s guide to blockchains: A trust based taxonomy. WANdisco, Inc., November, 2018.
[27] Mischa Tripoli and Josef Schmidhuber. Emerging opportunities for the application of blockchain in the agri-food industry. FAO and ICTSD: Rome and Geneva. Licence: CC BY-NC-SA, 3, 2018.
[28] Imdad Ullah, Salil S Kanhere, and Roksana Boreli. Privacy-preserving targeted mo- bile advertising: A blockchain-based framework for mobile ads. arXiv preprint arXiv:2008.10479, 2020.
[29] Li Zhang, Yongping Xie, Yang Zheng, Wei Xue, Xianrong Zheng, and Xiaobo Xu. The challenges and countermeasures of blockchain in finance and economics. Systems Re- search and Behavioral Science, 37(4):691–698, 2020.
[30] Zibin Zheng, Shaoan Xie, Hong-Ning Dai, Weili Chen, Xiangping Chen, Jian Weng, and Muhammad Imran. An overview on smart contracts: Challenges, advances and platforms. Future Generation Computer Systems, 105:475 – 491, 2020.
描述 碩士
國立政治大學
資訊管理學系
108356008
資料來源 http://thesis.lib.nccu.edu.tw/record/#G0108356008
資料類型 thesis
dc.contributor.advisor 郁方zh_TW
dc.contributor.advisor Yu, Fangen_US
dc.contributor.author (Authors) 朱芳葶zh_TW
dc.contributor.author (Authors) Chu, Fang-Tingen_US
dc.creator (作者) 朱芳葶zh_TW
dc.creator (作者) Chu, Fang-Tingen_US
dc.date (日期) 2021en_US
dc.date.accessioned 1-Sep-2023 14:52:20 (UTC+8)-
dc.date.available 1-Sep-2023 14:52:20 (UTC+8)-
dc.date.issued (上傳時間) 1-Sep-2023 14:52:20 (UTC+8)-
dc.identifier (Other Identifiers) G0108356008en_US
dc.identifier.uri (URI) http://nccur.lib.nccu.edu.tw/handle/140.119/146883-
dc.description (描述) 碩士zh_TW
dc.description (描述) 國立政治大學zh_TW
dc.description (描述) 資訊管理學系zh_TW
dc.description (描述) 108356008zh_TW
dc.description.abstract (摘要) 智能合約的不可變性是區塊鏈的一個重要特性。這種不可變性阻止了已部署的智能合約被惡意修改和操縱,也可以保證合約的執行遵循了用戶和合約所有者的初始協議。

然而,在合約部署後,也相對的無法靈活地更改程式代碼,很難修復開發缺陷或改進不良設計和實作新的功能。此外,因為智能合約需要根據當前的市場狀態來修改其行為,這也限制了智能合約在金融投資方面的應用。

因此,本研究在信託帳戶數位資產平台上實現了可修改智能合約框架的概念,展示了無需重新部署整個合約即可重新設計智能合約的靈活性和調整性。這個數位平台可以隨著新應用、新用戶、新功能甚至新的應用控制流程進行調整。特別是,我們通過信託帳戶發行新的代幣,使得失效的賬戶可以由指定的繼承人重新領取。我們還實現了兩個應用:人工智能投資和年金保險,並以兩個應用為例,展示如何利用該平台進一步開發數位資產應用。
zh_TW
dc.description.abstract (摘要) The immutability of smart contract is a significant feature of blockchain. The immutability prevents deployed smart contracts from malicious modification and manipulations, guaranteeing the contract execution obeying the initial agreements of both sides: users and contract owners. On the other hand, without the flexibility of changing codes after the deployment, it is hard to fix software defects or improve poor design and utility functions.

Furthermore, the restriction also limits smart contract applications on financial investment while they are required to modify their behaviors according to the current market states.

This work realizes the concept of modifiable smart contract framework on digital asset platform with account in trust, demonstrating the flexibility and adjustment to redesign smart contracts without redeployment of the whole contract.
We implement the digital platform can be adjusted with new applications, new users, new functions and even new control flows of applications. Particularly, we issue new tokens with account in trust, such that a dead account can be re-claimed by designated survivors. We also implemented two applications: AI investment and annuity insurance as examples to show how digital asset applications can be further developed with the platform.
en_US
dc.description.tableofcontents 1 Introduction 1
2 Related Work 2
2.1 Blockchain 2
2.2 Smart Contract 2
2.3 Application 3
2.4 Modifiable Smart Contract 4
2.4.1 Vaibhav Saini 5
2.4.2 Open Zeppelin 5
2.4.3 State-Based Modifiable Smart Contract 7
3 Digital Assets Platform 8
3.1 Overview 8
3.2 Control Contract 9
3.3 Storage Contract 11
3.4 Token Contract 11
3.5 Trust Contract 12
3.6 Server Contract 14
3.7 Overview 14
3.8 Implementation of Investment 5
3.8.1 Control Contract 15
3.8.2 Storage Contract 16
3.8.3 Token Contract 19
3.8.4 Trust Contract 20
3.8.5 Invest Contract 22
3.9 Asset management Application 23
4 Account in trust 26
4.1 Token 27
4.2 Trust 30
5 Application 32
5.1 Investment 33
5.2 Annuity Insurance 36
6 Implement 40
6.1 Token(SOScoin) 41
6.2 Trust 42
6.3 Investment 44
6.4 Annuity Insurance 44
7 Discussion 46
7.1 Comparison 46
7.2 Gas Cost 51
7.3 Pros and cons 52
7.3.1 Maneuverable flow and Scalability of functions 52
7.3.2 Convenient front-end operation 53
7.3.3 Transparency of transactions 53
7.3.4 Low barriers to entry. 53
7.3.5 Complexity of FSM table 54
7.3.6 Varied Parameter 54
7.3.7 Restrictions of Solidity 54
8 Conclusion 55
References 57
zh_TW
dc.format.extent 10252469 bytes-
dc.format.mimetype application/pdf-
dc.source.uri (資料來源) http://thesis.lib.nccu.edu.tw/record/#G0108356008en_US
dc.subject (關鍵詞) 區塊鏈zh_TW
dc.subject (關鍵詞) 智能合約zh_TW
dc.subject (關鍵詞) 有限狀態機zh_TW
dc.subject (關鍵詞) Solidityzh_TW
dc.subject (關鍵詞) 數位資產zh_TW
dc.subject (關鍵詞) 信託zh_TW
dc.subject (關鍵詞) Blockchainen_US
dc.subject (關鍵詞) Smart contracten_US
dc.subject (關鍵詞) Finite state machineen_US
dc.subject (關鍵詞) Solidityen_US
dc.subject (關鍵詞) Digital assetsen_US
dc.subject (關鍵詞) Trusten_US
dc.title (題名) 應用可修改智能合約於數位資產管理架構與實作之研究zh_TW
dc.title (題名) Modifiable Smart Contract on Account in Trust of Digital Assetsen_US
dc.type (資料類型) thesisen_US
dc.relation.reference (參考文獻) [1] Absolute immutability will slow blockchain progress,. https://www.coindesk.com/ absolute-immutability-will-slow-permissioned-blockchain-progress.
[2] Erc-20 token standard,. https://ethereum.org/en/developers/docs/standards/ tokens/erc-20/.
[3] Howtowriteupgradablesmartcontractsinsolidity,.https://medium.com/quillhash/ d8f1b95a0e9a.
[4] Openzeppelin upgrades,. https://simpleaswater.com/ upgradable-smart-contracts/.
[5] Upgradable (versioned) smart contracts,. https://hackernoon.com/ how-to-write-upgradable-versioned-smart-contracts-in-solidity-910007057943.
[6] Upgradeable smart contracts,. https://hackernoon.com/a7e9aef76fdd.
[7] Mengjie Chen, Daoyuan Wu, Xiao Yi, and Jianliang Xu. Agchain: A blockchain-based gateway for permanent, distributed, and secure app delegation from existing mobile app markets. arXiv preprint arXiv:2101.06454, 2021.
[8] Yan Chen. Blockchain tokens and the potential democratization of entrepreneurship and innovation. Business Horizons, 61(4):567–575, 2018.
[9] Yan Chen and Cristiano Bellavitis. Blockchain disruption and decentralized finance: The rise of decentralized business models. Journal of Business Venturing Insights, 13:e00151, 2020.
[10] Evangeline Ducas and Alex Wilner. The security and financial implications of blockchain technologies: Regulating emerging technologies in canada. International Journal, 72(4):538–562, 2017.
[11] Tharaka Mawanane Hewa, Yining Hu, Madhusanka Liyanage, Salil Kanhare, and Mika Ylianttila. Survey on blockchain based smart contracts: Technical aspects and future research. IEEE Access, 2021.
[12] Bin Hu, Zongyang Zhang, Jianwei Liu, Yizhong Liu, Jiayuan Yin, Rongxing Lu, and Xiaodong Lin. A comprehensive survey on smart contract construction and execution: paradigms, tools, and systems. Patterns, 2(2):100179, 2021.
[13] Ruthia He Yun Ma Kaidong Wu, Chuqiao Ren. Erc-1504 upgradable smart contract,. https://github.com/ethereum/EIPs/issues/1503, 2018.
[14] Liu Lee. State-based modifiable smart contract. pages 1–41, 2019.
[15] Stephen Marsh and Mark R Dibben. Trust, untrust, distrust and mistrust–an exploration of the dark (er) side. In International conference on trust management, pages 17–33. Springer, 2005.
[16] Muhammad Izhar Mehar, Charles Louis Shier, Alana Giambattista, Elgar Gong, Gabrielle Fletcher, Ryan Sanayhie, Henry M Kim, and Marek Laskowski. Understanding a revolu- tionary and flawed grand experiment in blockchain: the dao attack. Journal of Cases on Information Technology (JCIT), 21(1):19–32, 2019.
[17] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. Technical report, Manubot, 2019.
[18] Mohamad Osmani, Ramzi El-Haddadeh, Nitham Hindi, Marijn Janssen, and Vishanth Weerakkody. Blockchain for next generation services in banking and finance: cost, benefit, risk and opportunity analysis. Journal of Enterprise Information Management, 2020.
[19] Eugenia Politou, Fran Casino, Efthymios Alepis, and Constantinos Patsakis. Blockchain mutability: Challenges and proposed solutions. IEEE Transactions on Emerging Topics in Computing, PP:1–1, 10 2019.
[20] Mehrdokht Pournader, Yangyan Shi, Stefan Seuring, and SC Lenny Koh. Blockchain applications in supply chains, transport and logistics: a systematic review of the literature. International Journal of Production Research, 58(7):2063–2081, 2020.
[21] Purathani Praitheeshan, Lei Pan, and Robin Doss. Security evaluation of smart contract- based on-chain ethereum wallets. In Mirosław Kutyłowski, Jun Zhang, and Chao Chen, editors, Network and System Security, pages 22–41, Cham, 2020. Springer International Publishing.
[22] Reza Rahimian and Jeremy Clark. Tokenhook: Secure erc-20 smart contract. arXiv preprint arXiv:2107.02997, 2021.
[23] Waleed Rashideh. Blockchain technology framework: Current and future perspectives for the tourism industry. Tourism Management, 80:104125, 2020.
[24] Brophy Richard. Blockchain and insurance: a review for operations and regulation. Jour- nal of Financial Regulation and Compliance, 28(2):215–234, Jan 2019.
[25] Nick Szabo. Formalizing and securing relationships on public networks. First monday, 1997.
[26] Ramakrishna Thurimella and Yeturu Aahlad. The hitchhiker’s guide to blockchains: A trust based taxonomy. WANdisco, Inc., November, 2018.
[27] Mischa Tripoli and Josef Schmidhuber. Emerging opportunities for the application of blockchain in the agri-food industry. FAO and ICTSD: Rome and Geneva. Licence: CC BY-NC-SA, 3, 2018.
[28] Imdad Ullah, Salil S Kanhere, and Roksana Boreli. Privacy-preserving targeted mo- bile advertising: A blockchain-based framework for mobile ads. arXiv preprint arXiv:2008.10479, 2020.
[29] Li Zhang, Yongping Xie, Yang Zheng, Wei Xue, Xianrong Zheng, and Xiaobo Xu. The challenges and countermeasures of blockchain in finance and economics. Systems Re- search and Behavioral Science, 37(4):691–698, 2020.
[30] Zibin Zheng, Shaoan Xie, Hong-Ning Dai, Weili Chen, Xiangping Chen, Jian Weng, and Muhammad Imran. An overview on smart contracts: Challenges, advances and platforms. Future Generation Computer Systems, 105:475 – 491, 2020.
zh_TW