Background
I am studying the hyperledger fabic tutorial: Building Your First Network (BYFN), and studying the details of the scripts. The source codes can be found here.
Question
The commandbyfn.sh generate
runs cryptogen generate ./config=./crypto-config.yaml
and then generates certificates. A directory crypto-config/
is produced with sub-directories ordererOrganization/
and peerOrganizations/
.
In the path crypto-config/peerOrganizations/org1.example.com/
. It consists of
ca/
msp/
peers
tlsca/
users/
I have difficulties in understanding the structures in this directory.
Q1: There are certs and private keys in ca/
, msp/
and tlsa/
. But what are they representing? and why do we need them? It confuses me because inside directory of peer/
, there are also msp/
and tls/
.
Q2: What is the purpose of users/
directory? (I only know the network has peers and orderers). Are user
and admin
representing the end-users for this organization? and what is the difference between user
and admin
? Take this network picture for example, where are user
and admin
?
Many Thanks