SlideShare a Scribd company logo
1 of 17
Download to read offline
boba.network
Realizing the Full Potential of Web3
Turing Hybrid Compute
By Boba Network
https://bit.ly/getTuring
1
boba.network
More connected computer = more creative and powerful
decentralized systems
Fundamental premise of Ethereum:
A ledger is good, a computer is better
Our hypothesis:
https://bit.ly/getTuring
2
boba.network
Bitcoin Ethereum
Ethereum: a blockchain with a built-in Turing-
complete programming language
Bitcoin Script: a minimal stack-based programming
language for locking and unlocking transactions
3
boba.network
Unfortunately…
Ethereum Compute Performance July 30, 2015 Ethereum Compute Performance February, 2022
(there are lots of good reasons for that… Ethereum is not really designed for raw compute performance)
4
boba.network
Fundamental issues
Getting many computers to agree on anything is really hard unless
you put strong constraints on the type of compute you allow
Ethereum’s main simplifications are that it (1) allows only integers and (2) prohibits RAND()
That makes it possible for hundreds/thousands/millions of computers to agree on
the “right answer” and thus what a correct state/block is
There are more constraints - gas limit, limited memory/stack, everything takes place inside
the EVM, but those two are enough for now
5
boba.network
The rise of L2s - unlocking compute?
The original motivation of L2s are to help with cost and scaling/congestion
Additional major benefit of L2s: compute
6
boba.network
Single-sequencer L2s and compute
In a single-sequencer* L2, the original blockers to floats,
RAND(), and talking to other APIs/computers, are removed
since there is no mining / decentralized consensus
Hypothesis: the next generation of L2s will allow smart contracts to interact
with outside computers and act on their responses within one transaction
*single-sequencer - Turing can be directly extended to multiple sequencers provided they are not
separately running their own decentralized consensus (which would be redundant to Ethereum)
7
boba.network
Single-sequencer L2s and compute
We overcame EVM’s restrictions by modifying Geth (“L2TGeth”)
with ATOMIC support for RAND() and client.Call()
https://bit.ly/getTuring
8
boba.network
L2TGeth - A Geth flavor for L2s enabling hybrid compute
From the Solidity perspective, easy to use… one line calls
turing.getRandom()
turing.getCurrentQuote()
https://bit.ly/getTuring
9
boba.network
L2TGeth - System overview
1. L2TGeth intercepts certain calls
2. Then, calls off-chain APIs/RAND()
3. Then, replaces the original call data with modified call data
4. Then, writes both the original transaction and the modified call data into Ethereum L1 for
verification, replay, fraud-detection, and replication
Central idea
Key: only the sequencer calls APIs - once the L2 block is written,
verifiers and replicas use stored API response data from the block
https://bit.ly/getTuring
10
boba.network
Boba research
L2 Blockchain
User-designated
Endpoint
client.Call responseString
3 L2TGeth
4
L2TGeth
• Replaces original callData
• run(evm, contract, updated_input)
• evm.Context.Turing = updated_input
• Forms new block*
• L1Timestamp/blocknumber
• rawTransaction
• Updated calldata (‘L1Turing’)
The usual L2 block with
updated calldata (‘L1Turing’)
Batch Submitter
L1 Data Indexing Service
L2TGeth-Verifier
Obtain block
evm.Context.Turing = updated_input
run(evm, contract, evm.Context.Turing)
Forms new block
L2TGeth-Replica
Obtain block
evm.Context.Turing = updated_input
run(evm, contract, evm.Context.Turing)
Forms new block
L2TGeth-Replica L2TGeth-Replica L2TGeth-Replica
L2 Data Indexing Service
L2TGeth
RPC call
1
L2TGeth
2
isTuring?
11
boba.network
L2TGeth - changes needed - under the hood
• Modify /geth/code/evm.go - especially (evm *EVM) Call()
• Modify the Ethereum block format to also include responses from Turing compute requests - Yes -
all data from Off-chain are written to Ethereum L1
• Add the capability for geth to replay time shifted compute requests based on data written into
Ethereum
• Modify transaction/receipt/block/EVM.context and other data types internal to geth
• Modify w.engine.FinalizeAndAssemble and other parts of l2geth/miner/worker.go
• Modify all services that pass data from L2 to L1, and index L1, and inject L1 data into the L2 Geth
The system is live now on mainnet
https://bit.ly/getTuring
12
boba.network
L2TGeth - Example uses
• DeFi protocols based on off-chain assets such as real estate
• NFT lending based on off-chain ML-based valuation models
• On-chain rewards based on off-chain activities such as retweets
• NFTs or DAO memberships that are connected to off-chain identities
• Twitter activity-based token fountain
• Atomic random number generator for NFTs
+ Any other networked
computer
=
Quickly build
interesting new stuff
https://bit.ly/getTuring
13
boba.network
L2TGeth - TLDR
• Detailed writeup at https://bit.ly/getTuring
• Easy to use on the smart contract level - e.g. if you need a
random number or price quote anywhere in your smart contract,
just…
turing.getRandom()
turing.getCurrentQuote()
or
14
boba.network
Fundamental premise of Ethereum
A more general and powerful computer unlocks
innovation and creativity in decentralized
systems
L2s, v0 L2s, v1
Faster
Cheaper
“Scale Ethereum” “Augment Ethereum”
Faster
Cheaper
& Smarter
15
boba.network
Boba Hybrid Compute - Turing
Supercharge Ethereum with scalable compute power
What do you want to build today?
https://bit.ly/getTuring
16
boba.network
FAQs
https://bit.ly/getTuring
• Multiple sequencers - working on it - but not workable for systems with decentralized
consensus
• Yes, this also works with Beacon/post merge
• DoS? - each Turing calls costs 0.01 BOBA to (help to) prevent DoS - also have rate limiting
• Write garbage into L1? -> Massive ETH cost for us -> hard limit on length of off-chain responses -
you cannot write LOTR into L1 with Turing
• Misuse of your data api? No - you designate the contracts that can use your off-chain API
• Slow API response? - 1200 ms timeout -> revert with the usual 404 etc reported to your contract
• Only one Turing call per raw Transaction - cannot chain Turing calls (for multiple reasons)
17

