Hands-On Blockchain with Hyperledger
eBook - ePub

Hands-On Blockchain with Hyperledger

Building decentralized applications with Hyperledger Fabric and Composer

Salman Baset, Luc Desrosiers, Nitin Gaur, Petr Novotny, Anthony O'Dowd, Venkatraman Ramakrishna

Buch teilen
  1. 460 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Hands-On Blockchain with Hyperledger

Building decentralized applications with Hyperledger Fabric and Composer

Salman Baset, Luc Desrosiers, Nitin Gaur, Petr Novotny, Anthony O'Dowd, Venkatraman Ramakrishna

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Leverage the power of Hyperledger Fabric to develop Blockchain-based distributed ledgers with ease

Key Features

  • Write your own chaincode/smart contracts using Golang on hyperledger network
  • Build and deploy decentralized applications (DApps)
  • Dive into real world blockchain challenges such as integration and scalability

Book Description

BBlockchain and Hyperledger technologiesare hot topics today. Hyperledger Fabric and Hyperledger Composer are open source projects that help organizations create private, permissioned blockchain networks. These find application in finance, banking, supply chain, and IoT among several other sectors. This book will be an easy reference to explore and build blockchain networks using Hyperledger technologies.

The book starts by outlining the evolution of blockchain, including an overview of relevant blockchain technologies. You will learn how to configure Hyperledger Fabric and become familiar with its architectural components. Using these components, you will learn to build private blockchain networks, along with the applications that connect to them. Starting from principles first, you'll learn to design and launch a network, implement smart contracts in chaincode and much more.

By the end of this book, you will be able to build and deploy your own decentralized applications, handling the key pain points encountered in the blockchain life cycle.

What you will learn

  • Discover why blockchain is a game changer in the technology landscape
  • Set up blockchain networks using basic Hyperledger Fabric deployment
  • Understand the considerations for creating decentralized applications
  • Learn to integrate business networks with existing systems
  • Write Smart Contracts quickly with Hyperledger Composer
  • Design transaction model and chaincode with Golang
  • Deploy Composer REST Gateway to access the Composer transactions
  • Maintain, monitor, and govern your blockchain solutions

Who this book is for

The book benefits business leaders as it provides a comprehensive view on blockchain business models, governance structure, and business design considerations of blockchain solutions. Technology leaders stand to gain a lot from the detailed discussion around the technology landscape, technology design, and architecture considerations in the book. With model-driven application development, this guide will speed up understanding and concept development for blockchain application developers. The simple and well organized content will put novices at ease with blockchain concepts and constructs.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Hands-On Blockchain with Hyperledger als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Hands-On Blockchain with Hyperledger von Salman Baset, Luc Desrosiers, Nitin Gaur, Petr Novotny, Anthony O'Dowd, Venkatraman Ramakrishna im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Cryptography. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2018
ISBN
9781788996044

A Business Network Example

In this chapter, we are going to bring together all the concepts we've discussed with a sample business network, involving a real-world example. Specifically, we're going to do a detailed walk-through of the Hyperledger Composer letter of credit sample, so that you can understand how participants, assets, transactions, and events are realized in code. We'll show how the business network is used, analyzed, defined, and how that definition is used to generate APIs, test them, and integrate them into a sample application. This is going to be a comprehensive tour that will get you from concepts right into implementation. We're going to use the letter of credit sample because it represents a well-known process that's often discussed in relation to blockchain. Let's discuss the process first, and then see why it's used as the poster child example.

The letter of credit sample

And so we get to our sample. Alice, the owner of QuickFix IT in the Italy, wishes to buy computers from Bob, who runs Conga computers in the USA. Alice is going to apply for a letter or credit from her bank, Dinero Bank, which will be accepted by Bob's bank, Eastwood Banks, as a form of payment.
We're going to try out the whole process using the letter of credit sample application found at https://github.com/hyperledger/composer-sample-applications. This repository contains a number of sample applications of business networkswe're going to use the letters of credit sample.

Installing the sample

If you've followed the steps in Chapter 3, Setting the Stage with a Business Scenario, you should have all of the prerequisites done. Now fork a copy of the sample application's repository (https://github.com/hyperledger/composer-sample-applications) to your GitHub account, and then clone it to your local machine using the following commands:
cd <your local git directory>
git clone [email protected]:<your github name>/composer-sample-applications.git
Navigate the the appropriate directory and install the letter of credit sample application using the following commands. It will take a few minutes for the application to download and install:
cd composer-sample-applications
cd packages/letter-of-credit
./install.sh
The install script will also start the application presentation tier in your browser. Let's investigate.

Running the sample

You'll see that your browser has opened up tabs corresponding to the different participants in the network. Click on the different tabs to see the different participants in the network. We're going to inhabit each of these personae as we work through the sample. Let's walk through the process by trying out the application:

Step 1 – preparing to request a letter of credit

We start with preparing for our request:
  1. Select the first tab on your browseryou will see the following page:
  1. You are now Alice! You can see your bank and your account details. You can apply for a letter of credit by clicking on the Apply button. Try it!
  1. You'll be presented with a page where you can request a letter of credit:

Step 2 – requesting a letter of credit

This is the first stage of the process you're going to request a letter of credit to buy computers from Bob! At the top of every screen, you'll see exactly where you are in the process, for example:
On the left-hand side of the page, you'll see the merchants' details—those of Alice and Bob. Notice the company names and account details:
Let's make an application as Alice. On the right-hand side of the screen, you can enter the details of the trade. Let's pretend that Alice requests 1,250 computers from Bob, at a unit price of 1,500. The application has a total value of 1.875M EUR:
Also note that Alice can chose (with her bank's permission) some of the terms and conditions on the application. These are important terms and conditions of the contract with Bob—unless they are satisfied, neither party will receive goods or payment:
You can edit these if you wish, although the process is not affected by them.
Click on the Start approval process button when you're ready to move to the next stage of the process:
Congratulations, you've just applied for a letter of credit!

Step 3 – importing bank approval

This is next stage of the process. Click on the next tab in your browser. You are now Matias, an employee of Alice's bank, Dinero, who needs to process her application! Here's the page that Matias sees:
It shows the application from Alice, and that it is waiting for approval from Matias. He is acting on behalf of Dinero Bank, and applies whatever process is required to approve or reject the letter. We might imagine that in a sophisticated process, Matias would only have to approve exceptional letters that could not be automatically approved.
If Matias clicks on the application, he is presented with the details, which are essentially the same as Alice requested:
In our scenario, Matias will approve the letter of credit, and the process will continue! Select the accept button and we'll move to the next step:

Step 4 – exporting bank approval

Click on the next tab in your browser. You are now Ella, an employee of Bob's bank, Eastwood, who has been informed that Alice wishes to do business with Bob:
This sample has taken a little creative license with the processnormally, the letter would be presented to Bob by Alice. Bob would then present it Ella. However, we can see that because everyone can view the letter in advance, process innovations are possible. We'll elaborate on this point later.
We can see that Ella authorizes the next stage in the processand we can see where the letter is in the process flow. When Ella selects the letter, she can see the following details:
Notice that the currency has been c...

Inhaltsverzeichnis