SlideShare a Scribd company logo
1 of 72
Marianne Goldin
June 16, 2022
Substrate:
Advantages and
Opportunities
0 Goals
Goals
“So what?”
High level system
understanding What can I do?
What do you want
from any new-to-you
system?
Non-Goals
Investment
advice
Lecture on
economics of
networks
Crypto
predictions
Blockchain
Skeptic
Satoshi
Nakamoto
Trough of
Questions
Me
Personal Disclosure
Personal Disclosure
Also
Me
HODLing
Building
blockchain
stuff for a
living
Enjoys shiny
objects
1 A Story
(Not Actual Work Product)
2 What is?
What is Substrate
Substrate is an extensible, modular, and
open-source framework for building
blockchains
Substrate (Related) History
2014
Dr. Gavin Wood
coins “Web 3.0”
term
2018
Parity Substrate
v.1 Beta released
2020
Polkadot (DOT)
coin launched
2021
First Polkadot
parachain
auctions
launched
Unboxing Substrate
Runtime
Networking
Consensus
Modularity
Upgrade-ability
Benchmarking
Telemetry
Off-chain
Integrations
Block Authoring
Portability
Governance
via Sudo
What is Substrate
Chainspec
Validators Chain
Genesis
Block
Proposed
Genesis
Block
Consensus
Genesis
Block
Written
Regular
Block
Proposed
A Chain is Born
Chainspec
Genesis Block
Blocks
Chain
The Chain is the Network
Validator
Validator
Chainspec - network “recipe” + DNA
Network settings:
● Unique Ids
● Storage data items
● Error reasons
● Network modes
● Voting settings
● Network entity roles
● Banned/Allowlisted
roles
● Other network
customizations…
Genesis settings:
● Initial token balances
● Accounts initially part
of a governance
council
● Holder of the
“master” sudo key for
admin transactions.
● Starting runtime logic
(as compiled WASM
blob)
Source: Chain Specification. Substrate v.3.0 Developer Docs.
+
Builds
Genesis
Block
Steps in Writing Blocks
Source: Transaction Pool. Substrate v.3.0 Developer Docs.
1. Validator collects transactions and validates it
2. Validator transmits transaction to shared transaction pool
3. Transaction pool checks transaction validity
4. Transaction pool assigns transaction to ready/future queue
5. Transactions in “ready” queue gossiped to all network parties
6. Validators use block authoring consensus to create blocks
7. Validators use finality consensus to finalize blocks
8. Finalized block is broadcast to the network
9. Each validator updates its chain with the new block
How a Transaction Becomes a Block
Source: Polkadot Consensus Part 2: GRANDPA. Medium.com. Joe Petrowski, 18 Dec 2019.
Transaction Pool
Pending blocks
(with
transactions)
New blocks
(ready for
finalization)
Existing chain
(for finalization)
Goal: One “Canonical” (Authoritative) Chain
Source: Web3 Foundation Consensus Tutorial - Bill Laboon - #CryptoEconSys20. 18 Mar 2020.
Block Authoring/Production Algorithms
Aura (PoAuthority)
Turn-taking order consistent
Limited by slot duration
Forks uncommon
Babe (PoStake)
Weighted authority mechanism. Turn taking
order changes every block
Forks more common
Proof of Work
(PoW)
Similar to Bitcoin,
Ethereum
Source: Consensus. Substrate Version 3.0 Docs.
Slot-Based Voting Rounds, Known Validators No Slots or Validators - Open Block Production
BABE authors blocks
Source: Consensus. Substrate Version 3.0 Docs.
Longest Chain Rule
“Best Chain is the
Longest Chain”
Block Finalization Algorithms
Provable methods
- GRANDPA
Verifies BABE.
Chooses “canonical chain” through voting: 2 rounds
of voting, result called when voting quorum reached
(⅔ of all consensus nodes voted).
Probabilistic
methods
Chooses longest chain as the “canonical chain”.
Used in Bitcoin-like systems
Source: Consensus. Substrate Version 3.0 Docs.
*GRANDPA: GHOST-based Recursive ANcestor
Deriving Prefix Agreement
*GHOST: Greedy Heaviest Observed SubTree
GRANDPA verifies BABE’s block production and finalizes
Source: Consensus. Substrate Version 3.0 Docs.
GHOST (Greedy Heaviest Observed SubTree)
“Choose the branch
that has the most
blocks built on it
recursively”
Can override BABE
Without Finalization, Forks Can Form
Authoring
Finalization
Fork 1
Fork 2
Fork 3
Canonical Chain
Consensus
(Node = Validator, aka Consensus Node)
Consensus Breakdown Resulting in Forking
Source: Consensus. Substrate Version 3.0 Docs.
Vote on block:
3/10 (44%)
“Honest NO”
3/10 (33%)
“Honest YES”
4/10 (40%)
Dishonest vote
Result:
Votes
partitioned
;
chains fork
Portable (via WebAssembly)
Source: Substrate in a Nutshell
3 Why?
Substrate Goals
Flexible Open
Interoperable Future-facing
What do you want
from any new-to-you
system?
Flexible
A la carte modularity
Source: A brief summary of everything Substrate. Parity Blog. 14 March, 2019.
Open
Open Source
Source: Substrate. ParityTech Github. Accessed 14 June 2022.
Inter-
operable
Interoperability: A definition
Source: Interoperability in the Age of Siloed Blockchains Pt. 1. Lucas Nuzzi. Medium.com. 19 Aug 2019.
“the ultimate goal [of blockchain interoperability] is the
same:
take asset/information from one blockchain chain,
validate its existence and preconditions (e.g. time-locks),
and recreate it synthetically in chain B”
Para…stuff
“One can imagine that a chain developed with
Substrate can at different points in its lifetime
assume one of three states:
an independent chain with secured bridge,
a parachain,
or a parathread.”
Source: Learn Parathreads. Polkadot Network Wiki
A Means of Sending Messages Across Chains
Source: Japan Rail (JR) Metro Line in Tokyo, Japan
Source: The Polkadot & Kusama Ecosystem. Messari.com. Mira Christanto 20 May 2021.
Parachain Components
Source: The Polkadot Architecture and Introduction to the Substrate Infrastructure. CoinTelegraph via Dot
Pulse.
Relay chains connecting parachains
Source: Getting Started. Polkadot Network Wiki
Parachains
Source: Learn Parachains. Polkadot Network Wiki
Future-
facing
Forkless Upgrades
Source: Perform a forkless upgrade of a Substrate pallet. Figment.io. Tomasz Waszczyk.
4 The Space
Platform Comparison
Name (Company) Differentiator License Pros Cons
Substrate (Parity)
Separate node authoring
and finalization
Provable finality with low
stalling
Forkless upgrades
GPL 3.0, Apache 2.0
Out of the box consensus
Highly modular
Active community
Many docs
Written in Rust
Complex Rust
implementation
Esoteric documentation
and concepts
Sawtooth & Fabric
(Hyperledger)
Integrated with DAML
Designed for scalability &
security
Apache 2.0
Open Source
Many docs
Few proven use cases
Few developers
Licensing challenge for
enterprise
Upgrade difficulties
Corda
Fine grained permissioning
for network access
Apache 2.0
Scalable and performant
Active community
Financial use cases
Difficult network
maintenance
Cardano
Lower energy consumption
Scalable
MIT
Scalable
Network-level
programmable privacy
Speed of development
Lacking smart contract-
specific privacy, requires
zCash impl.
Substrate Projects
Source: Top 10 Must-know Substrate-Based Projects. Quan, DotMarketCap. 7 May 2021.
+ Many
others
5 Get
Involved
Non-Engineering Entry-points
Educator / writer (e.g. monetize via DOT proposals)
Open source contributor to docs
Hackathon participant
Project owner / Grant admin
Engineering Entrypoints
Runtime development (Rust)
Platform/smart contract development
(Javascript/REACT)
Open Source contributor/advocate
Tech writer
Substrate Learning
SUBSTRATE RUNTIME TRAINING
Training - Getting Started | System Intro | YouTube Channel | Seminars | Developer Hub
Developer Resource - Walkthrough Video | Resource Page
Examples, Templates, Libraries, Announcements, Jobs - Awesome Substrate
Developer Forum - Stack Exchange
Developer Ecosystem - Resources and Overview
Code Training - Substrate Runtime Code Intro Video | Pallet Fundamentals Video
Conference - Parity Sub0 2021 Recorded Talks
SUBSTRATE SMART CONTRACT TRAINING
First Impressions working with Substrate and Ink (WASM Smart contracts) - Part 1 | Part 2 | Part 3
Substrate Official Ink (WASM Smart contracts) Tutorial
BOOTCAMPS
Substrate Dev Camp - Mailing list for next intake - requires Rust experience
Other Learning
RUST LANGUAGE TRAINING
Rust Official - Learning resources | Rust Book
Rust Conf ‘22 - Aug 5, 2022 - Portland, OR + Livestream
BLOCKCHAIN TRAINING
Web3 Blockhain Fundamentals
Opportunities
GRANTS/PRIZES/STIPENDS
Polkadot Ambassadors Program
Web3 Foundation Grants
Substrate Builders Program
Polkadot Hackathon (through July 18, 2022)
Incentivized Proposals for Services on Polkadot Network
JOBS
Parity Jobs - Company that builds Substrate
Substrate Job Board
Web3 Jobs
Rust In Blockchain Job Board - Jobs for Blockchain programmers using Rust
Engineering Job Examples
Aptos Labs - React Native
Engineer |
Software Engineer, Ecosystem |
Front End Engineer
Subspace Labs - Protocol
Engineer (Core)
ChainSafe Systems - Rust
Engineer (Substrate)
T3rn - Rust/Substrate Engineer
Definity - Web3 Software
Engineer Apprentice, SDK
Nori - Test Automation
Engineer, Web3 (SDET)
Trail of Bits - Remote
Blockchain Security
Apprenticeship
Transparent Systems -
General Application
Non-Engineering Job Examples
Analog - Community Lead |
Blockchain Research Analyst |
Crypto Marketing Lead
Proof of Learn -
Web3 Content Copywriter,
Remote
Magic Labs, Inc. -
Developer Advocacy Lead,
Web3
Transparent Systems -
General Application
CREDITS: This presentation template was created
by Slidesgo, including icons by Flaticon, and
infographics & images by Freepik
Thanks!
marianne.goldin
@gmail.com
6 Appendix
Competition for Standard Dominance
Source: To EVM or not to EVM. Messari.com. 27 September, 2021
Parachain Components
Source: A brief summary of everything Substrate Polkadot. Parity Technologies.
UTxO vs Account Model
Source: UTXO vs. Account Model. Horizen Academy.

