SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Fun with ERC721 on StarkNet
Henri Lieutaud / Developer advocate
January 2022
1
@henrilieutaud | @starkwareltd
Availability rollups primer
Slow, inclusive
Fast, exclusive
Current State of Affairs
Trust Big Computer Verify (all transactions), don’t trust
Increase Scale (gas/block limit) Fraud Proof Rollups (Arbitrum, Optimism)
Fast, exclusive
Trust Big Computer Trust a few Big Computers
Fast, semi inclusive
Validity Proofs (StarkNet, zkSync)
Big computer to generate proof
Expensive, semi inclusive (~mining) Fast, inclusive
Small computer to verify proof
ZK-STARK
proof
*With respect to size of computation
Privacy (Zero Knowledge, ZK)
Prover’s private inputs are shielded
Scalability
Exponentially small verifier running time*
Nearly linear prover running time*
Prover verifier
v
π
ZK-STARK Proofs
Verify (all transactions), don’t trust
*With respect to size of computation
Privacy (Zero Knowledge, ZK)
Prover’s private inputs are shielded
Scalability
Exponentially small verifier running time*
Nearly linear prover running time*
Prover
Verify STARK proof, don’t trust
π, Statenew
ZK-STARK
v
v
v
v
v
v
π, Statenew
π, Statenew
π, Statenew
π, Statenew
π, Statenew
π, Statenew
ZK-STARK Proofs
Two L2 Offerings
Largest L2 by TPS
(¼ Ethereum’s, on the rise)
8
@henrilieutaud | @starkwareltd
$270B 65M $1.25B
9
Launched - June 2020
10M
NFTs Minted
Tx Settled
600K
NFT Mints/Proof
Total Value Locked
Cumulative Trading
486
Gas/tx
As of December 9, 2021
@henrilieutaud | @starkwareltd
Launched November 29, since then:
● StarkNet Developer Discord exploding:
○ 20K users, 3K joined last week
○ 2K weekly active users
10
@henrilieutaud | @starkwareltd
● 20+ teams building dApps, including:
○ 3 AMMs
○ Games, NFT projects
○ Voting, bridges, and more
Ethereum-style permissionless interaction with the network
Developing on StarkNet
Cairo
13
● Specially designed, provable language, dedicated for Smart Contracts
● Cairo is not bounded by the EVM
@henrilieutaud | @starkwareltd
Syntax tutorial on GitHub
➔ Coming soon: Solidity -> Cairo transpiler
Standard implementations
15
@henrilieutaud | @starkwareltd
● Open Zeppelin - developing a set of boiler plate smart contracts for Cairo
○ Today - use an implementation included in therepo (courtesy of Oasis)
● Cairo standards reuse Solidity standards - naming convention for external functions
Boiler plate smart contracts are great or StarkNet onboarding!
Importing functions
17
@henrilieutaud | @starkwareltd
● The importing pattern is not enforced by the compiler, and is being discussed by the community
○ Base contracts define core functions. They have no external functions and no constructor
○ Front end contracts import internal functions from base contracts, and wrap them in
external functions
Impot Functions Inherit Functions
Account abstraction
19
@henrilieutaud | @starkwareltd
● Transactions on StarkNet are different than Ethereum - they do not have an originator (“From”)
● They are sent to an “entry point” - an “account smart contract” in charge of:
○ Authenticating the user
○ Replay protection
○ Funds protection
○ Allows many different UX to be built upon
● This is not currently enforced
○ transactions can be sent to any contract, while the sender is seen as 0 by the receiver
Integrated Development Environments
21
3 main tools to interact with StarkNet:
@henrilieutaud | @starkwareltd
*All three are under development and require duct tape here and there
Today’s tutorial is based on Nile
HardHat
(Javascript)
StarkNet
CLI
Nile
(Python)
briq
The NFT building protocol
this but
literally
use use your NFTs in a growing metaverse
build
continue to create by disassembling NFTs back into briqs
your own NFTs with briqs
- Online briq builder available
- ERC721 briq & set contracts
deployed on StarkNet mainnet &
testnet
- +1k NFT creations, 2.5K followers
briq alpha
first NFT project deployed
on StarkNet mainnet
- Difficult language but generally
good feedback from the compiler
- Math-heavy logic is particularly
tricky because of field
- Ecosystem is growing nicely
- Devnet wallet, Nile, …
- Lots of public interest
Feedback
first NFT project deployed
on StarkNet mainnet
Github: github/briqNFT
Twitter: @briqNFT
Sylve: @sylvechv
Lancelot: @wraitii
Getting to work
ERC721 Workshop
30
Your objective - gather points.
Follow these steps to collect all points
1. Read the ReadMe for a high level understanding
2. Read the valuator.cairo code for a low level understanding
3. Use the ERC721 code and customize it
4. Deploy your contract
5. Submit your contract address to the evaluator
6. Ask the evaluator to correct your contract
7. Check for points
@henrilieutaud | @starkwareltd
Go to Github:
Thanks!
January 2022
31
@henrilieutaud | @starkwareltd
Henri Lieutaud / Developer Advocate
To go further
32
Jobs
- Dapp Developer at Shard labs.
- Open source developer at Open Zeppelin.
- Cairo engineers at Immutable.
- Chainlink integration team.
- Blockchain software engineer at JellyFi.
Resources on StarkNet
- Official Cairo documentation
- Community links - list of examples
curated by the StarkWare team
- Awesome StarkNet - a curated list of
resources by Georgios Konstantopoulos
Cool stuff built on StarkNet
- Physics simulation by @guiltygyoza
- briq V1 contracts
- Qasr, an ETH <> StarkNet NFT bridge
- Tictactoe by @guiltygyoza
@henrilieutaud | @starkwareltd

