帳號:guest(3.145.173.112)          離開系統
字體大小: 字級放大   字級縮小   預設字形  

詳目顯示

以作者查詢圖書館館藏以作者查詢臺灣博碩士論文系統以作者查詢全國書目
作者(中文):李孟儒
作者(外文):Lee, Meng-Ju
論文名稱(中文):基於區塊鏈技術之食品履歷信賴溯源系統
論文名稱(外文):A Trustworthy Food Resume Traceability System Based on Blockchain Technology
指導教授(中文):黃能富
指導教授(外文):Huang, Nen-Fu
口試委員(中文):陳俊良
許健平
口試委員(外文):Chen, Jiann-Liang
Sheu, Jang-Ping
學位類別:碩士
校院名稱:國立清華大學
系所名稱:資訊工程學系
學號:107062593
出版年(民國):109
畢業學年度:108
語文別:英文
論文頁數:61
中文關鍵詞:食品安全食品履歷區塊鏈智能合約信賴溯源物聯網電子商務
外文關鍵詞:Food SafetyFood ResumeBlockchainSmart ContractTrustworthy TraceabilityInternet of Things(IoT)E-commerce
相關次數:
  • 推薦推薦:0
  • 點閱點閱:1071
  • 評分評分:*****
  • 下載下載:0
  • 收藏收藏:0
