Evolving Needs and Practical Lessons in Adaptive Oracle Design

Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 18:26

Brenda Loya, CEO of Tellor, argues that oracle failures have shifted from protocols to data quality: most oracle hacks come from manipulated or poorly defined assets, so builders should assume the oracle or data definition can fail and plan for it. She walks through Black Thursday and an attack on a protocol on the Osmosis chain, where cheap congestion on an app chain let attackers time oracle updates, and notes that lower gas on app chains also lowers attack cost. She presents Tellor V2, a standalone Cosmos SDK L1 that separates robust from optimistic data and bridges only data.

Speakers

Topics

From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.

Transcript

good morning everybody I'm glad everybody made it uh my name is Brenda I'm the CEO and one of the co-founders of teller teller is a decentralized Oracle there's lots of oracles out there but our story is that we actually um joined the crypto uh Revolution trying to do decentralized derivatives and in 2017 2018 and we realized very quickly that a lot of the infrastructure ructure did not even exist and we were already too deep into the system so we went ahead and we tried and develop something for our own purposes at the time and we came up with the very first MVP for teller and that was in 2018 the only thing available was uh Oracle lied which

may be still surviving as provable and obviously we need we needed and wanted something that was actually decentralized and we can hopefully well outlive us and be able to be used um you know with a liveness guarantee that a centralized Oracle cannot guarantee and at that point in time there were really no oracles around honestly and we all set out not just us but I think just individually like a bunch of people started working on this problem and trying to solve it and we succeeded in actually finally providing people that are joining the industry now a whole array of oracles from centralized to

decentralized there are all sorts of flavors all sorts of specialization nonp specialization there's so many options out there out there popping up every day that it's even hard to keep up and last year I actually went back and I looked at all of the hacks that happened in 2023 and one of the things that stuck out the most was that ultimately the majority of the hacks on oracles I mean we've done such a great job that the actual Oracle Protocols are not getting really hacked the way that Oracle hacks generally happen it's by people actually manipulating the asset or the definition of the acid or how the AET that that

we're pushing on chain so the actual problem has shifted from the protocols and and trying to solve how to trust this the push data on chain to the actual quality of the data and that's basically the biggest realization that we that we've made up to now at least in teller is that we have some pretty strong protocols out there already but in terms of data definitions and I know I have a few of my peers here that have developed their own oracles we often have users that come to us and tell us I want the price of some random altcoin that they launched yesterday right and we're like What like how many sources are are there uh is there enough

liquidity uh is this even safe Are you seriously trying to secure that much value with this thing you know and we have to go back and really educate our users into that is not probably the way that you should be implementing an oracle or in any way or shape because no matter what Oracle you choose if you give them a definition you're going to get bad data no matter what trash in trash out that has not changed in crypto or in general uh in general so one of the other realizations that we've made it's through through this uh engagements is that we have to look at security as uh as an effort you know as an effort of

different layers of of things that you have to do to actually secure your protocol one obviously your data quality or your data definition has to be at a better um at a better State than it has been before two you have plenty of Oracle options out there choose something that aligns with your values and that actually fits what you're building three Implement them correctly you know if you're going to choose an oracle make sure that you when you implement it you implement it the proper way or the way that you minimize any of their weaknesses within your system and then always assume that the Oracle is going to fail or the data definition is going to fail how are you going to

handle that even maker has a freezing mechanism if they can afford to do that you can probably afford to do that you're not that big yet um and then the last thing that it's become more of a more of a recent problem is actual attacks on the Chain Lana protocol uh exists in osmosis chain and the way that they were attacked um does anybody remember black Thursday here yeah okay a few of you right so that according to me was something that just happened it was a market thing and there was a bunch of gestion on ethereum and the the actual Oracle couldn't update properly and that ended up causing a bunch of liquidations

on and maker actually and luckily for them they were able to put a back stop and freeze their system and stop the bleeding but either way this is something that happened just because of market conditions in Lana protocol um they were attacked by basically recreating this mishap on ethereum but on that chain because it was way cheaper to to attack the chain so these hackers were basically um congesting the chain and not allowing Oracle updates until they set their system up to take or to take advantage of of the price that was coming in and take you know make profit off that so they knew what was going to be the update and they

