SlideShare a Scribd company logo
1 of 40
Download to read offline
Encode Polkadot Club Series
Intro to Substrate
Hang Yin
Co-Founder @ Phala Network
1 2 3
What’s
Substrate
Substrate Basics
Build a
Blockchain
Hiring - tinyurl.com/phalahiring
We are building a permissionless global compute cloud that inherently supports data
privacy while remaining trustless.
New Generation
Web3 Cloud
Hiring - tinyurl.com/phalahiring
Permissionless Cloud Build on a Blockchain
Mobility Platform
Owns 0 cars
Mobility Platform
Owns 0 cars
Housing Platform
Owns 0 houses
Cloud Platform
Owns 0 servers
Hiring - tinyurl.com/phalahiring
Phala Network will run as a
parachain on Polkadot
Khala Network is running as
the 4th parachain on
Kusama
Hiring - tinyurl.com/phalahiring
Substrate
What’s
Hiring - tinyurl.com/phalahiring
Smart Contract or Blockchain
A tiny piece of code on a blockchain
Pros
- Serverless: no need to maintain a full network
- Easy to write: Javascript-like Solidity language
Hiring - tinyurl.com/phalahiring
Smart Contract or Blockchain
A tiny piece of code on a blockchain
Pros
- Serverless: no need to maintain a full network
- Easy to write: Javascript-like Solidity language
Cons
- Slow Ethereum has an average TPS of ~15
Hiring - tinyurl.com/phalahiring
Smart Contract or Blockchain
A tiny piece of code on a blockchain
Pros
- Serverless: no need to maintain a full network
- Easy to write: Javascript-like Solidity language
Cons
- Slow
- Expensive
Hiring - tinyurl.com/phalahiring
Smart Contract or Blockchain
A tiny piece of code on a blockchain
Pros
- Serverless: no need to maintain a full network
- Easy to write: Javascript-like Solidity language
Cons
- Slow
- Expensive
- Limited resources
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Database
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Database
Consensus
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Database
Consensus
Sandbox
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Database
Consensus
Sandbox
Contracts
Hiring - tinyurl.com/phalahiring
So you are going to build a blockchain...
P2P Network
Database
Consensus
Sandbox
Contracts
Staking
Governance
Frontend
Multisig
Hiring - tinyurl.com/phalahiring
Hiring - tinyurl.com/phalahiring
Substrate
Basics
Hiring - tinyurl.com/phalahiring
Ready to hack
Modular design
Highly customized
Forkless upgrade
Bonus: cross-chain!
Hiring - tinyurl.com/phalahiring
Hiring - tinyurl.com/phalahiring
How to build on Substrate
1. Be familiar with Rust
a. Statically compiled
b. Memory-safe
c. High performance
Hiring - tinyurl.com/phalahiring
How to build on Substrate
1. Be familiar with Rust
2. Start a template blockchain
How to build on Substrate
1. Be familiar with Rust
2. Start a template blockchain
3. Build the first Pallet
Hiring - tinyurl.com/phalahiring
How to build on Substrate
1. Be familiar with Rust
2. Start a template blockchain
3. Build the first Pallet
4. Launch it, and connect to the frontend (Polkadot.js UI)
Who are using Substrate?
Hiring - tinyurl.com/phalahiring
Ethereum
without sharding
Polkadot
with 100 parachains
Phala Network, linearly scales with the
number of Secure Enclave servers
From single blockchain to cloud
Hiring - tinyurl.com/phalahiring
Build A
Blockchain
Build a forum blockchain
Title
contents
author
Hiring - tinyurl.com/phalahiring
Build the First Blockchain
1. Install Rust on a Linux box
2. Clone substrate-node-template
3. Compile the Node Template
git clone --depth 1
https://github.com/substrate-developer-hub/substrate-node-template
cd substrate-node-template
cargo build --release
Hiring - tinyurl.com/phalahiring
Build the First Blockchain
4. Launch it!
- --dev start in dev mode
- --tmp delete the database after stopping
5. Attach a Polkadot.js UI:
https://polkadot.js.org/apps/
./target/release/node-template --dev --tmp
Hiring - tinyurl.com/phalahiring
Handle Forum Posts
Live Coding
Full Instructions at:
https://hackmd.io/lf9dq2b3R_SzCA7TscmdgQ?view
Hiring - tinyurl.com/phalahiring
Handle Forum Posts
Pallet
- Storage Items
- Functions
- Errors, Events
- APIs
- Hooks
Frontend
- https://polkadot.js.org/apps/
Next Steps?
Resources
- Substrate.dev
- Docs
- Tutorial
- Reference
- Recipes
- Github Repo
- Polkadot Wiki
- Element chatroom
- Phala Developer Telegram Group
/
Hiring - tinyurl.com/phalahiring
Next Steps?
1. Pallet dependencies
2. FRAME system: Substrate's pre-built modules
3. Cryptography
4. Understand performance
5. Runtime upgrade & storage migration
6. Smart Contracts: EVM, Ink!
7. Production deployment
8. Parachain & XCMP
9. Substrate internal: storage, consensus, network
/
Hiring - tinyurl.com/phalahiring
Confidential Contract Offchain Computation Native CPU Performance
Async HTTP Request Real-time RPC
Cross-chain
Interoperability
Phala-Polkadot Hackathon
Phala-Polkadot Hackathon
Easy Tasks ($25 each)
1. Run “Hello-World”
2. Hack on “Hello-World”
- Private notes
- Secret chat
- NFT with hidden content
- Simple games
Hard Challenges (up to $3000)
- File encryption middleware (for NFT assets on
decentralized storage or http servers, etc)
- Privacy enhanced DeFi
- Social media: twitter-like feed, forum, blog, IM chat
- Games
- Password manager
- On-chain wallet (e.g. code wallet / WebAuthn to
Polkadot.js converter)
Phala-Polkadot Hackathon
Start on
Oct. 1th
Tutorial, Tasks, Bounty: Coming Soon
Stay tuned in Polkadot Encode Discord
THANKS!
hangyin@phala.network
Hiring - tinyurl.com/phalahiring

