Bring Your Own Oracle (BYOO): Strengthening Decentralized Trust with Threshold Cryptography
Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 10:24
Patrick McClurg of Randamu, steward of the drand verifiable randomness network, argues that oracle manipulation is costly and hard to detect, citing over 400 million dollars lost in 2022. He reviews the trade-offs of aggregating sources, decentralized oracles, cryptoeconomic incentives, TEEs and zkTLS, then proposes Bring Your Own Oracle: an open protocol where applications choose their own threshold-cryptography committee, from small to institutional, and verify one cheap signature onchain. Open problems include traitor tracing, signing analog data, post-quantum schemes and missing standards.
Speakers
Topics
From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.
Transcript
hello hello yes thank very much for the introduction parvina I'm Patrick from randu uh random we do everything related to threshold cryptography um we are the stewards of the dran network which is a public goods verifiable Randomness network uh that poers fcoin and a bunch of other protocols has recently been integrated with scroll which is an L2 uh tool kit you might say for evm networks and today I'm going to be talking about how we can strengthen oracles by using threshold cryptography I'm going to start with a nice divisive statement your oracles are lying to you I I was planning to come up and say
that most people believe oracles are giving you the right data all the time and it's probably not a problem you know we're probably decentralized enough um but then I sat through a panel where everyone kind of said yeah we got um we want to exploit o OE we want to make some extra money on there so they've kind of emitted big Oracle themselves have admitted they're lying to you so so there you go not all oracles are doing it on purpose some of course could be giv you false data by accident um but right now particularly in centralized Solutions there's not an easy way to verify whether or not that's the case so uh a few talks now have discussed Oracle manipulation attacks um
a little graphic here from CH analysis from early 2023 showed that it's a pretty expensive problem uh in 2022 over $400 million were exploded from Oracle manipulation attacks so despite the fact that OEM is kind of all the rage at this blockchain Oracle Summit it's actually been going on quite a while missing here is 2019 where also it was very very spicy much more than 65 million so that's how it started high but n oh dear we had the bank Dow protocol mentioned a few talks ago that was 120 millions in funds um just last week start not last week rather a few weeks ago Oracle export drains 7.6 million from room
markets um essentially people tricking the oracles into giving invalid data so may maybe the oracles themselves are not to blame for these ones but uh similarly in the the bottom right there um Abraham Eisenberg um was very Brazen in coming out and saying yeah I manipulated the price but you know it wasn't illegal it's that's just trading that's how we do it uh yeah unfortunately he's going to jail so un lucky for him but there plenty of other people are not as Brazen going on Twitter and admitting it um and potentially there are some Oracle providers doing it uh just to make some money off you oh dear um so what what can we do against this well again mentioned a few times
here orle extractable value um there was actually a paper Poma Buster detecting price Oracle manipulation um in this year and it showed we can see in the bottom right there lots of instances thousands in fact some quarters of detectable price manipulation events so if you're a retail Trader if you're a Dap developer um the chances are you might um you might be getting screwed by Oracle providers or other people on the network um trying to steal your money so there are a bunch of possible solutions um but they kind of all have flaws and some of them have been touched on here but first off we can of course aggregate multiple data sources um one issue there is though it can be kind of
expensive particularly if you're doing it on chain if we're running a protocol on chain and we have to get data from multiple uh oracles that can be quite expensive uh if we're going decentralize Oracle route we're kind of opening ourselves up to Cil attacks that's where people make uh fake accounts basically or fake addresses in order to um take over a network or take over for example some of the prediction markets that be mentioned today uh we can also put cryptoeconomic incentives in place um that definitely can help but they're very complicated um they can be very complicated particularly in terms of agility what might be a good crypto e economic incentive when your protocol is very
small might actually really hurt your protocol when it gets very large and it can be quite quite difficult to change those things over time particularly if the people who are exploding them are the big us of your protocol te's have been brought up quite a lot today and they seem to be M dour however T's a little bit difficult to to rule out um anyone who's tried to implement and ship some software on a te um at scale knows that doing your own software very expensive using some outof the boox solution for it is fraught with danger actually getting uh getting tees ruled out to a decentralized network is also kind of hard or you know I imagine some of the
big networks would have done already um on the ZK TLS front um it's actually a pretty good solution for getting data on chain although ZK kind of expensive on chain uh there's some caveats as well like maybe we have to bring all the data on chain or create extra proofs to prove that some portion of the data from zkt l s matches something and yeah it can get a little bit spicy so I told you I work for randu and of course we do everything threshold cryptography so my face went no threshold cryptography but my face went thresh cryptography of course we got a solution for
it why we use threshold cryptography well um it provides a lot of interesting benefits over some of the traditional models um a threshold signature is de facto consensus without the blockchain which might make satachi here sad in the bottom right um we don't need to do the traditional bft protocols and ultimately we end up with just one signature that represents some group's consensus about um some piece of Truth um they're much cheaper to verify on chain than zero knowledge proofs so makes a sad vitalic and all the mechanics are there already in evm Chains we got uh b254 sign scheme for doing threshold cryptography BLS 12 is
coming soon which is more secure so that's lovely um that makes it a bit cheaper you also get to choose your own committee um I mentioned earlier that one of the downsides of a lot of decentralized Oracle Solutions is sible attacks we have to ensure that people can put enough stake in such that um if they're naughty um they get punished but also that we can't just flood the network with new nodes um with threshold cryptography you can choose your own committee so it might be you trust some nodes for certain types of data other nodes for other type of data Maybe for very uh low value protocols you have a very small committee maybe if you're doing I don't know a kind of a silly game for example you only need a couple
of nodes to give you some data if it's a defi protocol with billions in it you might want uh a really really big or complicated or trustworthy committee or kyc committee oh God forbid um so what we're presenting is bring your own Oracle why rely on somebody else's uh we're working on an open protocol for forming committees coming to consensus on real world data and verifying computations and based on threshold cryptography and ultimately we think that in the future all oracles are going to be using threshold cryptography it kind of makes makes sense that oracles will at some point be a public good a
public goods Network and rather than being exploded by by big Oracle and their oev farming people will just run their own oracles but it's not all plain sealing not just yet uh there's still a lot of outstanding research problems and this is a call to action for any budding researchers in the audience um first and foremost is is cryptoeconomic incentives um in particular Trader tracing so one issue with threshold cryptography is if we have a committee um we can't how retrospectively if the committee is honest I mean we can look at the data they have provided but if somebody sells their keys for example to somebody else uh there's not an easy way to tell that
they've done that um additionally signing analog data can be a little bit difficult when different nodes have different views of the world in a centralized Oracle if I want the price feed one person picks a price and that's a price feed pretty easy but we've got a whole bunch of people um uh looking at Price feeds and then having to sign them which can be competition expensive finding out the right way to kind of smooth that curve and get on chain can be quite difficult this is a bit of a longer term one but uh postquantum threshold schemes hopefully not problem just yet in fact if it is bitcoin's broken so hopefully post Quantum is not there yet but at some point it will be and we don't have any great schemes for it and uh the final one is although threshold
cryptography is available uh on basically all chains now and some have it as a first class citizen particularly the uh the new chains um there aren't really concrete protocol standards around that and uh nist is working on it um but that's still a couple years out and we could reap the benefits of threshold cryptography now um so just a quick shout out on Tuesday we've got a threshold Summit so if you want to hear more about threshold stuff you want to discuss thresh oracles if you want to in fact do a workshop on building your own seal bid auction which got talked about a lot today come to the threshold summer and you can do it so I'll give you just a moment to scan it up there also some cool stuff uh threshold
encrypted me pools for for fighting M um yeah plenty of other cool talks and that was everything thank you very much
Related talks
- OEV: An (Almost) Unbiased Look at the Million Dollar Value Recovery Race
- Most oracle tokens are useless, despite providing critical blockchain infrastruc - Ugur Mersinlioglu
- ETHWarsaw x RedStone Meetup - Rotunda PKO BP (14.01.2025)
- Oracle Extractable Value (OEV) through Order Flow Auctions
- Deep Dive: Supra’s Vision and the Rise of Automatic DeFi | Joshua Tobkin
- Oracle Extractable Value: Unlocking New Revenue Models and Sustainability for Oracles & Dapps
- Learn about Oracles with API3
- DAPPCON 2024: Revolutionizing DeFi With MEV Aware Oracles - Ugur Mersinlioglu
- Capturing Oracle Extractable Value Through Specialized OFAs | Ugur Mersinlioglu - API3 DAO