More Related Content

Similar to Advantages and Opportunities of Substrate Framework

A beginners Guide to NFTs.pdf
A beginners Guide to NFTs.pdfA beginners Guide to NFTs.pdf
A beginners Guide to NFTs.pdfAkash Agrawal
 
tezos_hands-on-training.pdf
tezos_hands-on-training.pdftezos_hands-on-training.pdf
tezos_hands-on-training.pdfNeven6
 
Encode x Tezos Hack: Hands-on dApp Training
Encode x Tezos Hack: Hands-on dApp Training Encode x Tezos Hack: Hands-on dApp Training
Encode x Tezos Hack: Hands-on dApp Training KlaraOrban
 
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTs
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTsFIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTs
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTsFIWARE
 
Blockchain mechanism for IET Mauritius Network
Blockchain mechanism for IET Mauritius NetworkBlockchain mechanism for IET Mauritius Network
Blockchain mechanism for IET Mauritius Networkcharles okaformbah
 
Introducing Upcomings Chain.docx
Introducing Upcomings Chain.docxIntroducing Upcomings Chain.docx
Introducing Upcomings Chain.docxUpcomings
 
Introducing Moonbeam: A Smart Contract Parachain with Ethereum Compatibility
Introducing Moonbeam: A Smart Contract Parachain with Ethereum CompatibilityIntroducing Moonbeam: A Smart Contract Parachain with Ethereum Compatibility
Introducing Moonbeam: A Smart Contract Parachain with Ethereum CompatibilityPureStake
 
