Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357
完整後設資料紀錄
DC 欄位值語言
dc.contributor.advisor薛智文
dc.contributor.authorHsuan Hsuen
dc.contributor.author許軒zh_TW
dc.date.accessioned2021-06-17T06:37:25Z-
dc.date.available2018-08-18
dc.date.copyright2018-08-18
dc.date.issued2018
dc.date.submitted2018-08-15
dc.identifier.citation[1] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. 2008.
[2] Nick Szabo. Smart Contracts. http://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html, 1994. [Online; accessed 2018-07-31].
[3] Script - Bitcoin Wiki. https://en.bitcoin.it/wiki/Script. [Online; accessed 2018-07-31].
[4] Contract - Bitcoin Wiki. https://en.bitcoin.it/wiki/Contract. [Online; accessed 2018-07-31].
[5] Vitalik Buterin. A next-generation smart contract and decentralized application platform. 2014.
[6] Address reuse - Bitcoin Wiki. https://en.bitcoin.it/wiki/Address_reuse. [Online; accessed 2018-07-31].
[7] CoinJoin - Bitcoin Wiki. https://en.bitcoin.it/wiki/CoinJoin. [Online; accessed 2018-07-31].
[8] Design Rationale ethereum/wiki Wiki GitHub. https://github.com/ethereum/wiki/wiki/Design-Rationale. [Online; accessed 2018-07-31].
[9] Account Types, Gas, and Transactions - Ethereum Homestead 0.1 documentation. http://ethdocs.org/en/latest/contracts-and-transactions/account-types-gas-and-transactions.html#eoa-vs-contract-accounts. [Online; accessed 2018-07-31].
[10] Patrick Dai, Neil Mahi, Jordan Earls, and Alex Norta. Smart-contract value-transfer protocols on a distributed mobile application platform. 2017.
dc.identifier.urihttp://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357-
dc.description.abstract以太坊實作了第一個基於區塊鏈的智能合約平臺,並成功促使眾多去中心化應用程式建置於其上。然而,對於比特幣及其衍生區塊鏈,目前尚未有成熟的智能合約功能實作。並且,為了實現智能合約所需的可追蹤帳戶,以太坊區塊鏈採用了帳戶模型而非類似比特幣的未花費交易輸出(unspent transaction output, UTXO)模型,但多少犧牲了用戶隱私。在這篇論文中,我們呈現了一種建構在比特幣上的智能合約平臺,稱為OurContract。我們在UTXO之上添加了帳戶層,以實現可追蹤的帳戶,同時保有UTXO模型的用戶隱私特性。為了使OurContract更實際,我們設計了合約帳戶與使用者之間的幣轉移,以及根據礦工執行合約的消耗來決定交易手續費等機制。為了讓使用者能開發OurContract應用程式,我們提供了一個功能受限的C作為程式語言,稱為C-,及其附帶函式庫用以與區塊鏈進行交互,稱為libourcontract。這項研發不僅能套用於比特幣,也能套用在其他任何基於UTXO模型的區塊鏈。zh_TW
dc.description.abstractEthereum 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.en
dc.description.provenanceMade available in DSpace on 2021-06-17T06:37:25Z (GMT). No. of bitstreams: 1
ntu-107-R05922020-1.pdf: 1107674 bytes, checksum: f421da518cfe7f73ef63d62f0320446f (MD5)
Previous issue date: 2018
en
dc.description.tableofcontents1 Introduction 1
2 Preliminaries 7
2.1 Bitcoin UTXO Model 9
2.2 Ethereum Account Model 11
2.3 Ethereum Smart Contract Architecture 13
2.3.1 Contract Creation 15
2.3.2 Message Call 16
2.3.3 Transfer to Contract 17
2.3.4 Transfer from Contract 18
2.3.5 Transaction Fee 19
2.4 Related Work 20
3 Design of OurContract 23
3.1 Contract Account 24
3.2 Contract-Owned Coin 26
3.2.1 The Requirement 27
3.2.2 Contract-Authorized Transfer 28
3.2.3 Solution to Contract-Owned Coin 29
3.2.4 Mechanism Design 30
3.3 Transaction Fee 32
3.4 Coin Representation 34
4 Implementation of OurContract 36
4.1 Transaction Data Structure 36
4.2 Remote Procedure Call 37
4.3 OurContract Development 39
5 Future Work 41
6 Conclusion 43
Bibliography 44
dc.language.isoen
dc.titleOurContract:比特幣智能合約的設計zh_TW
dc.titleOurContract: A Smart Contract Design on Bitcoinen
dc.typeThesis
dc.date.schoolyear106-2
dc.description.degree碩士
dc.contributor.oralexamcommittee徐讚昇,俞旭昇,蔡孟峰
dc.subject.keyword分散式系統,區塊鏈,智能合約,比特幣,以太坊,zh_TW
dc.subject.keyworddistributed system,blockchain,smart contract,Bitcoin,Ethereum,en
dc.relation.page45
dc.identifier.doi10.6342/NTU201803178
dc.rights.note有償授權
dc.date.accepted2018-08-16
dc.contributor.author-college電機資訊學院zh_TW
dc.contributor.author-dept資訊工程學研究所zh_TW
顯示於系所單位:資訊工程學系

文件中的檔案:
檔案 大小格式 
ntu-107-1.pdf
  目前未授權公開取用
1.08 MBAdobe PDF
顯示文件簡單紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
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