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