paired that with transactions to take advantage of that and because they were causing the congestion they knew exactly when the congestion was going to stop in the oracle up this we going to happen and I think that as we move on to seeing all of these new OP chains developing the two re number one reasons that we develop app chains is because we want more control over our protocols and a lot of the times we want to have better control of the gas cost that we have and when you are decreasing the gas cost on your chain you're also decreasing the cost of attack and so this attack is already out of the you know the cat's out of the Hat it's going to probably continue to happen and so that this is something you have to be start start thinking um as you develop your own

protocols if you decide to go that route and then the last thing is everything that's on chain or the code that's on chain the way that I see it is the base rules of the game and if anybody comes up you know a hacker comes over and they're like okay you know these are the base rules of the game but uh I found a way to basically cheat the system that is a hack right and so I I think there is aside from the code there's a social contract that we sort of enter into when we opt in to use any protocol it's like that's the way that it's supposed to work and so when it fails to work or when somebody takes advantage of a weakness I think it's completely acceptable for uh you to have your

social layer determine you know your community determined well we're not going to do this so we're just going to Fork you and you can spend as much resources as you want trying to hack the system or trying to to play or game the system but ultimately we're going to Fork you out and I think just a credible threat can go a very long way to keep those type of attacks away so those have been like the ban uh takeaways that we've had or that we've learned through the through the years and with that we have set ourselves to really try and design a system where we can actually uh support an environment that keeps expanding every day and the good thing about this so is that now as opposed to

2018 we have way better Bridges we have an ever expanding ever expanding ecosystems that are working really hard to be interoperable and even I mean even Bitcoin is in on this game which forever I thought that they they would never join because you know they were always very I know very very strict into or very pure in the technology so it was um I I'm very surprised that now like within the last year they've had so much um so many people like join their ecosystem and and and it's really expanding and then last but not least CK proofs are actually I mean there still need work but they're way faster than they were in 2018 they're way cheaper

than they were in 2018 actually they were they're probably way cheaper than they were last year and every day they keep getting better and better and so we we want to take advantage of all of these new evolve of this Evolution and these improvements and set ourselves up to to use all of this and focus really on what we see as currently the problem and develop a system that allows us for better and more robust data to be achieved through a decentralized way so we're focusing basically where our V2 of teller is going to be it's Standalone L1 the only thing that can happen there is coming to consensus to on on data and we are facing we are focusing a big portion

of that on data quality and for that basically we want to be able to collect as much data on chain before we come up with an official value to provide to our users that allows us to improve our security and that that is our main focus is if we see that there's plenty of options in terms of oracles and I see the problem now is data quality how do we improve it obviously interoperability it's at the top of our list because currently for teller to go to any other chain we have to deploy our contract for anybody to become a data reporter they have to stake on that chain so we depend on a a bridge to be able to bridge our our token trb for them to be able to stake to initiate disputes to

pay um the network report the data reporters so we want to take that away and and make set ourselves up so that as the ecosystem expands and demand expands and our security should as well and we should not be operating under the assumption that somebody else is going to you know come up with with a bridge for us um obviously um the centralization for teller is at a at a core of our values and so we're always and and you know I know I have a lot of Oracle PE peers here you guys know that we're optimistic we're a little bit slower but we definitely want to always emphasize decentralization and with the increasing data quality we want to continue

to to support experimentation in in in in crypto right all of these new up chains keep popping up mainly because they're experimenting we're still trying to find market fit we're still trying to find other ways to to use the technology to improve traditional systems and so for us what that means is that we want to enable create a system that allows for as many reporters as we possibly can get because that helps us create robust data on chain and and the and and you know these reporters need to be able to decline on providing data or or data for queries or questions that are too

