在現代網路的應用中,電腦資料的存取一直以來都是不可或缺的,而目前現有的資料儲存方式中,多半是以資料庫為主,可是這樣的方法也存在一些缺點,像是伺服器故障問題、資料被篡改風險與過往資料遺失無法追朔,但隨著區塊鏈技術興起和相關應用發展,這些問題也跟著被解決,而在加密貨幣中的智能合約( Smart Contract )技術發展下,資料的儲存內容不再被限制於虛擬貨幣的交易中,並且安全性也更加穩定,但目前許多應用都只用於網路頁面,因此本篇論文希望利用加密貨幣中的智能合約結合遊戲開發,將遊戲資料記錄於合約內容中,再透過網頁來傳遞資料訊息給遊戲系統,藉此建構出一個架構讓不同平台也能夠操作區塊鏈,並使區塊鏈的交易內容能有更多不同的變化,像是透過合約代幣交換遊戲道具,或是將合約代幣再換成乙太幣或是現金。實驗結果顯示所提出之系統架構使智能合約這項技術能夠有更多的延伸,而不是只限制於網頁呈現與單純金錢交易的模式。
In the application of networks, the method of data storing has always been an important part. Most of the existing data storage methods are based on databases. However, there are also some disadvantages in such a way, such as server failure, the risk of data tampering, and the loss of past data. With the advantage of blockchain, these problems have been solved. In the development of smart contract, the content of data storage is no longer restricted to Crypto currency transactions, and the security of data is robust. However, many applications are currently only used for web pages. Therefore, in this paper, smart contracts and game platforms are developed. In this program, game data are recorded in the contract content, and then data messages are transmitted through the web protocols. In such a way, the blockchain can also be operated on different platforms, and there are different changes for the transaction content of the blockchain, such as exchanging items in game through token, and exchange for cryptocurrency. Experimental results show that this method can make the technology of smart contracts more extensible for the game platforms, instead of the limited web-based methods and traditional transactions.