Encode polkadot club event 2, intro to polkadot
Encode polkadot club   event 2, intro to polkadotEncode polkadot club   event 2, intro to polkadot
Encode polkadot club event 2, intro to polkadotVanessa Lošić
 
Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017Lothar Wieske
 
Demystifying Blockchain for businesses
Demystifying Blockchain for businessesDemystifying Blockchain for businesses
Demystifying Blockchain for businessesScott Turner
 
Intro to Polkadot & Kusama
Intro to Polkadot & KusamaIntro to Polkadot & Kusama
Intro to Polkadot & KusamaDan Reecer
 
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)Svetlin Nakov
 
Consensus Algorithms.pptx
Consensus Algorithms.pptxConsensus Algorithms.pptx
Consensus Algorithms.pptxRajapriya82
 
Intro to Web3 and Polygon.pdf
Intro to Web3 and Polygon.pdfIntro to Web3 and Polygon.pdf
Intro to Web3 and Polygon.pdfTinaBregovi
 
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...IRJET Journal
 
RSK (rootstock) - The first open-source smart contract platform build on top ...
RSK (rootstock) - The first open-source smart contract platform build on top ...RSK (rootstock) - The first open-source smart contract platform build on top ...
RSK (rootstock) - The first open-source smart contract platform build on top ...Eugene Pavlenko
 

