Introduction to Hyperledger Fabric

Dixing Xu

ZJU Blockchain Association

Dec. 14th 2019

What is Hyperledger?

  • An Open Souce collaborative effort to advacne cross-industry blockchain technologies
  • Host by The Linux Foudantion, fastest-growing project in LF history
  • Global collaboration spanning finance, banking, IoT, sypply chains, healthcare, manufacturing, technology and more.

What is Hyperledger?

What is Fabric?

  • permissioned blockchain infrastructure
  • contributed by IBM employees mostly
  • modular architecture

[1]: Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., De Caro, A., Enyeart, D., Ferris, C., Laventman, G., Manevich, Y. and Muralidharan, S., 2018, April. Hyperledger fabric: a distributed operating system for permissioned blockchains. In Proceedings of the Thirteenth EuroSys Conference (p. 30). ACM.

Key Concepts

  • Identity
  • Membership
  • Peers
  • Smart Contracts and Chain Code
  • Ledger
  • Private data
  • Channel capabilities


Shopping at supermarket

  • only Visa, Mastercard and AMEX cards are accepted
  • (1)a valid card that (2)is accepted by store


Shopping at supermarket

  • Public Key Infrastructure (PKI) provides a list of identities
  • Membership Service Provider (MSP) says which of these are members of a given organization that participates in the network


PKI: a collection of internet techno​logies that provides secure communications in a network (S in HTTPS)

  1. Digital Certificates

  2. Public and Private Keys, Digital Signature

  3. Certificate Authorities (CA)

  4. Certificate Revocation Lists


MSP: identifies which Root CAs and Intermediate CAs are truested to define the members of a trust domain e.g. an organization


Each peer node holds copies of ledgers and smar contracts.


  1. A -> P1 -> S1 -> L1
  2. P1 -> S1
  3. O1 -> all peers (P1,...)


Transaction Workflow

  1. Proposal
  2. Ordering and packaging transactions into blocks
  3. Validation and commit

Smart Contracts & Chaincodes[5]

Maybe in another talk?

Thank you!