More Related Content

What's hot

The 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureThe 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureNGINX, Inc.
 
Logmanagement with Icinga2 and ELK
Logmanagement with Icinga2 and ELKLogmanagement with Icinga2 and ELK
Logmanagement with Icinga2 and ELKIcinga
 
Nginx Deep Dive Kubernetes Ingress
Nginx Deep Dive Kubernetes IngressNginx Deep Dive Kubernetes Ingress
Nginx Deep Dive Kubernetes IngressKnoldus Inc.
 
MRA AMA Part 7: The Circuit Breaker Pattern
MRA AMA Part 7: The Circuit Breaker PatternMRA AMA Part 7: The Circuit Breaker Pattern
MRA AMA Part 7: The Circuit Breaker PatternNGINX, Inc.
 
Crikeycon 2019 Velociraptor Workshop
Crikeycon 2019 Velociraptor WorkshopCrikeycon 2019 Velociraptor Workshop
Crikeycon 2019 Velociraptor WorkshopVelocidex Enterprises
 
DockerCon Live 2020 - Securing Your Containerized Application with NGINX
DockerCon Live 2020 - Securing Your Containerized Application with NGINXDockerCon Live 2020 - Securing Your Containerized Application with NGINX
DockerCon Live 2020 - Securing Your Containerized Application with NGINXKevin Jones
 
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0NGINX, Inc.
 
Eclipse Kapua messaging refactoring proposal
Eclipse Kapua messaging refactoring proposalEclipse Kapua messaging refactoring proposal
Eclipse Kapua messaging refactoring proposalHenryk Konsek
 
Analyzing NGINX Logs with Datadog
Analyzing NGINX Logs with DatadogAnalyzing NGINX Logs with Datadog
Analyzing NGINX Logs with DatadogNGINX, Inc.
 
Virus Bulletin 2012
Virus Bulletin 2012Virus Bulletin 2012
Virus Bulletin 2012Cloudflare
 
Using NGINX and NGINX Plus as a Kubernetes Ingress
Using NGINX and NGINX Plus as a Kubernetes IngressUsing NGINX and NGINX Plus as a Kubernetes Ingress
Using NGINX and NGINX Plus as a Kubernetes IngressKevin Jones
 
WTF Do We Need a Service Mesh?
WTF Do We Need a Service Mesh? WTF Do We Need a Service Mesh?
WTF Do We Need a Service Mesh? Anton Weiss
 