隨著科技的進步,人類的生活品質迎來前所未有的提升,而其中人們對於食品安全議題的重視程度亦日益增加。在台灣,自2011年爆發多起食安醜聞,舉國譁然之際,人民對於原有的食品履歷、食品標章、檢驗報告,以及政府對於食品把關的能力產生了不信任感。因此,如何在此不信任感之下建構一個可信賴的食品溯源系統成為本篇論文的主旨,而區塊鏈技術的特性正好可以消除對這些中心化第三方信任的依賴。
本篇論文針對之食品安全主要分為兩大面向。第一,食品的原物料來源之環境;第二,食品供應鏈所經過之物流配送環境。原物料來源環境方面以佈署於農場中的物聯網感測器所蒐集之精確環境數據,以及農場之多種檢驗報告書;而物流配送環境方面則同樣以物流車上配置之物聯網感測器所蒐集之數據。輔以區塊鏈技術,以其透明公開、去中心化等特性,為這些資料、數據在不信任之雙方下提供驗證。最後,我們的系統結合了電商功能,提供購物平台開放消費者直接於平台上購買這些經過來源驗證之食品,並提供食品之可信賴履歷之溯源。
With the advancement in technology, the quality of human life has ushered in an unprecedented improvement, and people are paying more and more attention to food safety issues. In Taiwan, the whole country was in an uproar when several food security scandals broke out in 2011. Since then, people increase the distrust of the resume, the certificates, and the testing reports of the food, as well as the government's functionality of monitoring the food safety. Therefore, constructing a reliable food traceability system under the distrust is the main purpose of this paper, and the characteristics of blockchain technology are happen to be able to eliminate the dependence on the trust of these centralized third-party.
In this thesis, we target on two aspects of food traceability: the environment in which the ingredients of the food are sourced, and the logistics and shipping environment through which the food supply chain passes. The source environment of the ingredients part is based on the accurate environmental data collected by the IoT sensors deployed at the farm, and the various certificates or testing report of the farms as well. As for the logistics shipping environment, is based on the data collected by the IoT sensor deployed in the vehicle. Supported by blockchain technology, with its characteristics, it provides verification for these data under the distrust of both parties. At last, our system supports e-commerce service. We provide a shopping platform for customers to purchase these source-proven foods, and the traceability of the trustworthy resume of the food as well.
Abstract -------------------------------------- I
中文摘要 -------------------------------------- II
Table of Contents --------------------------- III
List of Figures ------------------------------- V
List of Tables ------------------------------ VII
Chapter 1 Introduction ------------------------ 1
Chapter 2 Related Work ---------------------- 4
2.1 Blockchain -------------------------------- 4
2.1.1 Transactions and Mining ----------------- 5
2.1.2 Characteristics ------------------------- 6
2.1.3 Ethereum -------------------------------- 8
2.1.4 Private Chain --------------------------- 9
2.1.5 Smart Contract ------------------------- 10
2.1.6 Remix and Solidity --------------------- 10
2.2 IPFS ------------------------------------- 12
2.2.1 Overview ------------------------------- 12
2.2.2 Filecoin ------------------------------- 12
2.3 Food Traceability ------------------------ 14
Chapter 3 System Design ---------------------- 16
3.1 System Overview -------------------------- 16
3.2 User Scenarios --------------------------- 17
3.3 Back-end Server -------------------------- 18
3.3.1 Blockchain and Smart Contract Design --- 19
3.3.2 Database Design ------------------------ 23
3.3.3 API Design ----------------------------- 28
3.4 Traceability Service --------------------- 32
3.4.1 Overview ------------------------------- 32
3.4.1 Data Verification ---------------------- 33
Chapter 4 System Implementation -------------- 35
4.1 Data collecting -------------------------- 35
4.1.1 Node-cron ------------------------------ 35
4.1.2 Merkle Tree ---------------------------- 36
4.2 Smart Contract --------------------------- 38
4.2.1 Hash-storing Type Smart Contract ------- 38
4.2.2 Order Type Smart Contract -------------- 40
4.2.3 Transactions --------------------------- 43
4.3 API Server ------------------------------- 45
4.3.1 Node.js and Express -------------------- 45
4.3.2 Middleware ----------------------------- 46
4.3.3 MVC Pattern ---------------------------- 47
4.4 Traceability Service and Front-end APP --- 48
Chapter 5 Conclusion and Future Works -------- 56
References ----------------------------------- 58
[1] “Food safety incidents in Taiwan,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Food_safety_incidents_in_Taiwan [Accessed: July 2020].
[2] “Merkle tree,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Merkle_tree [Accessed: June 2020].
[3] “SHA-2,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/SHA-2 [Accessed: July 2020].
[4] “Block header,” [Online]. Available: https://www.datadriveninvestor.com/2019/11/21/a-decomposition-of-the-bitcoin-block-header/ [Accessed: July 2020].
[5] “Difficulty,” Bitcoin Wiki. [Online]. Available: https://en.bitcoin.it/wiki/Difficulty [Accessed: July 2020].
[6] “Proof of Work,” Bitcoin Wiki. [Online]. Available: https://en.bitcoin.it/wiki/Proof_of_work [Accessed: July 2020].
[7] “51% attack,” Investopedia [Online]. Available: https://www.investopedia.com/terms/1/51-attack.asp [Accessed: July 2020].
[8] “Ethereum,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Ethereum/ [Accessed: July 2020].
[9] “ERC-20,” Investopedia [Online]. Available https://www.investopedia.com/news/what-erc20-and-what-does-it-mean-ethereum/ [Accessed: July 2020].
[10] “ERC-721,” Education.district0x.io. [Online]. Available https://education.district0x.io/general-topics/understanding-ethereum/erc-721-tokens/ [Accessed: July 2020].
[11] “Proof of Stake,” Investopedia [Online]. Available: https://www.investopedia.com/terms/p/proof-stake-pos.asp [Accessed: July 2020].
[12] “Private Chains Vs. Public Chains,” A Medium Corporation. [Online]. Available: https://medium.com/@ivykoin/private-chains-vs-public-chains-c1431905d108 [Accessed: July 2020].
[13] “Smart Contracts,” blockchainhub.net [Online]. Available: http://blockchainhub.net/smart-contracts/ [Accessed: July 2020].
[14] “Solidity,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Solidity [Accessed: July 2020].
[15] “Remix - Solidity IDE,” Remix.ethereum.org. [Online]. Available: http://remix.ethereum.org/ [Accessed: June 2020].
[16] “ABI code,” stackexchange [Online]. Available: https://ethereum.stackexchange.com/questions/234/what-is-an-abi-and-why-is-it-needed-to-interact-with-contracts [Accessed: July 2020].
[17] “InterPlanetary File System,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/InterPlanetary_File_System [Accessed: July 2020].
[18] “BitTorrent,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/BitTorrent [Accessed: July 2020].
[19] “HTTP,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol [Accessed: July 2020].
[20] “Filecoin,” filecoin.io. [Online]. Available: https://filecoin.io/ [Accessed: July 2020].
[21] M. Dholu and K. A. Ghodinde, "Internet of Things (IoT) for Precision Agriculture Application," 2018 2nd International Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli, 2018, pp. 339-342.
[22] M. M. Aung and Y. S. Chang, "Temperature management for the quality assurance of a perishable food supply chain", Food Control, vol. 40, pp. 198-207, Jun. 2014.
[23] Nakamoto, S., & Bitcoin, A. (2008). A peer-to-peer electronic cash system. Bitcoin.-URL: https://bitcoin. org/bitcoin. pdf.
[24] Q. Lin, H. Wang, X. Pei and J. Wang, "Food Safety Traceability System Based on Blockchain and EPCIS," in IEEE Access, vol. 7, pp. 20698-20707, 2019
[25] M. Singh, A. Singh and S. Kim, "Blockchain: A game changer for securing IoT data," 2018 IEEE 4th World Forum on Internet of Things (WF-IoT), Singapore, 2018, pp. 51-55
[26] D. Puthal, S. P. Mohanty, P. Nanda, E. Kougianos and G. Das, "Proof-of-Authentication for Scalable Blockchain in Resource-Constrained Distributed Systems," 2019 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 2019, pp. 1-5
[27] Miguel Pincheira Caro, Muhammad Salek Ali, Massimo Vecchio, Raffaele Giaffreda, “Blockchain-based traceability in Agri-Food supply chain management: A practical implementation,” IoT Vertical and Topical Summit on Agriculture - Tuscany (IOT Tuscany), Tuscany, Italy, June. 2018, pp. 1-4
[28] Feng Tian, "An agri-food supply chain traceability system for China based on RFID & blockchain technology," 2016 13th International Conference on Service Systems and Service Management (ICSSSM), Kunming, 2016, pp. 1-6
[29] Chun-Ting Pan, “Agricultural Product Traceability System Based on Ethereum Blockchain and Smart Contract,” 2019
[30] “Representational state transfer (REST),” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Representational_state_transfer/ [Accessed: July 2020].
[31] “Content Identifiers,” ipfs.io. [Online]. Available: https://docs.ipfs.io/concepts/content-addressing/ [Accessed: July 2020].
[32] “OAuth,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/OAuth [Accessed: July 2020].
[33] “Tsing Hua Agriculture IoT Platform,” National Tsing Hua University High Speed Network Lab. [Online]. Available: http://nthu-smart-farming.kits.tw:8080/ [Accessed: July 2020].
[34] “Tsing Hua Smart Campus Platform,” National Tsing Hua University High Speed Network Lab. [Online]. Available https://campus.kits.tw/ [Accessed: July 2020].
[35] “Cron,” En.wikipedia.org. [Online]. Available: https://en.wikipedia.org/wiki/Cron [Accessed: July 2020].
[36] “Hash Collision” ScienceDirect. [Online]. Available: https://www.sciencedirect.com/topics/computer-science/hash-collision [Accessed: July 2020].
[37] “Node.js,” nodejs.org. [Online]. Available: https://nodejs.org/en/ [Accessed: July 2020].
[38] “Express,” Expressjs. [Online]. Available https://expressjs.com/ [Accessed: July 2020].
[39] M. Kim, B. Hilton, Z. Burks and J. Reyes, "Integrating Blockchain, Smart Contract-Tokens, and IoT to Design a Food Traceability Solution," 2018 IEEE 9th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, 2018, pp. 335-340
 
 
 
 
第一頁 上一頁 下一頁 最後一頁 top
* *