Professional Documents
Culture Documents
Practice of Lesson 1-3
Practice of Lesson 1-3
Practice of Lesson 1-3
Introduction to Hyperledger
Fabric
Practices for Lesson 1
Overview
In these practices, you will learn to create AWS Managed Blockchain Network, VPC Endpoint,
Fabric Client Instance and setting of the IAM permissions.
Use Case
• Blockchain technology accelerates the Mortgage Lending Process. In this course we
consider one such Mortgage Loan Process i.e, Gold Loan. The Implementation is based
on Hyperledger Fabric which is a distributed ledger framework.
• The Implementation handles Gold Loan Transactions between Service Provider and the
Customers.
• The Hyperledger Fabric Ledger keeps track of the transactions made between the
Service Provider and the Customers.
• The Chaincode implementations in this Course includes Invoking Gold Loan Application,
Business Logic for Quality Test and Customer getting the Application Status.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
Overview
In this practice, you will learn to install Hyperledger Fabric CLI tool and set up the Hyperledger
Fabric CA client
Assumption
You should have completed the Practice 1-2
Tasks:
1. Connect to the Hyperledger Fabric EC2 Instance using Putty CLI tool.
c. After loading the key in the generator, click Save private key. It downloads the
private key in .ppk format.
d. Navigate to EC2 console and select the Instance you have created, scroll down and
copy the IPV4 Public IP address as shown below.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
f. Further, expand SSH and select auth under the category of Putty configuration.
Provide the path of Private key and click Open as shown below.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
2. Install the required Hyperledger Fabric client packages into EC2 instance
a. Run the commands to update the Linux packages and install jq (command-line
JSON processor) as shown below.
$sudo yum update -y
$sudo yum install jq -y
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
d. Install Docker in Linux Instance. Start the Docker by running the below commands
and configure the user for Docker.
Note: To run the Docker command without sudo, logout and login again into the
instance.
$sudo yum install -y docker
$sudo service docker start
$sudo usermod -a -G docker ec2-user
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
# Update PATH so that you can access the go binary system wide
export PATH=$GOROOT/bin:$PATH
export PATH=$PATH:/home/ec2-
user/go/src/github.com/hyperledger/fabric-ca/bin
d. In bash profile, edit the CASERVICEENDPOINT and ORDERER that is saved in the
previous step.
e. After the changes is applied, save the file and source the bash profile by running the
below command
$source ~/.bash_profile
4. Set up the AWS CLI and verify the connection to the Hyperledger Fabric CA
a. Set up the AWS command line interface and provide the region by running the below
command.
$aws configure
b. Verify the connection to the Hyperledger Fabric CA by running the below command
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
d. Verify the connection to the Fabric CA using telnet by running the below command
$telnet <CAENDPOINT> <CAPORT>
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.
6. Logout from the AWS console and close the putty terminal.
Copyright © 2020, Proton Expert Systems & Solutions. All rights reserved.