Similar to Advantages and Opportunities of Substrate Framework (20)

A beginners Guide to NFTs.pdf
A beginners Guide to NFTs.pdfA beginners Guide to NFTs.pdf
A beginners Guide to NFTs.pdf
 
tezos_hands-on-training.pdf
tezos_hands-on-training.pdftezos_hands-on-training.pdf
tezos_hands-on-training.pdf
 
Encode x Tezos Hack: Hands-on dApp Training
Encode x Tezos Hack: Hands-on dApp Training Encode x Tezos Hack: Hands-on dApp Training
Encode x Tezos Hack: Hands-on dApp Training
 
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTs
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTsFIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTs
FIWARE Wednesday Webinars - Integrating FIWARE with Blockchain/DLTs
 
Blockchain mechanism for IET Mauritius Network
Blockchain mechanism for IET Mauritius NetworkBlockchain mechanism for IET Mauritius Network
Blockchain mechanism for IET Mauritius Network
 
Introducing Upcomings Chain.docx
Introducing Upcomings Chain.docxIntroducing Upcomings Chain.docx
Introducing Upcomings Chain.docx
 
Introducing Moonbeam: A Smart Contract Parachain with Ethereum Compatibility
Introducing Moonbeam: A Smart Contract Parachain with Ethereum CompatibilityIntroducing Moonbeam: A Smart Contract Parachain with Ethereum Compatibility
Introducing Moonbeam: A Smart Contract Parachain with Ethereum Compatibility
 
Encode polkadot club event 2, intro to polkadot
Encode polkadot club   event 2, intro to polkadotEncode polkadot club   event 2, intro to polkadot
Encode polkadot club event 2, intro to polkadot
 
Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017
 
Demystifying Blockchain for businesses
Demystifying Blockchain for businessesDemystifying Blockchain for businesses
Demystifying Blockchain for businesses
 
Blockchain
BlockchainBlockchain
Blockchain
 
Ergo details
Ergo detailsErgo details
Ergo details
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
Intro to Polkadot & Kusama
Intro to Polkadot & KusamaIntro to Polkadot & Kusama
Intro to Polkadot & Kusama
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
 
Consensus Algorithms.pptx
Consensus Algorithms.pptxConsensus Algorithms.pptx
Consensus Algorithms.pptx
 