More Related Content

Similar to Layer Hack: Boba Network: Understanding Hybrid Compute

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 2018Codemotion
 
Network And Network Address Translation
Network And Network Address TranslationNetwork And Network Address Translation
Network And Network Address TranslationErin Moore
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsMatthias Zimmermann
 
Xtech hack4 climate
Xtech hack4 climate Xtech hack4 climate
Xtech hack4 climate Xtech_holding
 
Building a NFT Marketplace DApp
Building a NFT Marketplace DAppBuilding a NFT Marketplace DApp
Building a NFT Marketplace DAppThanh Nguyen
 
Resource slides for blockchain related question
Resource slides for blockchain related questionResource slides for blockchain related question
Resource slides for blockchain related questionLin Lin (Wendy)
 
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 contractsGautam Anand
 
Fluent destry saul
Fluent destry saulFluent destry saul
Fluent destry saulDestry Saul
 
Developing Blockchain Applications
Developing Blockchain Applications Developing Blockchain Applications
Developing Blockchain Applications malikmayank
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckMark Suster
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Tomoaki Sato
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & EthereumBlockchainHub Graz
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_linikinew1
 
Ethereum introduction
Ethereum introductionEthereum introduction
Ethereum introductionkesavan N B
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it mattersPaul Brody
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationPaperchain
 

Similar to Layer Hack: Boba Network: Understanding Hybrid Compute (20)

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
 
Network And Network Address Translation
Network And Network Address TranslationNetwork And Network Address Translation
Network And Network Address Translation
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
 
Xtech hack4 climate
Xtech hack4 climate Xtech hack4 climate
Xtech hack4 climate
 
Building a NFT Marketplace DApp
Building a NFT Marketplace DAppBuilding a NFT Marketplace DApp
Building a NFT Marketplace DApp
 
Resource slides for blockchain related question
Resource slides for blockchain related questionResource slides for blockchain related question
Resource slides for blockchain related question
 
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
 
Fluent destry saul
Fluent destry saulFluent destry saul
Fluent destry saul
 
Developing Blockchain Applications
Developing Blockchain Applications Developing Blockchain Applications
Developing Blockchain Applications
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
 
Evaluation of Ethereum
Evaluation of Ethereum Evaluation of Ethereum
Evaluation of Ethereum
 