Using an API Gateway for Microservices
Using an API Gateway for MicroservicesUsing an API Gateway for Microservices
Using an API Gateway for MicroservicesNGINX, Inc.
 
Security Tips to run Docker in Production
Security Tips to run Docker in ProductionSecurity Tips to run Docker in Production
Security Tips to run Docker in ProductionGianluca Arbezzano
 
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre Zemb
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre ZembBuilding a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre Zemb
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre ZembStreamNative
 
FIWARE Wednesday Webinars - Core Context Management
FIWARE Wednesday Webinars - Core Context ManagementFIWARE Wednesday Webinars - Core Context Management
FIWARE Wednesday Webinars - Core Context ManagementFIWARE
 
Building a Web Frontend with Microservices and NGINX Plus
Building a Web Frontend with Microservices and NGINX PlusBuilding a Web Frontend with Microservices and NGINX Plus
Building a Web Frontend with Microservices and NGINX PlusNGINX, Inc.
 
Jax london - Battle-tested event-driven patterns for your microservices archi...
Jax london - Battle-tested event-driven patterns for your microservices archi...Jax london - Battle-tested event-driven patterns for your microservices archi...
Jax london - Battle-tested event-driven patterns for your microservices archi...Natan Silnitsky
 

What's hot (20)

The 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference ArchitectureThe 3 Models in the NGINX Microservices Reference Architecture
The 3 Models in the NGINX Microservices Reference Architecture
 
Logmanagement with Icinga2 and ELK
Logmanagement with Icinga2 and ELKLogmanagement with Icinga2 and ELK
Logmanagement with Icinga2 and ELK
 
Nginx Deep Dive Kubernetes Ingress
Nginx Deep Dive Kubernetes IngressNginx Deep Dive Kubernetes Ingress
Nginx Deep Dive Kubernetes Ingress
 
MRA AMA Part 7: The Circuit Breaker Pattern
MRA AMA Part 7: The Circuit Breaker PatternMRA AMA Part 7: The Circuit Breaker Pattern
MRA AMA Part 7: The Circuit Breaker Pattern
 
Crikeycon 2019 Velociraptor Workshop
Crikeycon 2019 Velociraptor WorkshopCrikeycon 2019 Velociraptor Workshop
Crikeycon 2019 Velociraptor Workshop
 
DockerCon Live 2020 - Securing Your Containerized Application with NGINX
DockerCon Live 2020 - Securing Your Containerized Application with NGINXDockerCon Live 2020 - Securing Your Containerized Application with NGINX
DockerCon Live 2020 - Securing Your Containerized Application with NGINX
 
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
 
Eclipse Kapua messaging refactoring proposal
Eclipse Kapua messaging refactoring proposalEclipse Kapua messaging refactoring proposal
Eclipse Kapua messaging refactoring proposal
 
Analyzing NGINX Logs with Datadog
Analyzing NGINX Logs with DatadogAnalyzing NGINX Logs with Datadog
Analyzing NGINX Logs with Datadog
 
Virus Bulletin 2012
Virus Bulletin 2012Virus Bulletin 2012
Virus Bulletin 2012
 
Using NGINX and NGINX Plus as a Kubernetes Ingress
Using NGINX and NGINX Plus as a Kubernetes IngressUsing NGINX and NGINX Plus as a Kubernetes Ingress
Using NGINX and NGINX Plus as a Kubernetes Ingress
 
WTF Do We Need a Service Mesh?
WTF Do We Need a Service Mesh? WTF Do We Need a Service Mesh?
WTF Do We Need a Service Mesh?
 
Using an API Gateway for Microservices
Using an API Gateway for MicroservicesUsing an API Gateway for Microservices
Using an API Gateway for Microservices
 
Security Tips to run Docker in Production
Security Tips to run Docker in ProductionSecurity Tips to run Docker in Production
Security Tips to run Docker in Production
 
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre Zemb
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre ZembBuilding a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre Zemb
Building a Messaging Solutions for OVHcloud with Apache Pulsar_Pierre Zemb
 
Varnish SSL / TLS
Varnish SSL / TLSVarnish SSL / TLS
Varnish SSL / TLS
 
