| 研究生: |
黃世峰 Huang, Shih-Feng |
|---|---|
| 論文名稱: |
以區塊鏈智能合約技術實作網路小額借貸平台 Design and Implementation of a Peer-To-Peer Lending System based on Smart Contracts |
| 指導教授: |
陳恭
Chen, Kung |
| 口試委員: |
王大為
Wang, Da-Wei 廖峻鋒 Liao, Chun-Feng |
| 學位類別: |
碩士
Master |
| 系所名稱: |
理學院 - 資訊科學系碩士在職專班 Excutive Master Program of Computer Science |
| 論文出版年: | 2018 |
| 畢業學年度: | 106 |
| 語文別: | 中文 |
| 論文頁數: | 73 |
| 中文關鍵詞: | 區塊鏈 、網路借貸 、以太坊 、智能合約 、比特幣 |
| 外文關鍵詞: | Blockchain, Peer-to-Peer lending, Ethereum, Smart contract, Bitcoin |
| DOI URL: | http://doi.org/10.6814/THE.NCCU.EMCS.003.2019.B02 |
| 相關次數: | 點閱:277 下載:2 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
金融科技 (Financial technology,也稱為FinTech) ,是指企業運用科技手段使得金融服務變得更有效率,因而形成的一種經濟產業。金融業務經過 600 年來長久的發展,但不是所有的人都能順利地得到金融服務,還是有一部分的資金需求者無法取得金融服務;這時透過網路借貸平台 Peer-To-Peer Lending 正好可以補齊這方面的需求,因此從 2005 年來網路借貸平台在世界各地蓬勃發展,不過網路借貸平台因為集中式管理的問題,容易發生監守自盜的問題,造成平台倒閉。
2008 年中本聰發表了比特幣,2014 年 Vitalik Buterin 創立了以太坊,他們底層所使用的區塊鏈可以提供去中心化的網路架構、智能合約提供履約保證等功能,正巧可以補足網路借貸平台目前遇到的問題。本研究利用以太坊區塊鏈及智能合約實作網路借貸平台,探討區塊鏈應用程式的相關問題。
Financial technology (also known as FinTech) refers to an economic industry in which enterprises use technology to make financial services more efficient. The financial business has developed for a long time in the past 600 years, but not all people can get financial services smoothly, or some of the capital needs can not get financial services; at this time, Peer-To-Peer Lending can be completed through the online lending platform. In this regard, the Internet lending platform has flourished around the world since 2005. However, due to the problem of centralized management, online lending platforms are prone to self-stealing and cause the platform to close down.
In 2008, Nakamoto deployed bitcoin's original reference implementation. In 2014, Vitalik Buterin founded Ethereum. The blockchain used by the bottom layer can provide a decentralized network architecture, smart contracts to provide perform guarantees, etc., which can complement the network. The problems currently encountered by the lending platform. This study uses the Ethereum blockchain and smart contract implementation Peer-toPeer lending platform to explore issues related to blockchain applications.
第一章 緒論 1
1.1 研究背景與動機 2
1.2 研究目的與問題 2
1.3 研究成果 3
第二章 文獻探討 5
2.1 網路借貸(Peer-To-Peer Lending) 5
2.2 網路借貸平台 (Peer-To-Peer Lending) 6
2.3 區塊鏈 9
2.3.1 區塊鏈 (Blockchain)沿革 9
2.4 以太坊 (Ethereum) 10
2.4.1 共識機制 (Consensus) 10
2.4.2 EVM (Ethereum Virtual Machine) 11
2.4.2 Smart Contract 11
2.4.3 Dapp (Decentralized Application) 12
第三章 區塊鏈軟體設計探討 13
3.1 系統參與角色 13
3.2 系統流程 15
3.3 系統架構 19
3.4 系統設計 19
3.4.1 私有鏈Private chain (POA) 20
3.4.2 智能合約(Smart Contract)設計 21
3.4.3 Bank : 銀行智能合約 21
3.4.4 Trustee : 融資管理智能合約 25
3.4.5 Creditrating : 信用評分智能合約 29
3.4.6 Loan : 融資案智能合約 35
3.4.7 Bond : 債券智能合約 40
3.4.8 Event : 事件智能合約 43
3.4.9 DApp (Decentralized Application) 47
3.4.10 Ethereum JSON RPC 49
3.4.11 ev-hub:8540 合約事件處理(event handle) 50
3.4.12 tx-manager:8541 合約交易處理 (transaction process) 52
3.4.13 Datanode:8542 資料處理(data handle) 57
3.4.14 Banknode:8543 銀行帳號處理(bank handle) 57
3.4.15 Cronnode:8544 到期付款檢查 63
第四章 系統實作與展示 69
4.1 實作與語言與工具 69
4.2.1 情境模擬 (User Case) 69
第五章 結論與未來研究 71
5.1 結論 71
5.2 未來研究 71
5.3 參考文獻 72
[1] Ethereum Community,「Dapp」,Retrieved June 14 2017,from:http://ethdocs.org/en/latest/contracts-and-transactions/developer-tools.html
[2] Ethereum Community,「Ethereum Homestead Documentation」,Retrieved June 14 2017,from:http://ethdocs.org/en/latest/contracts-and-transactions/developer-tools.html
[3] Ethereum Community,「Transaction」,Retrieved June 14 2017,from:http://ethdocs.org/en/latest/contracts-and-transactions/account-types-gas-and-transactions.html#what-is-a-transaction
[4] ethereumbuilders,「Ethereum JSON RPC」,Retrieved June 14 2017,from:https://ethereumbuilders.gitbooks.io/guide/content/en/ethereum_json_rpc.html
[5] Github.com,「keythereum」,Retrieved Oct 4 2016,from:https://github.com/ethereumjs/keythereum
[6] Github.com,「sendRawTransaction」,Retrieved Oct 4 2016,from:https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsendrawtransaction
[7] Github.com,「sendTransaction」,Retrieved Oct 4 2016,from:https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsendtransaction
[8] Medium Corporation,「POA 私有鏈」,Retrieved Feb 08 2017,from:https://medium.com/taipei-ethereum-meetup/%E4%BD%BF%E7%94%A8-go-ethereum-1-6-clique-poa-consensus-%E5%BB%BA%E7%AB%8B-private-chain-1-4d359f28feff
[9] Medium Corporation,「Private Chain Create」,Retrieved Mar 18 2017,from:https://medium.com/taipei-ethereum-meetup/使用-go-ethereum-1-6-clique-poa-consensus-建立-private-chain-1-4d359f28feffW
[10] Wikipedia,「Ethereum」,Retrieved June 14 2017,from: https://en.wikipedia.org/wiki/Ethereum
[11] Wikipedia,「Node.js」,Retrieved Oct 4 2016,from: https://zh.wikipedia.org/wiki/Node.js
[12] Wikipedia,「認識你的客戶」,Retrieved Oct 14 2016,from:https://zh.wikipedia.org/wiki/認識你的客戶
[13] 中央銀行全球資訊網,「主要國家P2P借貸之發展經驗與借鏡」,上網日期107年10月23日,檢自:https://www.cbc.gov.tw/public/Attachment/892717204371.pdf
[14] 中央銀行全球資訊網,「主要國家P2P借貸之發展經驗與借鏡」,上網日期107年10月23日,檢自:https://www.cbc.gov.tw/public/Attachment/892717204371.pdf
[15] 奇摩理財,「淺談區塊鏈特性」,上網日期107年4月20日,檢自:https://yahoo-cryptocurrency.tumblr.com/post/171782370883/淺談區塊鏈特性
[16] 財團法人金融聯合徵信中心,「金融機構查詢信用資訊說明」,上網日期107年01月23日,檢自:http://www.jcic.org.tw/main_ch/docDetail.aspx?uid=76&pid=47&docid=82
[17] 智庫百科,「區塊鏈 (Block Chain)」,上網日期107年10月23日,檢自:https://wiki.mbalib.com/zh-tw/區塊鏈
[18] 電周文化,「區塊鏈技術演進史」,上網日期107年10月23日,https://www.ithome.com.tw/news/105370