Weitere ähnliche Inhalte

Was ist angesagt?

Exercices en langage c
Exercices en langage cExercices en langage c
Exercices en langage c
Daoua Lotfi
 

Was ist angesagt? (20)

Cours4 Systèmes linéaires asservis: Analyse de la stabilité
Cours4 Systèmes linéaires asservis: Analyse de la stabilitéCours4 Systèmes linéaires asservis: Analyse de la stabilité
Cours4 Systèmes linéaires asservis: Analyse de la stabilité
 
Deep Dive into Keystone Tokens and Lessons Learned
Deep Dive into Keystone Tokens and Lessons LearnedDeep Dive into Keystone Tokens and Lessons Learned
Deep Dive into Keystone Tokens and Lessons Learned
 
Exercices en langage c
Exercices en langage cExercices en langage c
Exercices en langage c
 
Moteur asynchrone
Moteur asynchroneMoteur asynchrone
Moteur asynchrone
 
Chap2 laplace
Chap2 laplaceChap2 laplace
Chap2 laplace
 
Distributed Tracing for Kafka with OpenTelemetry with Daniel Kim | Kafka Summ...
Distributed Tracing for Kafka with OpenTelemetry with Daniel Kim | Kafka Summ...Distributed Tracing for Kafka with OpenTelemetry with Daniel Kim | Kafka Summ...
Distributed Tracing for Kafka with OpenTelemetry with Daniel Kim | Kafka Summ...
 
Cours automatique
Cours automatiqueCours automatique
Cours automatique
 
IBM RedHat OCP Vs xKS.pptx
IBM RedHat OCP Vs xKS.pptxIBM RedHat OCP Vs xKS.pptx
IBM RedHat OCP Vs xKS.pptx
 
Cours8 Introduction à la représentation d'état
Cours8 Introduction à la représentation d'étatCours8 Introduction à la représentation d'état
Cours8 Introduction à la représentation d'état
 
Cours2 Réponse temporelle des systèmes dynamiques continus LTI
Cours2 Réponse temporelle des systèmes dynamiques continus LTICours2 Réponse temporelle des systèmes dynamiques continus LTI
Cours2 Réponse temporelle des systèmes dynamiques continus LTI
 
logiciel libre
logiciel librelogiciel libre
logiciel libre
 
part3.pptx
part3.pptxpart3.pptx
part3.pptx
 
Become A Security Master
Become A Security MasterBecome A Security Master
Become A Security Master
 
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
 