Intro to Web3 and Polygon.pdf
Intro to Web3 and Polygon.pdfIntro to Web3 and Polygon.pdf
Intro to Web3 and Polygon.pdf
 
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
 
RSK (rootstock) - The first open-source smart contract platform build on top ...
RSK (rootstock) - The first open-source smart contract platform build on top ...RSK (rootstock) - The first open-source smart contract platform build on top ...
RSK (rootstock) - The first open-source smart contract platform build on top ...
 

Recently uploaded

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Advantages and Opportunities of Substrate Framework

  • 1. Marianne Goldin June 16, 2022 Substrate: Advantages and Opportunities
  • 3. Goals “So what?” High level system understanding What can I do?
  • 4. What do you want from any new-to-you system?
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. (Not Actual Work Product)
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 21. What is Substrate Substrate is an extensible, modular, and open-source framework for building blockchains
  • 22. Substrate (Related) History 2014 Dr. Gavin Wood coins “Web 3.0” term 2018 Parity Substrate v.1 Beta released 2020 Polkadot (DOT) coin launched 2021 First Polkadot parachain auctions launched
  • 25.
  • 27. A Chain is Born Chainspec Genesis Block Blocks Chain
  • 28. The Chain is the Network Validator Validator
  • 29. Chainspec - network “recipe” + DNA Network settings: ● Unique Ids ● Storage data items ● Error reasons ● Network modes ● Voting settings ● Network entity roles ● Banned/Allowlisted roles ● Other network customizations… Genesis settings: ● Initial token balances ● Accounts initially part of a governance council ● Holder of the “master” sudo key for admin transactions. ● Starting runtime logic (as compiled WASM blob) Source: Chain Specification. Substrate v.3.0 Developer Docs. + Builds Genesis Block
  • 30. Steps in Writing Blocks Source: Transaction Pool. Substrate v.3.0 Developer Docs. 1. Validator collects transactions and validates it 2. Validator transmits transaction to shared transaction pool 3. Transaction pool checks transaction validity 4. Transaction pool assigns transaction to ready/future queue 5. Transactions in “ready” queue gossiped to all network parties 6. Validators use block authoring consensus to create blocks 7. Validators use finality consensus to finalize blocks 8. Finalized block is broadcast to the network 9. Each validator updates its chain with the new block
  • 31. How a Transaction Becomes a Block Source: Polkadot Consensus Part 2: GRANDPA. Medium.com. Joe Petrowski, 18 Dec 2019. Transaction Pool Pending blocks (with transactions) New blocks (ready for finalization) Existing chain (for finalization)
  • 32. Goal: One “Canonical” (Authoritative) Chain Source: Web3 Foundation Consensus Tutorial - Bill Laboon - #CryptoEconSys20. 18 Mar 2020.
  • 33. Block Authoring/Production Algorithms Aura (PoAuthority) Turn-taking order consistent Limited by slot duration Forks uncommon Babe (PoStake) Weighted authority mechanism. Turn taking order changes every block Forks more common Proof of Work (PoW) Similar to Bitcoin, Ethereum Source: Consensus. Substrate Version 3.0 Docs. Slot-Based Voting Rounds, Known Validators No Slots or Validators - Open Block Production
  • 34. BABE authors blocks Source: Consensus. Substrate Version 3.0 Docs. Longest Chain Rule “Best Chain is the Longest Chain”
  • 35. Block Finalization Algorithms Provable methods - GRANDPA Verifies BABE. Chooses “canonical chain” through voting: 2 rounds of voting, result called when voting quorum reached (⅔ of all consensus nodes voted). Probabilistic methods Chooses longest chain as the “canonical chain”. Used in Bitcoin-like systems Source: Consensus. Substrate Version 3.0 Docs. *GRANDPA: GHOST-based Recursive ANcestor Deriving Prefix Agreement *GHOST: Greedy Heaviest Observed SubTree
  • 36. GRANDPA verifies BABE’s block production and finalizes Source: Consensus. Substrate Version 3.0 Docs. GHOST (Greedy Heaviest Observed SubTree) “Choose the branch that has the most blocks built on it recursively” Can override BABE
  • 37. Without Finalization, Forks Can Form Authoring Finalization Fork 1 Fork 2 Fork 3 Canonical Chain Consensus (Node = Validator, aka Consensus Node)
  • 38. Consensus Breakdown Resulting in Forking Source: Consensus. Substrate Version 3.0 Docs. Vote on block: 3/10 (44%) “Honest NO” 3/10 (33%) “Honest YES” 4/10 (40%) Dishonest vote Result: Votes partitioned ; chains fork
  • 39. Portable (via WebAssembly) Source: Substrate in a Nutshell
  • 42. What do you want from any new-to-you system?
  • 44. A la carte modularity Source: A brief summary of everything Substrate. Parity Blog. 14 March, 2019.
  • 45. Open
  • 46. Open Source Source: Substrate. ParityTech Github. Accessed 14 June 2022.
  • 48. Interoperability: A definition Source: Interoperability in the Age of Siloed Blockchains Pt. 1. Lucas Nuzzi. Medium.com. 19 Aug 2019. “the ultimate goal [of blockchain interoperability] is the same: take asset/information from one blockchain chain, validate its existence and preconditions (e.g. time-locks), and recreate it synthetically in chain B”
  • 49. Para…stuff “One can imagine that a chain developed with Substrate can at different points in its lifetime assume one of three states: an independent chain with secured bridge, a parachain, or a parathread.” Source: Learn Parathreads. Polkadot Network Wiki
  • 50. A Means of Sending Messages Across Chains Source: Japan Rail (JR) Metro Line in Tokyo, Japan
  • 51. Source: The Polkadot & Kusama Ecosystem. Messari.com. Mira Christanto 20 May 2021.
  • 52. Parachain Components Source: The Polkadot Architecture and Introduction to the Substrate Infrastructure. CoinTelegraph via Dot Pulse.
  • 53. Relay chains connecting parachains Source: Getting Started. Polkadot Network Wiki
  • 54. Parachains Source: Learn Parachains. Polkadot Network Wiki
  • 56. Forkless Upgrades Source: Perform a forkless upgrade of a Substrate pallet. Figment.io. Tomasz Waszczyk.
  • 58. Platform Comparison Name (Company) Differentiator License Pros Cons Substrate (Parity) Separate node authoring and finalization Provable finality with low stalling Forkless upgrades GPL 3.0, Apache 2.0 Out of the box consensus Highly modular Active community Many docs Written in Rust Complex Rust implementation Esoteric documentation and concepts Sawtooth & Fabric (Hyperledger) Integrated with DAML Designed for scalability & security Apache 2.0 Open Source Many docs Few proven use cases Few developers Licensing challenge for enterprise Upgrade difficulties Corda Fine grained permissioning for network access Apache 2.0 Scalable and performant Active community Financial use cases Difficult network maintenance Cardano Lower energy consumption Scalable MIT Scalable Network-level programmable privacy Speed of development Lacking smart contract- specific privacy, requires zCash impl.
  • 59. Substrate Projects Source: Top 10 Must-know Substrate-Based Projects. Quan, DotMarketCap. 7 May 2021. + Many others
  • 61. Non-Engineering Entry-points Educator / writer (e.g. monetize via DOT proposals) Open source contributor to docs Hackathon participant Project owner / Grant admin
  • 62. Engineering Entrypoints Runtime development (Rust) Platform/smart contract development (Javascript/REACT) Open Source contributor/advocate Tech writer
  • 63. Substrate Learning SUBSTRATE RUNTIME TRAINING Training - Getting Started | System Intro | YouTube Channel | Seminars | Developer Hub Developer Resource - Walkthrough Video | Resource Page Examples, Templates, Libraries, Announcements, Jobs - Awesome Substrate Developer Forum - Stack Exchange Developer Ecosystem - Resources and Overview Code Training - Substrate Runtime Code Intro Video | Pallet Fundamentals Video Conference - Parity Sub0 2021 Recorded Talks SUBSTRATE SMART CONTRACT TRAINING First Impressions working with Substrate and Ink (WASM Smart contracts) - Part 1 | Part 2 | Part 3 Substrate Official Ink (WASM Smart contracts) Tutorial BOOTCAMPS Substrate Dev Camp - Mailing list for next intake - requires Rust experience
  • 64. Other Learning RUST LANGUAGE TRAINING Rust Official - Learning resources | Rust Book Rust Conf ‘22 - Aug 5, 2022 - Portland, OR + Livestream BLOCKCHAIN TRAINING Web3 Blockhain Fundamentals
  • 65. Opportunities GRANTS/PRIZES/STIPENDS Polkadot Ambassadors Program Web3 Foundation Grants Substrate Builders Program Polkadot Hackathon (through July 18, 2022) Incentivized Proposals for Services on Polkadot Network JOBS Parity Jobs - Company that builds Substrate Substrate Job Board Web3 Jobs Rust In Blockchain Job Board - Jobs for Blockchain programmers using Rust
  • 66. Engineering Job Examples Aptos Labs - React Native Engineer | Software Engineer, Ecosystem | Front End Engineer Subspace Labs - Protocol Engineer (Core) ChainSafe Systems - Rust Engineer (Substrate) T3rn - Rust/Substrate Engineer Definity - Web3 Software Engineer Apprentice, SDK Nori - Test Automation Engineer, Web3 (SDET) Trail of Bits - Remote Blockchain Security Apprenticeship Transparent Systems - General Application
  • 67. Non-Engineering Job Examples Analog - Community Lead | Blockchain Research Analyst | Crypto Marketing Lead Proof of Learn - Web3 Content Copywriter, Remote Magic Labs, Inc. - Developer Advocacy Lead, Web3 Transparent Systems - General Application
  • 68. CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik Thanks! marianne.goldin @gmail.com
  • 70. Competition for Standard Dominance Source: To EVM or not to EVM. Messari.com. 27 September, 2021
  • 71. Parachain Components Source: A brief summary of everything Substrate Polkadot. Parity Technologies.
  • 72. UTxO vs Account Model Source: UTXO vs. Account Model. Horizen Academy.

