SlideShare a Scribd company logo
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 2018
Codemotion
 
Network And Network Address Translation
Network And Network Address TranslationNetwork And Network Address Translation
Network And Network Address Translation
Erin 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 Applications
Matthias 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 DApp
Thanh Nguyen
 
Resource slides for blockchain related question
Resource slides for blockchain related questionResource slides for blockchain related question
Resource slides for blockchain related question
Lin 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 contracts
Gautam Anand
 
Fluent destry saul
Fluent destry saulFluent destry saul
Fluent destry saul
Destry 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 deck
Mark Suster
 
Evaluation of Ethereum
Evaluation of Ethereum Evaluation of Ethereum
Evaluation of Ethereum
Giuseppe Andreetti
 
Build your first blockchain
Build your first blockchainBuild your first blockchain
Build your first blockchain
Đoàn Thái Thiên Lộc
 
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 & Ethereum
BlockchainHub Graz
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
Dr. Nikolaus Lipusch
 
Ethereum introduction
Ethereum introductionEthereum introduction
Ethereum introduction
kesavan 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 matters
Paul 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 presentation
Paperchain
 

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 Bifrost
TinaBregovi
 
Urbit Launch Event
Urbit Launch EventUrbit Launch Event
Urbit Launch Event
TinaBregovi
 
Layer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVMLayer Hack: zkSync - Intro to zkEVM
Layer Hack: zkSync - Intro to zkEVM
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
 
Layer Hack: AltLayer Workshop
Layer Hack: AltLayer WorkshopLayer Hack: AltLayer Workshop
Layer Hack: AltLayer Workshop
TinaBregovi
 
Layer Hack Launch Event
Layer Hack Launch EventLayer Hack Launch Event
Layer Hack Launch Event
TinaBregovi
 
Bridging with StarkNet
Bridging with StarkNetBridging with StarkNet
Bridging with StarkNet
TinaBregovi
 
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
TinaBregovi
 
NFTs on StarkNet
NFTs on StarkNetNFTs on StarkNet
NFTs on StarkNet
TinaBregovi
 
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
TinaBregovi
 
Braavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdfBraavos Wallet Workshop.pdf
Braavos Wallet Workshop.pdf
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
 
Harmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptxHarmony Marketplace SDK.pptx
Harmony Marketplace SDK.pptx
TinaBregovi
 
Coinbase Node
Coinbase NodeCoinbase Node
Coinbase Node
TinaBregovi
 
Get Ready for Coinbase Node
Get Ready for Coinbase NodeGet Ready for Coinbase Node
Get Ready for Coinbase Node
TinaBregovi
 
MANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty CompetitionMANIFOLD MEV Bounty Competition
MANIFOLD MEV Bounty Competition
TinaBregovi
 
Public SP Meeting
Public SP MeetingPublic SP Meeting
Public SP Meeting
TinaBregovi
 
Ecosystem WG
Ecosystem WGEcosystem WG
Ecosystem WG
TinaBregovi
 
Welcome to the Web 3.0
Welcome to the Web 3.0Welcome to the Web 3.0
Welcome to the Web 3.0
TinaBregovi
 
Introduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer versionIntroduction to IPFS & Filecoin - longer version
Introduction to IPFS & Filecoin - longer version
TinaBregovi
 

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

Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 

Recently uploaded (20)

Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 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