FIWARE Wednesday Webinars - Core Context Management
FIWARE Wednesday Webinars - Core Context ManagementFIWARE Wednesday Webinars - Core Context Management
FIWARE Wednesday Webinars - Core Context Management
 
Building a Web Frontend with Microservices and NGINX Plus
Building a Web Frontend with Microservices and NGINX PlusBuilding a Web Frontend with Microservices and NGINX Plus
Building a Web Frontend with Microservices and NGINX Plus
 
Kubernetes + netflix oss
Kubernetes + netflix ossKubernetes + netflix oss
Kubernetes + netflix oss
 
Jax london - Battle-tested event-driven patterns for your microservices archi...
Jax london - Battle-tested event-driven patterns for your microservices archi...Jax london - Battle-tested event-driven patterns for your microservices archi...
Jax london - Battle-tested event-driven patterns for your microservices archi...
 

Similar to Encode polkadot club

Adventures with Podman and Varlink
Adventures with Podman and VarlinkAdventures with Podman and Varlink
Adventures with Podman and VarlinkJeremy Brown
 
Blockchain Hyperledger Lab
Blockchain Hyperledger LabBlockchain Hyperledger Lab
Blockchain Hyperledger LabDev_Events
 
Long life to vagrant… Vagrant is dead
Long life to vagrant… Vagrant is deadLong life to vagrant… Vagrant is dead
Long life to vagrant… Vagrant is deadFederico Panini
 
MNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining BotsMNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining BotsAPNIC
 
WebRTC: A front-end perspective
WebRTC: A front-end perspectiveWebRTC: A front-end perspective
WebRTC: A front-end perspectiveshwetank
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5dynamis
 
CNCF Québec Meetup du 16 Novembre 2023
CNCF Québec Meetup du 16 Novembre 2023CNCF Québec Meetup du 16 Novembre 2023
CNCF Québec Meetup du 16 Novembre 2023Anthony Dahanne
 
MongoDB.local Dallas 2019: MongoDB and Spark
MongoDB.local Dallas 2019: MongoDB and SparkMongoDB.local Dallas 2019: MongoDB and Spark
MongoDB.local Dallas 2019: MongoDB and SparkMongoDB
 
Beyond Web Interfaces
Beyond Web InterfacesBeyond Web Interfaces
Beyond Web Interfacesciacchi
 
HTML5 & Web Platform
HTML5 & Web PlatformHTML5 & Web Platform
HTML5 & Web PlatformSwapSkills
 
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Jian-Hong Pan
 
Wi-Fi Hotspot Attacks
Wi-Fi Hotspot AttacksWi-Fi Hotspot Attacks
Wi-Fi Hotspot AttacksGreg Foss
 
About Flink streaming
About Flink streamingAbout Flink streaming
About Flink streaming용휘 김
 
Scaleable PHP Applications in Kubernetes
Scaleable PHP Applications in KubernetesScaleable PHP Applications in Kubernetes
Scaleable PHP Applications in KubernetesRobert Lemke
 
Sandboxing WebKitGTK (GUADEC 2019)
Sandboxing WebKitGTK (GUADEC 2019)Sandboxing WebKitGTK (GUADEC 2019)
Sandboxing WebKitGTK (GUADEC 2019)Igalia
 
Hack the System_Fluence workshop 2
Hack the System_Fluence workshop 2Hack the System_Fluence workshop 2
Hack the System_Fluence workshop 2Vanessa Lošić
 

Similar to Encode polkadot club (20)

Adventures with Podman and Varlink
Adventures with Podman and VarlinkAdventures with Podman and Varlink
Adventures with Podman and Varlink
 
Blockchain Hyperledger Lab
Blockchain Hyperledger LabBlockchain Hyperledger Lab
Blockchain Hyperledger Lab
 
Long life to vagrant… Vagrant is dead
Long life to vagrant… Vagrant is deadLong life to vagrant… Vagrant is dead
Long life to vagrant… Vagrant is dead
 
MNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining BotsMNSEC Conference 2023: Mining Bots
MNSEC Conference 2023: Mining Bots
 
WebRTC: A front-end perspective
WebRTC: A front-end perspectiveWebRTC: A front-end perspective
WebRTC: A front-end perspective
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
01 BlockChain
01 BlockChain01 BlockChain
01 BlockChain
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5
 
