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

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
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 RobisonAnna Loughnan Colquhoun
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

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