Skip navigation

DSpace JSPUI

DSpace preserves and enables easy and open access to all types of digital content including text, images, moving images, mpegs and data sets

Learn More
DSpace logo
English
中文
  • Browse
    • Communities
      & Collections
    • Publication Year
    • Author
    • Title
    • Subject
  • Search TDR
  • Rights Q&A
    • My Page
    • Receive email
      updates
    • Edit Profile
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
Please use this identifier to cite or link to this item: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357
Title: OurContract:比特幣智能合約的設計
OurContract: A Smart Contract Design on Bitcoin
Authors: Hsuan Hsu
許軒
Advisor: 薛智文
Keyword: 分散式系統,區塊鏈,智能合約,比特幣,以太坊,
distributed system,blockchain,smart contract,Bitcoin,Ethereum,
Publication Year : 2018
Degree: 碩士
Abstract: 以太坊實作了第一個基於區塊鏈的智能合約平臺,並成功促使眾多去中心化應用程式建置於其上。然而,對於比特幣及其衍生區塊鏈,目前尚未有成熟的智能合約功能實作。並且,為了實現智能合約所需的可追蹤帳戶,以太坊區塊鏈採用了帳戶模型而非類似比特幣的未花費交易輸出(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
Fulltext Rights: 有償授權
Appears in Collections:資訊工程學系

Files in This Item:
File SizeFormat 
ntu-107-1.pdf
  Restricted Access
1.08 MBAdobe PDF
Show full item record


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

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved