SlideShare a Scribd company logo
1 of 14
The image that you see on the left, is a hashgraph.
Hashgraph is a Distributed Ledger Technology
developed by Leemon Baird, the co-founder and CTO of
Swirlds, in 2016.
MEMBERS
Alice Bob Carrol Dave
A B C D
Alice
Bob
Carrol
Dave
EVENT
Each event is a container for
zero or more transactions
along with some information
regarding the transaction
A B C D
1
2
3 4
Timestamp
and
Digital Signature
Transaction
Hash
EVENT
A B C D
GOSSIP PROTOCOL
AliceBobDave
A B C D
1
2
3
4 WITNESS
ROUND
The first event that a member creates in each round
is called a witness. Lets colour Alice’s witnesses
yellow.
It is possible for a member to have no witnesses in
a given round.
Alice’s Witness
Bob’s Witness
Carrol’s Witness
Dave’s Witness
Every witness is defined by
its two properties i.e. a
witness can either be Famous
or Not-Famous
A B C D
1
2
3
4 FAME
ROUND
The fame of every witness of a round is decided
through a systematic voting process. If a witness of
the of the next round can see a certain witness
then it votes ‘yes’.
Let’s try and calculate B2’s Fame.
Alice’s Witness
Bob’s Witness
Carrol’s Witness
Dave’s Witness
Witness Vote
A3
B3
C3
D3
Yes
Yes
Yes
Yes
A B C D
1
2
3
4 Election
ROUND
All four witnesses voted YES, so we would expect
that B2 will be declared to be famous. But the
election isn’t over yet! An election isn’t over until
the votes are counted.
The votes will be counted by the witnesses in the
following round. So B4 will count the votes. And D4
will also count the votes.
Witness VoteA3
B3
C3
D3
Yes
Yes
Yes
Yes
B4 will collect the votes from every round-3 witness
that it strongly sees.
B4
A3
A B C D
1
2
3
4 Election
ROUND
All four witnesses voted YES, so we would expect
that B2 will be declared to be famous. But the
election isn’t over yet! An election isn’t over until
the votes are counted.
The votes will be counted by the witnesses in the
following round. So B4 will count the votes. And D4
will also count the votes.
Witness VoteA3
B3
C3
D3
Yes
Yes
Yes
Yes
B4 will collect the votes from every round-3 witness
that it strongly sees.
B4
A3
,B3
A B C D
1
2
3
4 Election
ROUND
All four witnesses voted YES, so we would expect
that B2 will be declared to be famous. But the
election isn’t over yet! An election isn’t over until
the votes are counted.
The votes will be counted by the witnesses in the
following round. So B4 will count the votes. And D4
will also count the votes.
Witness Vote
B3
C3
D3
Yes
Yes
Yes
Yes
B4 will collect the votes from every round-3 witness
that it strongly sees.
A3
A3B4 ,B3,C3 ,D3
Election Result: B2 is Famous
Election
Witness Vote
B3
C3
D3
Yes
Yes
Yes
Yes
A3
A3B4 ,B3,C3 ,D3
Election Result: B2 is Famous
A B C D
1
2
3
4
ROUND
Since the supermajority has voted that B2 is famous
let’s colour it yellow.
Now let’s calculate C2’s fame.
Election Result: C2 is Not Famous
Famous Witness A2, B2, D2, A1, B1, C1, D1
Rounds
A B C D
1
2
3
4
ROUND
We have now decided the fame of every witness in
round 2. Once a round has the fame decided for all
of its witnesses, it is possible to find the round
received and find the consensus timestamp for a
new set of events
Let’s start by considering the black event
immediately below A2
Famous Witness A2, B2, D2, A1, B1, C1, D1
Since the black event is seen by all of the famous
witnesses in round it is said to have a round
received of 2.
Timestamps
A B C D
1
2
3
4
ROUND
The consensus timestamp of the black event can be
found as follows:-
Famous Witness A2, B2, D2, A1, B1, C1, D1
Now consider the grey event below B2.
It is seen by B2, but not seen by A2 or D2. So it was
not seen by all the famous witnesses in round 2
Find the earliest event X by Alice that is an ancestor
of A2 and a descendent of the black event.
Similarly, find the earliest event Y by Bob that is an
ancestor of B2 and descendent of the black event.
And similarly for event Z by Dave.
Consensus Order
A B C D
1
2
3
4
ROUND
Continuing, we find consensus for the 6 black
events and the 4 dark green events. These are the
10 events that have a round received of 2.
Famous Witness A2, B2, D2, A1, B1, C1, D1
We need to sort these 10 events into an order that
all members will agree on. This agreed order is the
consensus order.
This is done by sorting them by round received.

More Related Content

More from Edureka!

More from Edureka! (20)

How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | EdurekaITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
 
Difference between ITIL v3 and ITIL 4 | ITIL® Foundation Training | Edureka
Difference between ITIL v3 and ITIL 4 | ITIL® Foundation Training | EdurekaDifference between ITIL v3 and ITIL 4 | ITIL® Foundation Training | Edureka
Difference between ITIL v3 and ITIL 4 | ITIL® Foundation Training | Edureka
 
Jenkins vs Bamboo | Differences Between Jenkins and Bamboo | Edureka
Jenkins vs Bamboo | Differences Between Jenkins and Bamboo | EdurekaJenkins vs Bamboo | Differences Between Jenkins and Bamboo | Edureka
Jenkins vs Bamboo | Differences Between Jenkins and Bamboo | Edureka
 
What Is Digital Marketing? | Digital Marketing Tutorial | Edureka
What Is Digital Marketing? | Digital Marketing Tutorial | EdurekaWhat Is Digital Marketing? | Digital Marketing Tutorial | Edureka
What Is Digital Marketing? | Digital Marketing Tutorial | Edureka
 
