What Is Hyperledger? The Most Comprehensive Video Ever! - YouTube

Channel: unknown

[1]
(gently chiming bells)
[6]
- [Instructor] Hyperledger Fabric
[7]
is the most widely used private blockchain.
[10]
Used primarily in enterprise settings
[13]
to make transactions between multiple businesses
[16]
more seamless and efficient.
[18]
To accommodate each cases custom needs,
[21]
Fabric has a modular design which means
[24]
that businesses can plug in different functionalities
[27]
to suit their particular needs.
[29]
Let's take a look at what these modules are
[32]
and how they interact with each other.
[34]
Like all blockchains, fabric records a history
[37]
of transactions in a chronological ledger.
[40]
In Bitcoin, for example, the ledger holds the record
[43]
of bitcoins as they transfer from one party to another.
[47]
In fabric, the definition of what gets transferred
[50]
is a bit looser and is defined as an asset.
[53]
An asset can be anything with monetary value.
[57]
From whole foods to antique cars to currency futures.
[60]
Hyperledger Fabric allows the businesses
[63]
to set their asset types and values themselves.
[66]
Assets are represented as a collection of key-value pairs,
[70]
with state changes recorded as transactions on the ledger.
[74]
Hyperledger Fabric provides the ability
[77]
to modify assets using chaincode.
[79]
Chaincode is software defining an asset or assets,
[83]
and the transaction instructions for modifying those assets.
[87]
In other words, it's the business logic.
[90]
Smart contracts that are deployed
[91]
to the fabric Ledger execute chaincode.
[95]
Instead of each business having their own business logic,
[98]
which changes its own database,
[100]
the businesses share the business logic.
[102]
And all sign off on changes to the database.
[105]
Members of each permission network within Hyperledger Fabric
[109]
can interact with the ledger using chaincode.
[112]
Either by deploying new contracts
[114]
that add new business logic or invoking transactions
[117]
that were already codified in earlier contracts.
[120]
To enable these permission networks,
[122]
Hyperledger Fabric provides a membership identity service
[126]
that manages user IDs and authenticates
[129]
all participants on the network.
[131]
Access control lists can be used to provide
[134]
additional layers of permission through authorization
[137]
of specific network operations.
[139]
For example, a specific user ID could be permitted
[142]
to invoke a chaincode application
[144]
but be blocked from deploying new chaincode.
[147]
This permission network also assigns
[149]
network roles by node types.
[152]
There are two node types within
[154]
the Hyperledger Fabric network.
[156]
Peer nodes and ordering nodes.
[159]
Peer nodes are responsible for executing
[161]
and verifying transactions.
[164]
While ordering nodes are responsible
[166]
for ordering transactions and propagating
[169]
the correct history of events to the network.
[172]
This is done to increase efficiency and scalability
[175]
by allowing peer nodes to batch and process
[178]
multiple transactions simultaneously.
[181]
The network consensus protocol,
[183]
which the businesses and the network can customize,
[186]
is then implemented by the ordering nodes
[189]
to create a single true record of transaction.
[193]
Fabrics Ledger is comprised of two components.
[197]
A Blockchain Log to stores the immutable sequenced record
[201]
of transactions in blocks and a State Database
[204]
to maintain the blockchain's current state.
[207]
In the Bitcoin blockchain, there is no database.
[210]
And the current state of the chain is always calculated
[214]
by going through all the transactions in the Ledger.
[218]
For speed and efficiency's sake,
[220]
Hyperledger Fabric stores the current state as well
[223]
and allows the members of the network to query it
[226]
and sequel-like transactions.
[229]
The purpose of the log here
[231]
is to trap an assets providence or place of origin
[235]
as it is exchanged amongst multiple parties.
[238]
To track an assets' provenance means
[240]
to track where and when it was created
[243]
as well as every time it was exchanged.
[245]
Tracking an assets' providence is extremely important
[248]
in the world of business because it ensures
[251]
that the business selling an item
[252]
possesses a chain of titles verifying their ownership of it.
[257]
In typical databases, where only the current state
[260]
of an asset is kept and not a log of all transactions,
[264]
tracking an assets providence becomes very difficult.
[267]
Add to this the fact that transacting businesses
[270]
each keep an incomplete record of the assets transaction
[274]
and it becomes nearly impossible.
[276]
The reason many businesses stuck to this broken model
[280]
of data collection for as long as they did
[283]
was for the sake of privacy.
[285]
Having a distributed Ledger meant that every party
[288]
in a business network would have access
[290]
to all the transactions even if they weren't involved
[293]
in the transactions themselves.
[295]
This was a deal breaker for many businesses
[298]
who were perhaps in the same business network
[300]
as their competitors and didn't want to reveal their data
[303]
or transactions with other parties to their competitors.
[307]
Hyperledger Fabric solves this problem by using
[310]
Private Channels which are restricted messaging pods
[313]
that can be used to provide transaction privacy
[316]
and confidentiality for specific subsets of network members.
[321]
All data including transactions, member,
[324]
and channel information on a channel,
[326]
are invisible and inaccessible to any network members
[330]
not explicitly granted access to that channel.
[333]
This allows competing business interests
[336]
and any groups that require private
[339]
confidential transactions to coexist
[342]
on the same permissions network.
[344]
To summarize, Hyperledger Fabric has a modular design
[349]
that enables five core functionalities.
[352]
Members of a business can define asset types
[355]
and consensus protocol for ordering transactions.
[358]
They can also set permissions on who can join the network
[362]
and what type of access each membership can grant.
[365]
To increase efficiency, nodes are divided into two types.
[369]
Peer nodes and ordering nodes.
[372]
With peer nodes batching, verifying
[374]
and processing transactions and ordering nodes
[377]
logging and ordering those transactions
[380]
in chronological order.
[381]
Fabric's ledger itself consists of a database
[385]
of the networks current state which can be queried
[387]
and the log of transactions stored as a blockchain
[391]
for tracking each assets' providence.
[393]
Assets on the network are added, updated,
[396]
and transferred using chaincode.
[398]
And the form of smart contracts
[400]
deployed and invoked on the network.
[404]
If you've enjoyed this video,
[405]
consider checking out our website
[407]
where we have a full course on Hyperledger.
[409]
We learn more about how to get started with Hyperledger
[412]
and how to launch your first networking applications.
[415]
Thanks for watching.