Please use this identifier to cite or link to this item: https://ah.lib.nccu.edu.tw/handle/140.119/131899
題名: 用事件溯源技術實現可溯源的智能合約
Implementation of traceable smart contracts with event sourcing
作者: 鄭智豪
Cheng, Chih-Hao
貢獻者: 陳恭<br>陳宜秀
Chen, Kung<br>Chen, Yi-Hsiu
鄭智豪
Cheng, Chih-Hao
關鍵詞: 區塊鏈
智能合約
CQRS
Event Sourcing
日期: 2020
上傳時間: 2-Sep-2020
摘要: 近年來許多企業紛紛投入區塊鏈的應用開發,區塊鏈具有非常完整的交易歷程儲存機制,鏈上發生過的每筆交易都會被保存在區塊中,再加上區塊鏈具有去中心化與無法竄改的特性,這些資料在商業用途可做為業務的存證或稽核用途。然而區塊鏈紀錄的是「區塊本身被確認的歷史」,而非「合約狀態被修改的歷史」,而且許多不同合約產生的交易紀錄都被保存在同一個區塊中,若沒有一套可行的機制作為輔助,要從鏈上取出特定合約狀態的歷史資料,唯一的做法為遍歷所有區塊並擷取特定合約相關的歷史紀錄。隨著時間的推移,區塊鏈保存的資料只會越來越多,進而導致從鏈上取出特定資料的時間變的非常緩慢,更不用說同時因應大量的查詢需求。此外,區塊鏈在特定情況下會有資料遺失的問題,雖然理論上發生的機率很低,但在實務上如果一筆重要且有爭議的交易遺失將造成重大的損失。鑑於上述問題本,研究使用命令與查詢責任分離模式 (CQRS,Command Query Responsibility Segregation)結合事件回溯 (ES,Event Sourcing)機制提出一套可行的解決方案,並透過實作與案例研討初步驗證所設計機制的可行性。
參考文獻: [1]黃方佐,2017,應用區塊鏈技術設計具資料隱私性之綠色供應鏈管理平台框架\n[2]Satoshi Nakamoto. 2008. Bitcoin:A Peer-to-Peer Electronic Cash System\n[3]The Economist. 2015. The trust machine\n[4]EC Ferrer. 2016. The blockchain: a new framework for robotic swarm systems.\n[5]Martin Fowler. 2006. Development of Further Patterns of Enterprise Application Architecture\n[6]Chris Richardson. 2017. Developing Transactional Microservices Using Aggregates, Event Sourcing and CQRS\n[7]會計研究月刊. 2019. 會計研究月刊第405期新興籌資工具 證券型代幣發行(STO)\n[8]Timothy McCallum. 2018. Diving into Ethereum’s world state\n[9]Lee Thomas. 2016. An Interpretation of Ethereum Project Yellow Paper\n[10] Vitalik Buterin. 2013. A Next-Generation Smart Contract and Decentralized Application Platform Paper\n[11] Nick Szabo. 1996. Smart Contracts: Building Blocks for Digital Markets\n[12] Dr. Gavin Wood. 2014. Ethereum: A Secure Decentralized Generalized Transaction Ledger\n網路資料\n[1]以太坊詳解之Merkle Patricia Trie,2018,https://yuan1028.github.io/ethereum-mpt/\n[2]以太坊源碼(一)Merkle-Patricia Trie(MPT)的實現,2018,https://www.jianshu.com/p/1e7455d00065\n[3] 一文讀懂以太坊存儲數據核心數據結構:MPT,2019,https://www.chainnews.com/zh-hant/articles/547512219774.htm\n[4] 證券型代幣(STO)規範出爐 — 政府要你殺雞用牛刀,2019,https://vocus.cc/@astro/5d1adf00fd897800019e2c62\n[5] The 1.x Files: The State of Stateless Ethereum,2019,https://blog.ethereum.org/2019/12/30/eth1x-files-state-of-stateless-ethereum/\n[6] CQRS and Event Sourcing as an antidote for problems with retrieving application states,2018,https://nexocode.com/blog/posts/cqrs-and-event-sourcing/\n[7] Indexer for Ethereum to get transaction list by address,2019,https://medium.com/adamant-im/indexer-for-ethereum-to-get-transaction-list-by-address-f5e5b38d5e8e\n[8] 什麼是圖靈完備?,2011,https://www.zhihu.com/question/20115374
描述: 碩士
國立政治大學
數位內容碩士學位學程
107462002
資料來源: http://thesis.lib.nccu.edu.tw/record/#G0107462002
資料類型: thesis
Appears in Collections:學位論文
學位論文

Files in This Item:
File Description SizeFormat
200201.pdf1.44 MBAdobe PDF2View/Open
Show full item record

Google ScholarTM

Check

Altmetric

Altmetric


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.