CNCF Québec Meetup du 16 Novembre 2023
CNCF Québec Meetup du 16 Novembre 2023CNCF Québec Meetup du 16 Novembre 2023
CNCF Québec Meetup du 16 Novembre 2023
 
Web3-Guide.pdf
Web3-Guide.pdfWeb3-Guide.pdf
Web3-Guide.pdf
 
MongoDB and Spark
MongoDB and SparkMongoDB and Spark
MongoDB and Spark
 
MongoDB.local Dallas 2019: MongoDB and Spark
MongoDB.local Dallas 2019: MongoDB and SparkMongoDB.local Dallas 2019: MongoDB and Spark
MongoDB.local Dallas 2019: MongoDB and Spark
 
Beyond Web Interfaces
Beyond Web InterfacesBeyond Web Interfaces
Beyond Web Interfaces
 
HTML5 & Web Platform
HTML5 & Web PlatformHTML5 & Web Platform
HTML5 & Web Platform
 
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
 
Wi-Fi Hotspot Attacks
Wi-Fi Hotspot AttacksWi-Fi Hotspot Attacks
Wi-Fi Hotspot Attacks
 
About Flink streaming
About Flink streamingAbout Flink streaming
About Flink streaming
 
Scaleable PHP Applications in Kubernetes
Scaleable PHP Applications in KubernetesScaleable PHP Applications in Kubernetes
Scaleable PHP Applications in Kubernetes
 
Sandboxing WebKitGTK (GUADEC 2019)
Sandboxing WebKitGTK (GUADEC 2019)Sandboxing WebKitGTK (GUADEC 2019)
Sandboxing WebKitGTK (GUADEC 2019)
 
Hack the System_Fluence workshop 2
Hack the System_Fluence workshop 2Hack the System_Fluence workshop 2
Hack the System_Fluence workshop 2
 

More from Vanessa Lošić

How fcm-works-v0.1 fc-club-22092021
How fcm-works-v0.1 fc-club-22092021How fcm-works-v0.1 fc-club-22092021
How fcm-works-v0.1 fc-club-22092021Vanessa Lošić
 
Encode Club workshop slides
Encode Club workshop slidesEncode Club workshop slides
Encode Club workshop slidesVanessa Lošić
 
Encode polkadot hack intro event
Encode polkadot hack intro eventEncode polkadot hack intro event
Encode polkadot hack intro eventVanessa Lošić
 
Encode Club -_Pinning_Services_-_aug_2021
Encode Club -_Pinning_Services_-_aug_2021Encode Club -_Pinning_Services_-_aug_2021
Encode Club -_Pinning_Services_-_aug_2021Vanessa Lošić
 
Introduction to Filecoin
Introduction to Filecoin   Introduction to Filecoin
Introduction to Filecoin Vanessa Lošić
 
Encode polkadot club event 3, technical deepdive
Encode polkadot club   event 3, technical deepdiveEncode polkadot club   event 3, technical deepdive
Encode polkadot club event 3, technical deepdiveVanessa Lošić
 
Encode club introduction_to_libp2p
Encode club introduction_to_libp2pEncode club introduction_to_libp2p
Encode club introduction_to_libp2pVanessa Lošić
 
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ć
 
Hack africa workshop_2_part_one_chilli_chelli
Hack africa workshop_2_part_one_chilli_chelliHack africa workshop_2_part_one_chilli_chelli
Hack africa workshop_2_part_one_chilli_chelliVanessa Lošić
 
Encode polkadot club intro presentation
Encode polkadot club intro presentationEncode polkadot club intro presentation
Encode polkadot club intro presentationVanessa Lošić
 
How to start developing on stellar
How to start developing on stellarHow to start developing on stellar
How to start developing on stellarVanessa Lošić
 

More from Vanessa Lošić (20)

Intro to DAOs
Intro to DAOsIntro to DAOs
Intro to DAOs
 
Hack DeFi Ideation
Hack DeFi IdeationHack DeFi Ideation
Hack DeFi Ideation
 
Encode Club Hackathon
Encode Club Hackathon  Encode Club Hackathon
Encode Club Hackathon
 