Build your first blockchain
Build your first blockchainBuild your first blockchain
Build your first blockchain
 
class12_Networking2
class12_Networking2class12_Networking2
class12_Networking2
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
 
Ethereum introduction
Ethereum introductionEthereum introduction
Ethereum introduction
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it matters
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
 

More from TinaBregovi

Building LSD Use Cases on Bifrost
Building LSD Use Cases on BifrostBuilding LSD Use Cases on Bifrost
Building LSD Use Cases on BifrostTinaBregovi
 
Urbit Launch Event
Urbit Launch EventUrbit Launch Event
Urbit Launch EventTinaBregovi
 
Layer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVMLayer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVMTinaBregovi
 
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 dAppsTinaBregovi
 
Layer Hack: AltLayer Workshop
Layer Hack: AltLayer WorkshopLayer Hack: AltLayer Workshop
Layer Hack: AltLayer WorkshopTinaBregovi
 
Layer Hack Launch Event
Layer Hack Launch EventLayer Hack Launch Event
Layer Hack Launch EventTinaBregovi
 
Bridging with StarkNet
Bridging with StarkNetBridging with StarkNet
Bridging with StarkNetTinaBregovi
 
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 BriqTinaBregovi
 
NFTs on StarkNet
NFTs on StarkNetNFTs on StarkNet
NFTs on StarkNetTinaBregovi
 
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 StarkNetTinaBregovi
 
Braavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdfBraavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdfTinaBregovi
 
StarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptxStarkNet Autumn Hackathon Launch Event.pptx
StarkNet Autumn Hackathon Launch Event.pptxTinaBregovi
 
Harmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptxHarmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptxTinaBregovi
 
Get Ready for Coinbase Node
Get Ready for Coinbase NodeGet Ready for Coinbase Node
Get Ready for Coinbase NodeTinaBregovi
 
MANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty CompetitionMANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty CompetitionTinaBregovi
 
Public SP Meeting
Public SP MeetingPublic SP Meeting
Public SP MeetingTinaBregovi
 
Welcome to the Web 3.0
Welcome to the Web 3.0Welcome to the Web 3.0
Welcome to the Web 3.0TinaBregovi
 
Introduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer versionIntroduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer versionTinaBregovi
 

More from 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: 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
 
Introduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer versionIntroduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer version
 

Recently uploaded

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...SOFTTECHHUB
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuidePixlogix Infotech
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governanceWSO2
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....rightmanforbloodline
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 

