#sxt $SXT @SpaceandTime
Ive been reading about hiw DeFi protocols use historical data and from what I see there is one problem thatvis easy to miss:
how can a smart contract know that the data it's receiving is actually correct?

A protocol might need to check millions of transactions or combine data from different chains. Doing all that onchain isn't practical, so the work is usually handled by external services. But then you're trusting someone else's answer. We take the answer as true without giving it second look.

This is what @SpaceandTime is trying to solve with Proof of SQL. It lets data queries happen offchain while producing a cryptographic proof that the query was executed correctly and the data wasn't altered. A smart contract can then verify the result onchain.

Basically, you get the benefit of complex data queries without having to blindly trust whoever provides the answer.

They offer solution to this problem, and for now this solution looks solid to me. They are still building...