Blockchain For Data: Leveraging Validator Set for Verified Cross-Chain & Off-Chain Data Acquisition
Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 7:34
Filip Koprivec of Flare argues that an onchain application is only as secure as the weakest link in its data pipeline, from acquisition through delivery to use. Flare's response is a separate network with its own staked validator set, where each validator also acts as a data provider, so data consensus inherits the same security as execution consensus. He covers the tradeoffs: prices must be carefully defined and added slowly, web2 data needs deterministic attestations that all validators can reach, and validators must be compensated for data access. Prediction markets and lending pricing are among the uses.
Speakers
Topics
From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.
Transcript
so hi I'm Phillip head of devil here at Flair um and I the talk before me was really nice um pretty much said all the things I wanted to touch upon so the main idea is so you have the data you have it on blockchain this is an oracle Summit so the first statement is pretty clear so nothing lives in isolation what does that mean well you need some offchain data you need some data in addition to what you can only get by solidity statements or move statements and so on and the thing is how much do you value this data and not just this it's also how much will the attack cost and as you run blockchain you've already made a huge decision which is I wanted
to do something on blockchain which means that your awareness um your awareness towards security your awareness towards Financial Security is quite high and that means that pretty much anything that's standing in the way of you getting the correct data or you're getting the data that can be manipulated is at some point problematic so the thing is that the security across the whole pipeline not just the data acquisition but also how you get the data to chain who do you trust in the process and what you do at the end with it the blockchain computation is at best a function of minimum of all the data of all the security assumptions in the middle so what that means that means that if one part of the chain breaks you
end up with an application that is doing exactly what you want it's Computing exactly the sorted value of something uh multiplying it and doing an liquidation of whatever you need but the data you're acting upon is wrong in the beginning so what you need to do both as an application developer and as an infrastructure developer you need to make sure that you know what your data assumptions are as we heard you know what your security assumptions are and you know the cost and each part of the pipeline needs to be secured otherwise well which part are you going to attack if you're an attacker where you're going to attack the easiest one to do so accessing this and making sure that this is correct is a non-trivial task and
what we did well we practically built a whole new blockchain that is specifically focused on making sure that this data provisioning part has the same security assumption as the execution part so what did we do well we created a separate Network that's not an Layer Two that's not um a roll up or something different but we wanted to have our own validator set we wanted to have a validator set with stake and exactly this stake the stake that is guaranteeing the execution of code the state that is guaranteeing the consensus layer is also guaranteeing the consensus layer upon data so that means that the data consensus the consensus about what are we going to put on chain that can
later be used in execution follows the same security principle um it's a non-trivial thing um there's a bunch of things that you can easily do and there's also a few things that are non-trivial to do um and make a development environment a bit more problematic so specifically um what did we do we took the validator role and partitioned it so that each validator now also has to be a data provider and that is not cheap that means that most of the inflation of the network also has to provide for this data provisioning which means that you have different security assumptions upon the network what does that mean that means that on the network you are limited to data points or you have to work with data
points that can nicely be made as a consensus on top of the network so for example if we're talking about prices um you have to be careful which price you're considering you have to be careful to properly Define what a price is and how are you going to Source it and that means that you are in a way limited uh for example in our case we can only slowly add prices because if you want to secure it by the whole stake it takes time for the whole validator stake to get access to these prices to properly support them and then be able to put them on chain but this is for non-deterministic data for deterministic data when you want to extract some data points from a web two Source you again
have to be careful you have to construct this attestation you have to construct the ability to get this data point in such a way that it's easy to create a consensus on top of it so that you know how exactly you can slash on the validator level so again in that case what you have to do you have to present your data point you have to present your data acquisition point in such a way that all the validators can access the same information either via pre-processing either via postprocessing um creating a nice solidity adapter and interface at the end of it and then also be able to properly um uh give money back to to the validators in such a way
that they may that this process is not unprofitable for them what that means if you want to access a bunch of different data points and all the validators have to check those data points you need to make sure that access to those data points is not behind the payall or that access for those data points is behind the pay wall but you make the users of these data points at the end properly Reen numerate the validator so they can access those payloads um because if you're under a pay wall and you just create an additional API and say okay instead of Twitter's API use my API that is sourcing Twitter and I'm going to give you everyone an API keys for my specific uh server well at the end you're pretty much just trusting again a
single person so those are a few problems that can in a nice way be encapsulated and secured and then push to the validator level as long as you make sure that the validators are properly enumerated and that the validators know how to participate this and are able to do a slow roll out and un aable to continuously update your data sources so it's both about the definition and making sure you sure that you don't overextend the validator set um and so what we were able to do um at the end what this Powers well as long as you can trust something as long as you can say okay we're going to do a specific deterministic attestation you know what your trust assumptions are so you can make a nice prediction Market
but you know exactly what your data pipeline is and you know where your greatest weakness lies so as we've heard before um an some employee of a Facebook can change the website and produce something different what this actually means is that you have to educate your developers to be able uh to make certain assumptions and to be able to make certain specific data proofs and say okay so here's my data Pipeline and what we're going to do we're going to say we're going to focus and we're going to um finalize our bet or finaly our prediction market and exactly on what the Facebook says this means that you have to up front create a code sample you have to upfront create a
deterministic finalization and know that this is your specific paino that can be problematic and furthermore so you can do a bunch of other things Landing protocols for um pricing data and so on but it's all in this data pipeline so what we're doing you're slowly chipping away problematic security points um and that's it
Related talks
- Flare Workshop with Filip Koprivec
- Flare’s Pricing and Data Oracles for Multi Chain Interaction - ETHGlobal Brussels 2024
- OEV: An (Almost) Unbiased Look at the Million Dollar Value Recovery Race
- Evolving Needs and Practical Lessons in Adaptive Oracle Design
- Bring any Web2 data onchain - Filip Koprivec | Flare
- Band v3: Is Oracle Really Boring?
- Building the Data Layer for Ethereum's Institutional Era
- Using Holochain as a Validated Data Layer for On-Chain Transactions | Joshua Vial - Holochain
- Why Web3 Needs More Oracles - Chandler De Kock