How fcm-works-v0.1 fc-club-22092021
How fcm-works-v0.1 fc-club-22092021How fcm-works-v0.1 fc-club-22092021
How fcm-works-v0.1 fc-club-22092021
 
Polkadot ideation
Polkadot ideationPolkadot ideation
Polkadot ideation
 
Textile
TextileTextile
Textile
 
Encode Club workshop slides
Encode Club workshop slidesEncode Club workshop slides
Encode Club workshop slides
 
Encode polkadot hack intro event
Encode polkadot hack intro eventEncode polkadot hack intro event
Encode polkadot hack intro event
 
Encode Club -_Pinning_Services_-_aug_2021
Encode Club -_Pinning_Services_-_aug_2021Encode Club -_Pinning_Services_-_aug_2021
Encode Club -_Pinning_Services_-_aug_2021
 
Encode Polkadot Club
Encode Polkadot Club   Encode Polkadot Club
Encode Polkadot Club
 
Interlay + Encode
Interlay + EncodeInterlay + Encode
Interlay + Encode
 
Subspace
SubspaceSubspace
Subspace
 
Intro to NFTs
Intro to NFTsIntro to NFTs
Intro to NFTs
 
Introduction to Filecoin
Introduction to Filecoin   Introduction to Filecoin
Introduction to Filecoin
 
Encode polkadot club event 3, technical deepdive
Encode polkadot club   event 3, technical deepdiveEncode polkadot club   event 3, technical deepdive
Encode polkadot club event 3, technical deepdive
 
Encode club introduction_to_libp2p
Encode club introduction_to_libp2pEncode club introduction_to_libp2p
Encode club introduction_to_libp2p
 
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
 
Hack africa workshop_2_part_one_chilli_chelli
Hack africa workshop_2_part_one_chilli_chelliHack africa workshop_2_part_one_chilli_chelli
Hack africa workshop_2_part_one_chilli_chelli
 
Encode polkadot club intro presentation
Encode polkadot club intro presentationEncode polkadot club intro presentation
Encode polkadot club intro presentation
 