Layer Hack: Boba Network: Understanding Hybrid Compute

  • 1. boba.network Realizing the Full Potential of Web3 Turing Hybrid Compute By Boba Network https://bit.ly/getTuring 1
  • 2. boba.network More connected computer = more creative and powerful decentralized systems Fundamental premise of Ethereum: A ledger is good, a computer is better Our hypothesis: https://bit.ly/getTuring 2
  • 3. boba.network Bitcoin Ethereum Ethereum: a blockchain with a built-in Turing- complete programming language Bitcoin Script: a minimal stack-based programming language for locking and unlocking transactions 3
  • 4. boba.network Unfortunately… Ethereum Compute Performance July 30, 2015 Ethereum Compute Performance February, 2022 (there are lots of good reasons for that… Ethereum is not really designed for raw compute performance) 4
  • 5. boba.network Fundamental issues Getting many computers to agree on anything is really hard unless you put strong constraints on the type of compute you allow Ethereum’s main simplifications are that it (1) allows only integers and (2) prohibits RAND() That makes it possible for hundreds/thousands/millions of computers to agree on the “right answer” and thus what a correct state/block is There are more constraints - gas limit, limited memory/stack, everything takes place inside the EVM, but those two are enough for now 5
  • 6. boba.network The rise of L2s - unlocking compute? The original motivation of L2s are to help with cost and scaling/congestion Additional major benefit of L2s: compute 6
  • 7. boba.network Single-sequencer L2s and compute In a single-sequencer* L2, the original blockers to floats, RAND(), and talking to other APIs/computers, are removed since there is no mining / decentralized consensus Hypothesis: the next generation of L2s will allow smart contracts to interact with outside computers and act on their responses within one transaction *single-sequencer - Turing can be directly extended to multiple sequencers provided they are not separately running their own decentralized consensus (which would be redundant to Ethereum) 7
  • 8. boba.network Single-sequencer L2s and compute We overcame EVM’s restrictions by modifying Geth (“L2TGeth”) with ATOMIC support for RAND() and client.Call() https://bit.ly/getTuring 8
  • 9. boba.network L2TGeth - A Geth flavor for L2s enabling hybrid compute From the Solidity perspective, easy to use… one line calls turing.getRandom() turing.getCurrentQuote() https://bit.ly/getTuring 9
  • 10. boba.network L2TGeth - System overview 1. L2TGeth intercepts certain calls 2. Then, calls off-chain APIs/RAND() 3. Then, replaces the original call data with modified call data 4. Then, writes both the original transaction and the modified call data into Ethereum L1 for verification, replay, fraud-detection, and replication Central idea Key: only the sequencer calls APIs - once the L2 block is written, verifiers and replicas use stored API response data from the block https://bit.ly/getTuring 10
  • 11. boba.network Boba research L2 Blockchain User-designated Endpoint client.Call responseString 3 L2TGeth 4 L2TGeth • Replaces original callData • run(evm, contract, updated_input) • evm.Context.Turing = updated_input • Forms new block* • L1Timestamp/blocknumber • rawTransaction • Updated calldata (‘L1Turing’) The usual L2 block with updated calldata (‘L1Turing’) Batch Submitter L1 Data Indexing Service L2TGeth-Verifier Obtain block evm.Context.Turing = updated_input run(evm, contract, evm.Context.Turing) Forms new block L2TGeth-Replica Obtain block evm.Context.Turing = updated_input run(evm, contract, evm.Context.Turing) Forms new block L2TGeth-Replica L2TGeth-Replica L2TGeth-Replica L2 Data Indexing Service L2TGeth RPC call 1 L2TGeth 2 isTuring? 11
  • 12. boba.network L2TGeth - changes needed - under the hood • Modify /geth/code/evm.go - especially (evm *EVM) Call() • Modify the Ethereum block format to also include responses from Turing compute requests - Yes - all data from Off-chain are written to Ethereum L1 • Add the capability for geth to replay time shifted compute requests based on data written into Ethereum • Modify transaction/receipt/block/EVM.context and other data types internal to geth • Modify w.engine.FinalizeAndAssemble and other parts of l2geth/miner/worker.go • Modify all services that pass data from L2 to L1, and index L1, and inject L1 data into the L2 Geth The system is live now on mainnet https://bit.ly/getTuring 12
  • 13. boba.network L2TGeth - Example uses • DeFi protocols based on off-chain assets such as real estate • NFT lending based on off-chain ML-based valuation models • On-chain rewards based on off-chain activities such as retweets • NFTs or DAO memberships that are connected to off-chain identities • Twitter activity-based token fountain • Atomic random number generator for NFTs + Any other networked computer = Quickly build interesting new stuff https://bit.ly/getTuring 13
  • 14. boba.network L2TGeth - TLDR • Detailed writeup at https://bit.ly/getTuring • Easy to use on the smart contract level - e.g. if you need a random number or price quote anywhere in your smart contract, just… turing.getRandom() turing.getCurrentQuote() or 14
  • 15. boba.network Fundamental premise of Ethereum A more general and powerful computer unlocks innovation and creativity in decentralized systems L2s, v0 L2s, v1 Faster Cheaper “Scale Ethereum” “Augment Ethereum” Faster Cheaper & Smarter 15
  • 16. boba.network Boba Hybrid Compute - Turing Supercharge Ethereum with scalable compute power What do you want to build today? https://bit.ly/getTuring 16
  • 17. boba.network FAQs https://bit.ly/getTuring • Multiple sequencers - working on it - but not workable for systems with decentralized consensus • Yes, this also works with Beacon/post merge • DoS? - each Turing calls costs 0.01 BOBA to (help to) prevent DoS - also have rate limiting • Write garbage into L1? -> Massive ETH cost for us -> hard limit on length of off-chain responses - you cannot write LOTR into L1 with Turing • Misuse of your data api? No - you designate the contracts that can use your off-chain API • Slow API response? - 1200 ms timeout -> revert with the usual 404 etc reported to your contract • Only one Turing call per raw Transaction - cannot chain Turing calls (for multiple reasons) 17