What is JUnit? | Edureka
What is JUnit? | EdurekaWhat is JUnit? | Edureka
What is JUnit? | Edureka
 
Machine Learning in 10 Minutes | What is Machine Learning? | Edureka
Machine Learning in 10 Minutes | What is Machine Learning? | EdurekaMachine Learning in 10 Minutes | What is Machine Learning? | Edureka
Machine Learning in 10 Minutes | What is Machine Learning? | Edureka
 
Web Development Projects | Web Dev Project Ideas For Beginners | Edureka
Web Development Projects | Web Dev Project Ideas For Beginners | EdurekaWeb Development Projects | Web Dev Project Ideas For Beginners | Edureka
Web Development Projects | Web Dev Project Ideas For Beginners | Edureka
 
What's new in python 3.8? | Python 3.8 New Features | Edureka
What's new in python 3.8? | Python 3.8 New Features | EdurekaWhat's new in python 3.8? | Python 3.8 New Features | Edureka
What's new in python 3.8? | Python 3.8 New Features | Edureka
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

What is Hashgraph? | Hashgraph Explained | Edureka

  • 1.
  • 2. The image that you see on the left, is a hashgraph. Hashgraph is a Distributed Ledger Technology developed by Leemon Baird, the co-founder and CTO of Swirlds, in 2016. MEMBERS Alice Bob Carrol Dave
  • 3. A B C D Alice Bob Carrol Dave EVENT Each event is a container for zero or more transactions along with some information regarding the transaction
  • 4. A B C D 1 2 3 4 Timestamp and Digital Signature Transaction Hash EVENT
  • 5. A B C D GOSSIP PROTOCOL AliceBobDave
  • 6. A B C D 1 2 3 4 WITNESS ROUND The first event that a member creates in each round is called a witness. Lets colour Alice’s witnesses yellow. It is possible for a member to have no witnesses in a given round. Alice’s Witness Bob’s Witness Carrol’s Witness Dave’s Witness Every witness is defined by its two properties i.e. a witness can either be Famous or Not-Famous
  • 7. A B C D 1 2 3 4 FAME ROUND The fame of every witness of a round is decided through a systematic voting process. If a witness of the of the next round can see a certain witness then it votes ‘yes’. Let’s try and calculate B2’s Fame. Alice’s Witness Bob’s Witness Carrol’s Witness Dave’s Witness Witness Vote A3 B3 C3 D3 Yes Yes Yes Yes
  • 8. A B C D 1 2 3 4 Election ROUND All four witnesses voted YES, so we would expect that B2 will be declared to be famous. But the election isn’t over yet! An election isn’t over until the votes are counted. The votes will be counted by the witnesses in the following round. So B4 will count the votes. And D4 will also count the votes. Witness VoteA3 B3 C3 D3 Yes Yes Yes Yes B4 will collect the votes from every round-3 witness that it strongly sees. B4 A3
  • 9. A B C D 1 2 3 4 Election ROUND All four witnesses voted YES, so we would expect that B2 will be declared to be famous. But the election isn’t over yet! An election isn’t over until the votes are counted. The votes will be counted by the witnesses in the following round. So B4 will count the votes. And D4 will also count the votes. Witness VoteA3 B3 C3 D3 Yes Yes Yes Yes B4 will collect the votes from every round-3 witness that it strongly sees. B4 A3 ,B3
  • 10. A B C D 1 2 3 4 Election ROUND All four witnesses voted YES, so we would expect that B2 will be declared to be famous. But the election isn’t over yet! An election isn’t over until the votes are counted. The votes will be counted by the witnesses in the following round. So B4 will count the votes. And D4 will also count the votes. Witness Vote B3 C3 D3 Yes Yes Yes Yes B4 will collect the votes from every round-3 witness that it strongly sees. A3 A3B4 ,B3,C3 ,D3 Election Result: B2 is Famous
  • 11. Election Witness Vote B3 C3 D3 Yes Yes Yes Yes A3 A3B4 ,B3,C3 ,D3 Election Result: B2 is Famous A B C D 1 2 3 4 ROUND Since the supermajority has voted that B2 is famous let’s colour it yellow. Now let’s calculate C2’s fame. Election Result: C2 is Not Famous Famous Witness A2, B2, D2, A1, B1, C1, D1
  • 12. Rounds A B C D 1 2 3 4 ROUND We have now decided the fame of every witness in round 2. Once a round has the fame decided for all of its witnesses, it is possible to find the round received and find the consensus timestamp for a new set of events Let’s start by considering the black event immediately below A2 Famous Witness A2, B2, D2, A1, B1, C1, D1 Since the black event is seen by all of the famous witnesses in round it is said to have a round received of 2.
  • 13. Timestamps A B C D 1 2 3 4 ROUND The consensus timestamp of the black event can be found as follows:- Famous Witness A2, B2, D2, A1, B1, C1, D1 Now consider the grey event below B2. It is seen by B2, but not seen by A2 or D2. So it was not seen by all the famous witnesses in round 2 Find the earliest event X by Alice that is an ancestor of A2 and a descendent of the black event. Similarly, find the earliest event Y by Bob that is an ancestor of B2 and descendent of the black event. And similarly for event Z by Dave.
  • 14. Consensus Order A B C D 1 2 3 4 ROUND Continuing, we find consensus for the 6 black events and the 4 dark green events. These are the 10 events that have a round received of 2. Famous Witness A2, B2, D2, A1, B1, C1, D1 We need to sort these 10 events into an order that all members will agree on. This agreed order is the consensus order. This is done by sorting them by round received.