How to start developing on stellar
How to start developing on stellarHow to start developing on stellar
How to start developing on stellar
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Encode polkadot club

  • 1. Encode Polkadot Club Series Intro to Substrate Hang Yin Co-Founder @ Phala Network
  • 2. 1 2 3 What’s Substrate Substrate Basics Build a Blockchain Hiring - tinyurl.com/phalahiring
  • 3. We are building a permissionless global compute cloud that inherently supports data privacy while remaining trustless. New Generation Web3 Cloud Hiring - tinyurl.com/phalahiring
  • 4. Permissionless Cloud Build on a Blockchain Mobility Platform Owns 0 cars Mobility Platform Owns 0 cars Housing Platform Owns 0 houses Cloud Platform Owns 0 servers Hiring - tinyurl.com/phalahiring
  • 5. Phala Network will run as a parachain on Polkadot Khala Network is running as the 4th parachain on Kusama Hiring - tinyurl.com/phalahiring
  • 7. Smart Contract or Blockchain A tiny piece of code on a blockchain Pros - Serverless: no need to maintain a full network - Easy to write: Javascript-like Solidity language Hiring - tinyurl.com/phalahiring
  • 8. Smart Contract or Blockchain A tiny piece of code on a blockchain Pros - Serverless: no need to maintain a full network - Easy to write: Javascript-like Solidity language Cons - Slow Ethereum has an average TPS of ~15 Hiring - tinyurl.com/phalahiring
  • 9. Smart Contract or Blockchain A tiny piece of code on a blockchain Pros - Serverless: no need to maintain a full network - Easy to write: Javascript-like Solidity language Cons - Slow - Expensive Hiring - tinyurl.com/phalahiring
  • 10.
  • 11. Smart Contract or Blockchain A tiny piece of code on a blockchain Pros - Serverless: no need to maintain a full network - Easy to write: Javascript-like Solidity language Cons - Slow - Expensive - Limited resources Hiring - tinyurl.com/phalahiring
  • 12. So you are going to build a blockchain... Hiring - tinyurl.com/phalahiring
  • 13. So you are going to build a blockchain... P2P Network Hiring - tinyurl.com/phalahiring
  • 14. So you are going to build a blockchain... P2P Network Database Hiring - tinyurl.com/phalahiring
  • 15. So you are going to build a blockchain... P2P Network Database Consensus Hiring - tinyurl.com/phalahiring
  • 16. So you are going to build a blockchain... P2P Network Database Consensus Sandbox Hiring - tinyurl.com/phalahiring
  • 17. So you are going to build a blockchain... P2P Network Database Consensus Sandbox Contracts Hiring - tinyurl.com/phalahiring
  • 18. So you are going to build a blockchain... P2P Network Database Consensus Sandbox Contracts Staking Governance Frontend Multisig Hiring - tinyurl.com/phalahiring
  • 21. Ready to hack Modular design Highly customized Forkless upgrade Bonus: cross-chain! Hiring - tinyurl.com/phalahiring
  • 23. How to build on Substrate 1. Be familiar with Rust a. Statically compiled b. Memory-safe c. High performance Hiring - tinyurl.com/phalahiring
  • 24. How to build on Substrate 1. Be familiar with Rust 2. Start a template blockchain
  • 25. How to build on Substrate 1. Be familiar with Rust 2. Start a template blockchain 3. Build the first Pallet Hiring - tinyurl.com/phalahiring
  • 26. How to build on Substrate 1. Be familiar with Rust 2. Start a template blockchain 3. Build the first Pallet 4. Launch it, and connect to the frontend (Polkadot.js UI)
  • 27. Who are using Substrate? Hiring - tinyurl.com/phalahiring
  • 28. Ethereum without sharding Polkadot with 100 parachains Phala Network, linearly scales with the number of Secure Enclave servers From single blockchain to cloud Hiring - tinyurl.com/phalahiring
  • 30. Build a forum blockchain Title contents author Hiring - tinyurl.com/phalahiring
  • 31. Build the First Blockchain 1. Install Rust on a Linux box 2. Clone substrate-node-template 3. Compile the Node Template git clone --depth 1 https://github.com/substrate-developer-hub/substrate-node-template cd substrate-node-template cargo build --release Hiring - tinyurl.com/phalahiring
  • 32. Build the First Blockchain 4. Launch it! - --dev start in dev mode - --tmp delete the database after stopping 5. Attach a Polkadot.js UI: https://polkadot.js.org/apps/ ./target/release/node-template --dev --tmp Hiring - tinyurl.com/phalahiring
  • 33. Handle Forum Posts Live Coding Full Instructions at: https://hackmd.io/lf9dq2b3R_SzCA7TscmdgQ?view Hiring - tinyurl.com/phalahiring
  • 34. Handle Forum Posts Pallet - Storage Items - Functions - Errors, Events - APIs - Hooks Frontend - https://polkadot.js.org/apps/
  • 35. Next Steps? Resources - Substrate.dev - Docs - Tutorial - Reference - Recipes - Github Repo - Polkadot Wiki - Element chatroom - Phala Developer Telegram Group / Hiring - tinyurl.com/phalahiring
  • 36. Next Steps? 1. Pallet dependencies 2. FRAME system: Substrate's pre-built modules 3. Cryptography 4. Understand performance 5. Runtime upgrade & storage migration 6. Smart Contracts: EVM, Ink! 7. Production deployment 8. Parachain & XCMP 9. Substrate internal: storage, consensus, network / Hiring - tinyurl.com/phalahiring
  • 37. Confidential Contract Offchain Computation Native CPU Performance Async HTTP Request Real-time RPC Cross-chain Interoperability Phala-Polkadot Hackathon
  • 38. Phala-Polkadot Hackathon Easy Tasks ($25 each) 1. Run “Hello-World” 2. Hack on “Hello-World” - Private notes - Secret chat - NFT with hidden content - Simple games Hard Challenges (up to $3000) - File encryption middleware (for NFT assets on decentralized storage or http servers, etc) - Privacy enhanced DeFi - Social media: twitter-like feed, forum, blog, IM chat - Games - Password manager - On-chain wallet (e.g. code wallet / WebAuthn to Polkadot.js converter)
  • 39. Phala-Polkadot Hackathon Start on Oct. 1th Tutorial, Tasks, Bounty: Coming Soon Stay tuned in Polkadot Encode Discord