ارائه درس امنیت در رایانش ابری-دانشگاه تربیت مدرس-معرفی هایپرلجر و اجرای یک پروژه نمونه از هایپرلجر فابریک-ارائه دهندگان محدثه جلیلی و فاطمه بشارت-استاد محترم: استاد دری
Providing security lessons in Cloud Computing - Tarbiat Modarres University - Introducing Hyperledger and implementing a sample project from Hyperledger Fabrik - Providers of Mohadeseh Jalili and Fatemeh Besharat - Professor Honored: Dorri Master
19. Hyperledger
■ Open source blockchain
■ related tools
■ started in December 2015 by the Linux Foundation
■ to support the collaborative development of blockchain-based distributed ledgers
19
51. .1Setting up a development environment:برنامهمابهیکشبکهبرایارتباطنیازدارد،بنابراینما
یکفایلرابهقطعاتیregistration/enrollment،queriesوupdatesنیازداریمتقسیمکردهودانلود
میکنیم:
54
سهگاماصلیhyperledger fabric:
52. Learning the parameters of the sample smart contract our app will use.2:
■قراردادهوشمندماشاملعملکردهایمختلفیاستکهبهمااجازهمیدهدباروشهایمختلفباسرفصلهای
مختلفارتباطبرقرارکنیم.پارامترهایsmart contractنمونهایکهبرنامههااستفادهمیکندرایادمیگیرد.
55
سهگاماصلیhyperledger fabric:
53. Developing the applications to be able to query and update assets on the ledger.3
مابهکدبرنامهدسترسیداریم(برنامههادرجاوااسکریپتنوشتهشدهاست)ومیتوانیممتغیرهارابهصورتدستی
برایاجرایانواعqueryهاوبهروزرسانیهادستکاریکنیم.
56
سهگاماصلیhyperledger fabric:
55. Ethereum vs Hyperledger.Fabric
HyperledgerEthereum
Private Network: Read/Write are permissionedPublic Network: Read/Write access to all peers
No Built-In CryptocurrencyBuilt-In Cryptocurrency: ether
Can create custom tokens via chaincodeCan create custom tokens via Coin API
No mining: Pluggable Consensus Algorithm -
(PBFT)
Consensus is reached by mining: Proof of Work
(soon to be Proof of Stake)
Chaincode usually written in GolangSmart contract usually written in Solidity
58
60. Install hyperledger
■پیشنیازنصبhyperledger:
■ Download the latest version of the cURL tool
■ Go language
■ Node.js Runtime and NPM
■ Git client
■ Go - 1.9 or later (for v1.0.X releases, use Go 1.7.X)
■ Docker - 17.06.2-ce or later
■ Docker Compose - 1.14.0 or later
63