請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357
標題: | OurContract:比特幣智能合約的設計 OurContract: A Smart Contract Design on Bitcoin |
作者: | Hsuan Hsu 許軒 |
指導教授: | 薛智文 |
關鍵字: | 分散式系統,區塊鏈,智能合約,比特幣,以太坊, distributed system,blockchain,smart contract,Bitcoin,Ethereum, |
出版年 : | 2018 |
學位: | 碩士 |
摘要: | 以太坊實作了第一個基於區塊鏈的智能合約平臺,並成功促使眾多去中心化應用程式建置於其上。然而,對於比特幣及其衍生區塊鏈,目前尚未有成熟的智能合約功能實作。並且,為了實現智能合約所需的可追蹤帳戶,以太坊區塊鏈採用了帳戶模型而非類似比特幣的未花費交易輸出(unspent transaction output, UTXO)模型,但多少犧牲了用戶隱私。在這篇論文中,我們呈現了一種建構在比特幣上的智能合約平臺,稱為OurContract。我們在UTXO之上添加了帳戶層,以實現可追蹤的帳戶,同時保有UTXO模型的用戶隱私特性。為了使OurContract更實際,我們設計了合約帳戶與使用者之間的幣轉移,以及根據礦工執行合約的消耗來決定交易手續費等機制。為了讓使用者能開發OurContract應用程式,我們提供了一個功能受限的C作為程式語言,稱為C-,及其附帶函式庫用以與區塊鏈進行交互,稱為libourcontract。這項研發不僅能套用於比特幣,也能套用在其他任何基於UTXO模型的區塊鏈。 Ethereum implements the first blockchain-based smart contract platform and successfully brings lots of decentralized applications. For Bitcoin and its derivatives, however, there are currently no mature implementations with smart contracts. Moreover, the Ethereum blockchain adopts the account model instead of the UTXO model as in Bitcoin to achieve account tracking, which is necessary for smart contracts but compromises some user privacy. In this thesis, we present OurContract, an alternative solution to smart contract platform built on the Bitcoin blockchain. We construct an additional account layer on top of the UTXO model to achieve account tracking while preserving the privacy property of the UTXO model. To make OurContract more practical, we design mechanisms to enable coin transfer among contract accounts and users, and we allow transaction fee to be determined according to the cost for miners to execute contracts. For users to develop OurContract applications, we provide a limited version of C, called C-, as the programming language, and an associated library, called libourcontract, for C- programmers to interact with the blockchain. Our work can be applied to not only Bitcoin, but any blockchains based on the UTXO model. |
URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357 |
DOI: | 10.6342/NTU201803178 |
全文授權: | 有償授權 |
顯示於系所單位: | 資訊工程學系 |
文件中的檔案:
檔案 | 大小 | 格式 | |
---|---|---|---|
ntu-107-1.pdf 目前未授權公開取用 | 1.08 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。