請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/72357
完整後設資料紀錄
DC 欄位 | 值 | 語言 |
---|---|---|
dc.contributor.advisor | 薛智文 | |
dc.contributor.author | Hsuan Hsu | en |
dc.contributor.author | 許軒 | zh_TW |
dc.date.accessioned | 2021-06-17T06:37:25Z | - |
dc.date.available | 2018-08-18 | |
dc.date.copyright | 2018-08-18 | |
dc.date.issued | 2018 | |
dc.date.submitted | 2018-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.uri | http://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.abstract | 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. | en |
dc.description.provenance | Made 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.tableofcontents | 1 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.iso | en | |
dc.title | OurContract:比特幣智能合約的設計 | zh_TW |
dc.title | OurContract: A Smart Contract Design on Bitcoin | en |
dc.type | Thesis | |
dc.date.schoolyear | 106-2 | |
dc.description.degree | 碩士 | |
dc.contributor.oralexamcommittee | 徐讚昇,俞旭昇,蔡孟峰 | |
dc.subject.keyword | 分散式系統,區塊鏈,智能合約,比特幣,以太坊, | zh_TW |
dc.subject.keyword | distributed system,blockchain,smart contract,Bitcoin,Ethereum, | en |
dc.relation.page | 45 | |
dc.identifier.doi | 10.6342/NTU201803178 | |
dc.rights.note | 有償授權 | |
dc.date.accepted | 2018-08-16 | |
dc.contributor.author-college | 電機資訊學院 | zh_TW |
dc.contributor.author-dept | 資訊工程學研究所 | zh_TW |
顯示於系所單位: | 資訊工程學系 |
文件中的檔案:
檔案 | 大小 | 格式 | |
---|---|---|---|
ntu-107-1.pdf 目前未授權公開取用 | 1.08 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。