簡易檢索 / 詳目顯示

研究生: 黎哲宇
Che-Yu Li
論文名稱: 基於區塊鏈的即時交易系統設計-以購票系統為例
On Design of Blockchain-based Real-time Transaction System - Using Ticket Purchase System as an Example
指導教授: 羅乃維
Nai-Wei Lo
口試委員: 查士朝
Shi-Cho Cha
吳宗成
Tzong-Chen Wu
學位類別: 碩士
Master
系所名稱: 管理學院 - 資訊管理系
Department of Information Management
論文出版年: 2018
畢業學年度: 106
語文別: 中文
論文頁數: 59
中文關鍵詞: 區塊鏈卡夫卡售票即時交易星際檔案系統Quorum
外文關鍵詞: Blockchain, Kafka, Ticket System, Real-Time Transaction, Inter-Planet File System, Quorum
相關次數: 點閱:406下載:25
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 傳統型的交易系統大多採用主從式架構設計,以應用程式與資料庫的結合為主,應用程式負責邏輯,資料庫則儲存資料。區塊鏈與智能合約的出現讓交易方式有了變化,透過智能合約能結合程式邏輯與資料的狀態,讓即時交易能夠運作在區塊鏈的環境中。
    本篇論文提出一套基於區塊鏈與卡夫卡訊息佇列的即時交易系統,結合分散式與集中式系統的優點,使用以以太坊為基礎獨立出來的Quorum開發環境作為區塊鏈網路,星際檔案系統作為分散式資料庫。
    本論文實作即時交易售票系統,透過智能合約處理取得票券的流程,再透過第三方支付進行付款,最後回到伺服器上的活動管理系統,產生票券,即可完成購票流程,透過區塊鏈的方式讓售票系統的售票邏輯與票務流程,分開於智能合約與傳統網頁系統上執行,利用智能合約整合程式邏輯與資料庫的優勢,讓售票系統有更快的反應速度。


    Most of the traditional transaction systems adopt the client-server architecture design, which is based on the combination of application-side and database. The application is responsible for program logic and the database stores data. The emergence of blockchain and smart contracts has changed the way making transaction is done. Smart contracts can combine program logic with the state of the data, allowing instant transactions to operate in a blockchain environment.
    This paper proposes a real-time trading system based on blockchain and Kafka messages. Combining the advantages of decentralized and centralized systems, the Quorum development environment based on Ethereum is used as a blockchain network. The inter-planet file system acts as a decentralized database.
    This paper is also implemented as a real-time ticketing system. The process of obtaining tickets through smart contract processing, payment through third-party payment, and finally returning to the event management system on the server to generate tickets, the ticket purchase process can be completed. The blockchain approach allows the ticketing system's ticketing logic and ticketing process to be performed separately from smart contracts and traditional web systems, using smart contracts to integrate program logic and database advantages, allowing the ticketing system to react more quickly.

    摘要 I Abstract II 誌謝 III 目錄 IV 圖目錄 VI 表目錄 VIII 第一章 緒論 1 1.1 研究背景 1 1.2 研究動機與目標 1 1.3 章節介紹 2 第二章 文獻探討與相關技術介紹 3 2.1 文獻探討 3 2.2 相關技術介紹 3 2.2.1 Kafka 訊息佇列 3 2.2.2 區塊鏈技術 5 2.2.3 以太坊 (Ethereum) 6 2.2.4 Quorum 6 2.2.5 IPFS 7 第三章 即時交易系統架構 8 3.1 系統架構 8 3.2 系統功能架構 11 第四章 售票系統架構 13 4.1 實作系統架構 13 4.2 實作系統功能架構 16 4.3 系統流程 19 4.4 系統流程說明 20 第五章 系統實作 25 5.1 實作系統架構 25 5.1.1 區塊鏈網路與Kafka訊息佇列 26 5.1.2 系統後台與智能合約 29 5.2 實作平台環境 39 5.2.1 系統規格 39 5.2.2 系統參數 40 5.3 實作結果 41 第六章 結論、問題與討論 46 參考文獻 47

    [1] Juan M. Andrade, Mark T. Carges, M. R. MacBlane (February 24, 1992). "Open online transaction processing with the TUXEDO system". IEEE Computer Society International Conference, (COMPCON) Digest of Papers. 37: 366–371. doi:10.1109/CMPCON.1992.186740. ISBN 0-8186-2655-0.
    [2] Oracle TUXEDO Datasheet, http://www.oracle.com/technetwork/middleware/t uxedo/overview/oracle-tuxedo-12c-datasheet-1721265.pdf
    [3] 維基百科--Kafka, https://zh.wikipedia.org/wiki/Kafka
    [4] 朱小厮, Kafka之sync、async以及oneway https://blog.csdn.net/u013256816 /article/details/54896952
    [5] Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System, 2008.
    [6] Jimi S. , "Blockchain: how a 51% attack works (double spend attack)" https://medium.com/coinmonks/what-is-a-51-attack-or-double-spend-attack-aa108db63474.
    [7] Bitcoin Wiki, " Double-Spending Attack" https://en.bitcoin.it/wiki/Irreversible_ Transactions.
    [8] Ethereum Foundation, " A Next-Generation Smart Contract and Decentralized Application Platform", https://github.com/ethereum/wiki/wiki/White-Paper
    [9] Nick Szabo, "Smart Contracts",1994.
    [10] DR. GAVIN WOOD, " ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER BYZANTIUM VERSION," pp. 25-36, 2018.
    [11] Ethereum Foundation, " Solidity — Solidity 0.4.25 documentation," http://solidity.readthedocs.io/en/latest/.
    [12] J.P. Morgan, "Quorum Whitepaper," 2018.
    [13] Diego Ongaro and John Ousterhout, " In Search of an Understandable Consensus Algorithm (Extended Version)," 2013.
    [14] J.P. Morgan, "A permissioned implementation of Ethereum supporting data privacy," ,https://github.com/jpmorganchase/quorum
    [15] Juan Benet, " IPFS - Content Addressed, Versioned, P2P File System (DRAFT 3),".
    [16] Protocol Labs, " Filecoin: A Decentralized Storage Network," , 2017.
    [17] Ethereum Foundation, " web3.js - Ethereum JavaScript API," http://web3js. readthedocs.io/en/1.0/index.html, 2018.

    QR CODE