subjective or very high risk because every time that they provide data they run the risk of getting disputed and losing that money if they get it wrong so they has to they have to have the choice to provide it or not provide data but with with that choice you know um that that means that we can have a bunch of of data reporters and be able to support things very robustly and be able to support things that are very Niche or longtail assets that maybe only some people are willing to take the risk um to report or even things that can only be really verified by a handful of people or or less than 2third of the

aggregate weight of the chain obviously we cannot do the same and and just uh this Slide the main thing about this that I want to point out is that we're actually going to be using our own system to bridge our token to our chain that's the only token that's going to go to our chain there is a 12 hour delay before people can um actually claim their tokens on our chain and it's purposefully very slow and the same way going back out of the brdge um it's very slow because our model is not we're not a brdge we're just using this for our purposes and when when they um deposits and withdrawals are also capped to make it really to attempt to make that honey poot as unaccessible as possible for

hackers it just takes a longer time it allows us to react if anything was to happen but we are using teller for for our own purposes and then for validators if we want to be interoperable we have to unfortunately at this moment in time cap our validators because otherwise we won't be light Bridge friendly and we're using the cosmos SDK for our chain so we just that was AA tradeoff that we had to make and we're fine with doing that because we're reaching consensus with as many reporters as we can within our own chain and it's just a matter of uh using the attestations of the state of the chain to push the data to some some other chain and we can use that you can

use CK proofs um and I'm sure as more bridges uh IBC as more Brides begin to um to be enabled and be developed then people can have way more options they don't have to use just what we provide but this is a trade up that we did have to make and we are fine with doing it for now and as technology evolves we hope to be able to increase that I I talked a little bit about robust and optimistic data or how we want to be able to provide basically a playground for people to to get data that they that that a lot of people are happy and willing to provide on chain and also be able to ask random oneoff questions or question that only a few

people are willing to provide on chain and for that we we call robust data things that are supported by 2third of the weight of the Stak weight of the validators and anything under that is just considered optimistic um and can be disputed if it if the data is considered robust then basically you're saying that the chain has been uh compromised so in general robust data can be used a lot faster than you can optimistic and you're making a big claim if you think that robust data is actually um is incorrect uh the last thing obviously our bridge I already covered this but the main thing for interoperability for

us was really removing that dependency of having to call the chain it's like hey or what what what bridge can what bridge is up and running that we can trust to tell people if they want to go and take their tokens their trb tokens and become a reporter that there that they can actually trust because we wouldn't want to tell people hey go use this and then they get hacked um so it's really great not to have to depend on that and we're just bridging data and that is basically the only thing that we want to bridge that is what we're doing um that is our bread and butter that's what we know how to do best and lastly this ecosystem that we're create or this

new chain that we're creating this V2 cuz V1 will live forever uh well the main purpose of this is we still want to allow people to experiment because I mean an ever expanding ecosystem people are doing random things and at this point I don't think that I know exactly what they're doing or what's going to be the end game so we want to make sure that we provide a Sandbox for them to play and then obviously we want to stay inter as interoperable as POS as possible in the past we have made different iterations of teller there have been non evm so we've done kadna we've done polka dot uh algorand and those are really big builds and they're very expensive but now whenever we want

to go to another chain we the the build is so much smaller because it's just the data branch that we're creating so it's just a much smaller contract um and then obviously we are trying to collect as much data as possible on our chain before we come up with an official value and that's basically to create more robust data and to try and provide more quality assurance in terms of that data and also expand uh be able to expand farther than just pricing models like one of the things that we have been working in the background and one of my I guess uh little side projects has been trying to recreate an u in a decentralized CPI and I think creating a structure that allows us to collect more

information and create more robust systems for data will eventually allow us to create not just things that are you know if we're trying to create an alternative Financial system we need a lot more than just prices on chain and I think eventually we're going to have to instead of just being thata providers as oracles we're going to have to do much better and we're going to have to be data creators and quality assurance in and education always uh to our users but with that I hope you guys uh got some value out of this of what we've learned I know everybody has a different emphasis in terms of Oracles of what we uh focus and spe specialize

but this is sort of our learnings through the years and what we're trying to experiment as we see the ecosystem expand and I'm out of time but I'm happy to answer any questions so

Related talks