Séminaire Smart-Grid | TECHNIFUTUR
Séminaire Smart-Grid | TECHNIFUTURSéminaire Smart-Grid | TECHNIFUTUR
Séminaire Smart-Grid | TECHNIFUTUR
 
Reviewing a Complex DataWeave Transformation Use-case
Reviewing a Complex DataWeave Transformation Use-caseReviewing a Complex DataWeave Transformation Use-case
Reviewing a Complex DataWeave Transformation Use-case
 
Présentation de Django @ Orange Labs (FR)
Présentation de Django @ Orange Labs (FR)Présentation de Django @ Orange Labs (FR)
Présentation de Django @ Orange Labs (FR)
 
Chap 5 Osmose Inverse.ppt
Chap 5 Osmose Inverse.pptChap 5 Osmose Inverse.ppt
Chap 5 Osmose Inverse.ppt
 
bhaj_inspiration.pdf
bhaj_inspiration.pdfbhaj_inspiration.pdf
bhaj_inspiration.pdf
 
Le circuit électrique
Le circuit électriqueLe circuit électrique
Le circuit électrique
 

Ähnlich wie StarkNet ERC20 + ERC721

Ähnlich wie StarkNet ERC20 + ERC721 (20)

Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
 
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발 [Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
 
IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0
 
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
 
Hyperledger community update February 2018
Hyperledger  community update   February 2018Hyperledger  community update   February 2018
Hyperledger community update February 2018
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
 
Hyperledger community update Feb 20, 2018
Hyperledger community update Feb 20, 2018Hyperledger community update Feb 20, 2018
Hyperledger community update Feb 20, 2018
 
Hyperledger community update 201805
Hyperledger community update 201805Hyperledger community update 201805
Hyperledger community update 201805
 
SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech
 
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
 
Ergo Hong Kong meetup
Ergo Hong Kong meetupErgo Hong Kong meetup
Ergo Hong Kong meetup
 
Introduction to Blockchain Development
Introduction to Blockchain DevelopmentIntroduction to Blockchain Development
Introduction to Blockchain Development
 
Iot in-production
Iot in-productionIot in-production
Iot in-production
 
Best practices to build secure smart contracts
Best practices to build secure smart contractsBest practices to build secure smart contracts
Best practices to build secure smart contracts
 
Algorand Technical Workshop 2021
Algorand Technical Workshop 2021Algorand Technical Workshop 2021
Algorand Technical Workshop 2021
 
Ethereum
EthereumEthereum
Ethereum
 
KubeCon London 2016 Ronana Cloud Native SDN
KubeCon London 2016 Ronana Cloud Native SDNKubeCon London 2016 Ronana Cloud Native SDN
KubeCon London 2016 Ronana Cloud Native SDN
 
Introduction to Ethereum Smart Contracts
Introduction to Ethereum Smart Contracts Introduction to Ethereum Smart Contracts
Introduction to Ethereum Smart Contracts
 
Build Blockchain dApps using JavaScript, Python and C - ATO.pdf
Build Blockchain dApps using JavaScript, Python and C - ATO.pdfBuild Blockchain dApps using JavaScript, Python and C - ATO.pdf
Build Blockchain dApps using JavaScript, Python and C - ATO.pdf
 
Hyperledger Fabric Application Development 20190618
Hyperledger Fabric Application Development 20190618Hyperledger Fabric Application Development 20190618
Hyperledger Fabric Application Development 20190618
 

Mehr von TinaBregovi

Layer Hack: Boba Network: Understanding Hybrid Compute
Layer Hack: Boba Network: Understanding Hybrid ComputeLayer Hack: Boba Network: Understanding Hybrid Compute
Layer Hack: Boba Network: Understanding Hybrid Compute
TinaBregovi
 
Rollup-as-a-service and why it matters to the next-gen of dApps
Rollup-as-a-service and why it matters to the next-gen of dAppsRollup-as-a-service and why it matters to the next-gen of dApps
Rollup-as-a-service and why it matters to the next-gen of dApps
TinaBregovi
 
StarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptxStarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptx
TinaBregovi
 

Mehr von TinaBregovi (20)

Building LSD Use Cases on Bifrost
Building LSD Use Cases on BifrostBuilding LSD Use Cases on Bifrost
Building LSD Use Cases on Bifrost
 
Urbit Launch Event
Urbit Launch EventUrbit Launch Event
Urbit Launch Event
 
Layer Hack: Boba Network: Understanding Hybrid Compute
Layer Hack: Boba Network: Understanding Hybrid ComputeLayer Hack: Boba Network: Understanding Hybrid Compute
Layer Hack: Boba Network: Understanding Hybrid Compute
 
Layer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVMLayer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVM
 
Rollup-as-a-service and why it matters to the next-gen of dApps
Rollup-as-a-service and why it matters to the next-gen of dAppsRollup-as-a-service and why it matters to the next-gen of dApps
Rollup-as-a-service and why it matters to the next-gen of dApps
 
Layer Hack: AltLayer Workshop
Layer Hack: AltLayer WorkshopLayer Hack: AltLayer Workshop
Layer Hack: AltLayer Workshop
 
Layer Hack Launch Event
Layer Hack Launch EventLayer Hack Launch Event
Layer Hack Launch Event
 
Bridging with StarkNet
Bridging with StarkNetBridging with StarkNet
Bridging with StarkNet
 
How To Build Better NFTs with Briq
How To Build Better NFTs with BriqHow To Build Better NFTs with Briq
How To Build Better NFTs with Briq
 
NFTs on StarkNet
NFTs on StarkNetNFTs on StarkNet
NFTs on StarkNet
 
How to build a dApp in StarkNet
How to build a dApp in StarkNetHow to build a dApp in StarkNet
How to build a dApp in StarkNet
 
Braavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdfBraavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdf
 
StarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptxStarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptx
 
Harmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptxHarmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptx
 
Coinbase Node
Coinbase NodeCoinbase Node
Coinbase Node
 
Get Ready for Coinbase Node
Get Ready for Coinbase NodeGet Ready for Coinbase Node
Get Ready for Coinbase Node
 
MANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty CompetitionMANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty Competition
 
Public SP Meeting
Public SP MeetingPublic SP Meeting
Public SP Meeting
 
Ecosystem WG
Ecosystem WGEcosystem WG
Ecosystem WG
 
Welcome to the Web 3.0
Welcome to the Web 3.0Welcome to the Web 3.0
Welcome to the Web 3.0
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 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
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer 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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

StarkNet ERC20 + ERC721

  • 1. Fun with ERC721 on StarkNet Henri Lieutaud / Developer advocate January 2022 1 @henrilieutaud | @starkwareltd
  • 3. Slow, inclusive Fast, exclusive Current State of Affairs Trust Big Computer Verify (all transactions), don’t trust
  • 4. Increase Scale (gas/block limit) Fraud Proof Rollups (Arbitrum, Optimism) Fast, exclusive Trust Big Computer Trust a few Big Computers Fast, semi inclusive
  • 5. Validity Proofs (StarkNet, zkSync) Big computer to generate proof Expensive, semi inclusive (~mining) Fast, inclusive Small computer to verify proof ZK-STARK proof
  • 6. *With respect to size of computation Privacy (Zero Knowledge, ZK) Prover’s private inputs are shielded Scalability Exponentially small verifier running time* Nearly linear prover running time* Prover verifier v π ZK-STARK Proofs Verify (all transactions), don’t trust
  • 7. *With respect to size of computation Privacy (Zero Knowledge, ZK) Prover’s private inputs are shielded Scalability Exponentially small verifier running time* Nearly linear prover running time* Prover Verify STARK proof, don’t trust π, Statenew ZK-STARK v v v v v v π, Statenew π, Statenew π, Statenew π, Statenew π, Statenew π, Statenew ZK-STARK Proofs
  • 8. Two L2 Offerings Largest L2 by TPS (¼ Ethereum’s, on the rise) 8 @henrilieutaud | @starkwareltd
  • 9. $270B 65M $1.25B 9 Launched - June 2020 10M NFTs Minted Tx Settled 600K NFT Mints/Proof Total Value Locked Cumulative Trading 486 Gas/tx As of December 9, 2021 @henrilieutaud | @starkwareltd
  • 10. Launched November 29, since then: ● StarkNet Developer Discord exploding: ○ 20K users, 3K joined last week ○ 2K weekly active users 10 @henrilieutaud | @starkwareltd ● 20+ teams building dApps, including: ○ 3 AMMs ○ Games, NFT projects ○ Voting, bridges, and more Ethereum-style permissionless interaction with the network
  • 12. Cairo 13 ● Specially designed, provable language, dedicated for Smart Contracts ● Cairo is not bounded by the EVM @henrilieutaud | @starkwareltd Syntax tutorial on GitHub ➔ Coming soon: Solidity -> Cairo transpiler
  • 13. Standard implementations 15 @henrilieutaud | @starkwareltd ● Open Zeppelin - developing a set of boiler plate smart contracts for Cairo ○ Today - use an implementation included in therepo (courtesy of Oasis) ● Cairo standards reuse Solidity standards - naming convention for external functions Boiler plate smart contracts are great or StarkNet onboarding!
  • 14. Importing functions 17 @henrilieutaud | @starkwareltd ● The importing pattern is not enforced by the compiler, and is being discussed by the community ○ Base contracts define core functions. They have no external functions and no constructor ○ Front end contracts import internal functions from base contracts, and wrap them in external functions Impot Functions Inherit Functions
  • 15. Account abstraction 19 @henrilieutaud | @starkwareltd ● Transactions on StarkNet are different than Ethereum - they do not have an originator (“From”) ● They are sent to an “entry point” - an “account smart contract” in charge of: ○ Authenticating the user ○ Replay protection ○ Funds protection ○ Allows many different UX to be built upon ● This is not currently enforced ○ transactions can be sent to any contract, while the sender is seen as 0 by the receiver
  • 16. Integrated Development Environments 21 3 main tools to interact with StarkNet: @henrilieutaud | @starkwareltd *All three are under development and require duct tape here and there Today’s tutorial is based on Nile HardHat (Javascript) StarkNet CLI Nile (Python)
  • 19. use use your NFTs in a growing metaverse build continue to create by disassembling NFTs back into briqs your own NFTs with briqs
  • 20.
  • 21. - Online briq builder available - ERC721 briq & set contracts deployed on StarkNet mainnet & testnet - +1k NFT creations, 2.5K followers briq alpha first NFT project deployed on StarkNet mainnet
  • 22. - Difficult language but generally good feedback from the compiler - Math-heavy logic is particularly tricky because of field - Ecosystem is growing nicely - Devnet wallet, Nile, … - Lots of public interest Feedback first NFT project deployed on StarkNet mainnet
  • 23. Github: github/briqNFT Twitter: @briqNFT Sylve: @sylvechv Lancelot: @wraitii
  • 25. ERC721 Workshop 30 Your objective - gather points. Follow these steps to collect all points 1. Read the ReadMe for a high level understanding 2. Read the valuator.cairo code for a low level understanding 3. Use the ERC721 code and customize it 4. Deploy your contract 5. Submit your contract address to the evaluator 6. Ask the evaluator to correct your contract 7. Check for points @henrilieutaud | @starkwareltd Go to Github:
  • 26. Thanks! January 2022 31 @henrilieutaud | @starkwareltd Henri Lieutaud / Developer Advocate
  • 27. To go further 32 Jobs - Dapp Developer at Shard labs. - Open source developer at Open Zeppelin. - Cairo engineers at Immutable. - Chainlink integration team. - Blockchain software engineer at JellyFi. Resources on StarkNet - Official Cairo documentation - Community links - list of examples curated by the StarkWare team - Awesome StarkNet - a curated list of resources by Georgios Konstantopoulos Cool stuff built on StarkNet - Physics simulation by @guiltygyoza - briq V1 contracts - Qasr, an ETH <> StarkNet NFT bridge - Tictactoe by @guiltygyoza @henrilieutaud | @starkwareltd