Editor's Notes

  1. https://www.geekwire.com/2020/transparent-systems-exits-stealth-mode-22m-funding-blockchain-enabled-instant-payments/
  2. Elections Phragmen: based on the Phragmen paper which introduced a method for electing a number of winners from a pool of candidates. Used for Proof of Stake systems such as in the Polkadot network, to elect validators based on their own qualification (self-stake or votes for themselves) and based on the stake that is voted to them from other nominators (other validators or consensus nodes). Voting is performed in multiple rounds in order to equalize weights between the consensus (voting) nodes after each election round. See also: https://wiki.polkadot.network/docs/learn-phragmen
  3. See also: https://www.youtube.com/watch?v=1CuTSluL7v4 Finality in a Proof-of-Stake (PoS) blockchain refers to the condition where reverting to a previous state would result in a significant amount of staked tokens being slashed because a supermajority of the chain’s validators had approved the final state. Although reverting a finalized block is technically possible, it would represent a large error by the validator set. It is not possible to have this type of finality - where reversion represents an error by a supermajority of the validators - in a PoW chain because the set of validators (miners) is theoretically infinite. PoW chains, therefore, have “probabilistic” finality, because at some point the probability of reversion is considered negligible.
  4. Finalizes blocks produced by BABE
  5. Aura Aura primarily provides block authoring. In aura a known set of authorities are allowed to produce blocks. The authorities must be chosen before block production begins and all authorities must know the entire authority set. Time is divided up into "slots" of a fixed length. During each slot one block is produced, and the authorities take turns producing blocks in order forever. In Aura, forks only happen when it takes longer than the slot duration for a block to traverse the network. Thus forks are uncommon in good network conditions. Babe Babe also primarily provides block authoring. Like, Aura, it is a slot-based consensus algorithm with a known set of validators. In addition, each validator is assigned a weight which must be assigned before block production begins. Unlike Aura, the authorities don't take turns in order. Instead, during each round, each authority generates a pseudorandom number using a VRF. If the random number is lower than their weight, they are allowed to produce a block. Because multiple validators may be able to produce a block during the same slot, forks are more common in Babe than they are in Aura, and are common even in good network conditions. Substrate's implementation of Babe also has a fallback mechanism for when no authorities are chosen in a given slot. Proof of Work Proof of Work also provides block authoring. Unlike Babe and Aura, it is not slot-based, and does not have a known authority set. In proof of Work, anyone can produce a block at any time, so long as they can solve a computationally challenging problem (typically a hash preimage search). The difficulty of this problem can be tuned to provide a statistical target block time.
  6. Validators randomly select themselves to produce blocks Validators selected by amount of stake (tokens) In charge of block production (before finalization)
  7. Finalizes blocks produced by BABE
  8. Block Authoring. Nodes create new blocks. Each new block contains a reference to a parent block. Block Finalization. When forks appear in the chain, Nodes must choose which side of the fork to consider the real or "canonical" one. Once a block is Finalized, the canonical chain will always contain it.
  9. In this example, there are 10 validators, meaning 3 is the maximum number of faulty validators the system can withstand (f = (10–1) / 3). With 4 faulty validators (red) and a network partition, each group of honest validators (blue) can think a different block is final
  10. To create a blockchain and connect it to Polkadot, on a technical level, you could build your own blockchain from scratch and equip it with a block validation function in WebAssembly. From scratch means that you have to implement your own node, RPC synchronization, networking, cryptography, database, storage, consensus, as well as extended features such as a light client and telemetry. This bare-bones approach is known as Polkadot Core. If you don’t want to create all of those for scratch, you can start with Substrate Core. Substrate Core provides you with all the above functionalities, only requiring you to code your own runtime (state transition function), but also offers the possibility to customize networking, block authoring, and the transaction queue functionality. If you decide to use the Substrate Runtime Module Library (SRML), then all you have to do is pick the modules you need from the library and configure them with your desired parameters. Your blockchain will work with tools such as event tracking and a blockchain explorer. Additionally, you are able to modify the existing modules or write your own ones, if needed. The blockchain development equivalent of room service is Substrate Node. With Substrate Node, you get a complete smart contract blockchain just by providing a JSON config file.
  11. The benefits of connecting to the Polkadot or Kusama network includes enabling a cheap but secure way for blockchains and apps to launch with forkless upgrades, scalability, and some governance structure. Within the network and bridges, projects can leverage the security and inter-parachain communication offered by Polkadot or Kusama. Projects don’t need to spend the time and money establishing a validator set and building up enough economic security to make attacks cost-prohibitive. Polkadot and Kusama are plug-and-play options for developers looking to launch new networks.
  12. Parachains, blockchains in the Polkadot network, are secured by Polkadot’s relay chain and thus are not able to select their own consensus mechanism. If a blockchain wants to use its own consensus mechanism, it can use a parachain as a “bridge” to connect to Polkadot’s network.
  13. One could argue that parachains are optimized for _inter_operability (communication between separate applications/chains), while smart contracts are optimized for _intra_operability (communication within a chain runtime).
  14. https://medium.com/gft-engineering/how-to-choose-the-best-platform-for-your-blockchain-based-system-8b9c57862225
  15. The parachain functionality with pooled security in this case only extends to the bridge, whereas Ethereum, connected to the other side of the bridge, resembles more of a sidechain with the chains’ mutual ability to interpret each other’s block headers, state transition, and finality. Bridging chains that have probabilistic finality will also have implications on latency. This means that it will be reasonable to wait an appropriate time period to consider a transaction coming from e.g. Ethereum to the relay chain as final. Transactions within, and coming from, the Polkadot network with its adaptive, progressive finality can be considered final much faster,almost instantly. This results in waiting time for a transaction exiting a bridged chain, but almost no waiting for all the other transactions in the Polkadot network.