Blockchain Overview: Unit 01 Part 2
Blockchain Overview: Unit 01 Part 2
Unit 01 Part 2
Blockchain behind
the scenes
Summary
What you should be able to do
• Discuss the role of a shared ledger and smart contracts in a blockchain solution.
• Describe how a blockchain application might transfer an asset by using smart contracts.
• Explain the role of Hyperledger Fabric and Hyperledger Composer in a blockchain for a business solution.
3
Learning objectives
Blockchain behind
the scenes
Summary
Blockchain recap
5
Example: Car leasing lifecycle
PARTICIPANTS
ASSET
6
Status quo: Car leasing supply chain
PARTICIPANTS
creates and make, model, manufacturer. buys the car car from the the scrap
populates the and vehicle from the Leasing merchant
registration identification dealer. company. disposes of
for the new number to the car.
vehicle. the vehicle
information.
7
Status quo: Car leasing information systems
PARTICIPANTS
PARTICPANT’S LEDGER
INFORMATION IN EACH
Scrap
merchant’s Dealer’s Accountability
records records
Privacy
Scalability
Leasing
Lessee’s
company’s
records
records
Government Manufacturer
regulator
Conditions Records of
for asset asset
transfer transfer
... and Smart contracts to define services that access the ledger. 10
A shared, replicated, and permissioned ledger
Government Manufacturer
regulator
Scrap
merchant Dealer
Blockchain
Smart Shared
contracts ledger
Lessee Leasing company
Conditions Records of
for asset asset
transfer transfer
11
A shared, replicated, and permissioned ledger
• Shared or distributed ledger: Each participant maintains its own copy of the ledger
through replication.
• The ledger stores transactions for each asset in the form of an immutable chain of
blocks (blockchain):
o The ledger is modified only through software-driven consensus.
o The only allowed modification to the ledger is to append transactions.
o Existing transactions cannot be changed, deleted, or reordered.
• Permissioned: Only identified, authenticated, and chosen participants update the ledger.
Smart Shared
contracts ledger
Conditions Records of
for asset asset
transfer transfer
12
Shared ledger: Components
• Blockchain
The chain provides an immutable, transparent record of
txns txns txns transactions:
$ $ $ o A linked list of blocks.
o Each block describes a set of transactions.
Blockchain o Immutable. Blocks cannot be tampered with.
• World State
The world state stores the current state of assets:
A owns $ o An ordinary database (for example, a key/value store).
o Stores the combined outputs of all transactions.
World state o Not usually immutable. Smart Shared
contracts ledger
Conditions Records of
for asset asset
transfer transfer
* $ represents an asset 13
Shared ledger: Asset transfer
Participant A wants to transfer
1 an asset to Participant B. 2 The set of transactions is
represented digitally as a “block”. 3 The block is broadcast to every
permissioned participant in the network.
$ $ $
A
A owns $
$ $
$
$
B
B owns $
$
© 2018 IBM Corporation
* $ represents an asset
Shared ledger: Blockchain immutability
… Previous
Block Hash:
#
$ Previous
Block Hash:
&
$ Previous
Block Hash:
@
$
Block Hash: & Block Hash: @ Block Hash: !
• A blockchain is made up of a series of blocks, with new blocks always added to the end.
• Each block includes the result of a hash function of the previous block.
• Immutability: If someone tries to tamper with a transaction’s outcome, the block’s hash is
updated, violating the integrity of the blockchain. Therefore, the change is rejected.
* $ represents an asset
15
Shared ledger: Scalability, accountability, and privacy
Scalability The shared distributed ledger for each business network stores: Accountability
o Transactions for each asset
FINALITY
o The current state of each asset, including asset ownership
Each participant maintains its own copy of ledger through replication.
16
Smart contracts
Smart Shared
contracts ledger
Conditions Records of
for asset asset
transfer transfer
17
Revisiting the car leasing blockchain solution
Government Manufacturer
regulator
Privacy
Conditions Records of
for asset asset
transfer transfer
Scalability
18
Car leasing blockchain solution: Details
Vehicles
S1: Smart
contract for car
ownership
transfer
User Car leasing
User application Transactions
S2: Smart
Vehicles
contract for
car lease
transfer SHARED LEDGER
Blockchain network
19
Car leasing: Change of lessee
World state
S1: Smart
contract for car
ownership MyCar.lessee =
transfer Dave
Car leasing
User application S2: Smart
contract for car
Blockchain
lease transfer
$ $ $
setLessee
Set lessee of
MyCar to Dave Shared ledger
* $ represents an asset
20
Car leasing: IBM Blockchain solution
https://www.youtube.com/watch?v=IgNfoQQ5Reg21
Learning objectives
Blockchain behind
the scenes
Summary
Hyperledger: Blockchain technologies for business
www.hyperledger.org 23
Hyperledger Fabric and Hyperledger Composer
24
Hyperledger Fabric
Hyperledger Fabric
• New major release each quarter.
25
Hyperledger Composer
26
IBM Blockchain Platform: Blockchain as a service
IBM Blockchain Platform is a fully integrated, enterprise-
ready blockchain platform that is designed to accelerate the
development, governance, and operation of a multi-
institution business network:
Governance Tools
build blockchain applications.
Operational Tools
Developer Tools
Hyperledger Composer
• Hyperledger Fabric provides the Blockchain infrastructure,
which is managed through a set of intuitive operational
tools. Hyperledger Fabric
27
IBM Blockchain Platform: End-to-end lifecycle coverage
• Multiple deployment • Implement blockchain • Designed for high • Based on popular and
sizes with flexible pricing projects more quickly. availability and disaster open Linux Foundation
and support. recovery. Hyperledger
• Extensive toolset for technologies.
• Democratic governance development, • Highly secured and
policies to help prevent governance, and suitable for transactional • No vendor lock-in!
unauthorized network operation of blockchain workloads. Embraces open source,
changes. networks. open standards, and
open governance.
Blockchain behind
the scenes
Summary
Unit summary and takeaways
This unit covered a high-level overview of blockchain for business, with the following key takeaways:
• Permissioned participants transfer assets through consensus by using a shared ledger and smart
contracts.
• A shared ledger is composed of an immutable record of transactions and the current state of assets. It is
designed to enable accountability, privacy, and scalability.
• A smart contract defines a set of operations and conditions for asset transfer.
• A blockchain for business solution can be built by using open-source technologies:
• Hyperledger Fabric is a blockchain, providing the implementation of a ledger, smart contracts,
privacy, and consensus.
• Hyperledger Composer is a suite of tools that makes it easy to develop blockchain applications.
• IBM Blockchain Platform provides the following benefits for enterprises:
• Security, high availability, and high performance.
• Simplified development, governance, and operations.
31
Checkpoint questions
a) World state
b) Shared assets
d) Hash of transactions
32
Checkpoint questions
a) Smart contracts
b) Cryptocurrencies
c) Distributed ledgers
d) Business networks
e) Chain of transactions
33
Checkpoint questions
a) Asset ownership
b) Proprietary software
c) Centralized governance
d) Permissioned participants
34
Checkpoint questions
35
Checkpoint questions
5) Hyperledger Fabric enables any enterprise to update the shared ledger when an asset is transferred.
a) True
b) False
36
Checkpoint answers
1. a, c
2. a, d
3. d
4. d
37
Exercise introduction
In this exercise, we introduce the lifecycle for the manufacturing of a vehicle,
identify the artifacts of the business network, and how a blockchain solution can be
applied.
38
References
For more information about the topics that are covered in this unit, see the following resources:
39
Thank you.
Questions? Tweet us or
go to ibm.com/blockchain
@IBMBlockchain
IBM Blockchain
IBM Blockchain
© Copyright IBM Corporation 2018. All rights reserved. The information contained in these
materials is provided for informational purposes only, and is provided AS IS without warranty
of any kind, express or implied. Any statement of direction represents IBM's current intent, is
subject to change or withdrawal, and represents only goals and objectives. IBM, the IBM
logo, and other IBM products and services are trademarks of the International Business
Machines Corporation, in the United States, other countries or both. Other company, product,
or service names may be trademarks or service marks of others.