Bankless - StarkWare Sessions #7 | Herodotus Cross-Chain Data

Episode Date: February 11, 2023

Sometimes, the frontier is at a crypto conference. We’re returning from our adventures in Tel Aviv with nine exclusive interviews with some of the key players in the StarkNet space.  Wish you could... make it to all the crypto conferences, but don't have the time? Don't worry, Bankless brings the frontier to you. Herodotus is a system for data interoperability across chains. The future is composable, and tools like Herodotus help move us in that direction. ------ 📣 MetaMask Learn  https://bankless.cc/metamaskshow ------ 🚀 JOIN THE NATION:  https://newsletter.banklesshq.com/subscribe ------ BANKLESS SPONSOR TOOLS:  🐙KRAKEN | MOST-TRUSTED CRYPTO EXCHANGE https://bankless.cc/kraken 🦄UNISWAP | ON-CHAIN MARKETPLACE https://bankless.cc/uniswap ⚖️ ARBITRUM | SCALING ETHEREUM https://bankless.cc/Arbitrum 🚁 EARNIFI | CLAIM YOUR UNCLAIMED AIRDROPS https://bankless.cc/earnifi  👻 PHANTOM | CROSS-CHAIN WALLET https://bankless.cc/phantom ------ Timestamps: 0:00 Intro 3:30 Herodotus 7:15 Use Cases 10:10 Storage Proofs 11:45 How it Works 15:00 The Future 18:30 Get Involved ----- Resources:  Kacper Kozio https://twitter.com/kacperkozi  Marcello Bardus https://twitter.com/0xmarcello  Herodotus https://twitter.com/HerodotusDev  StarkNet https://starkware.co/starknet/  ----- Not financial or tax advice. This channel is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This video is not tax advice. Talk to your accountant. Do your own research. Disclosure. From time-to-time I may add links in this newsletter to products I use. I may receive commission if you make a purchase through one of these links. Additionally, the Bankless writers hold crypto assets. See our investment disclosures here: https://www.bankless.com/disclosures 

Transcript
Discussion (0)
Starting point is 00:00:01 Welcome to Bankless, where we explore the frontier of internet money and internet finance. And sometimes that frontier is at a conference. Like last weekend, where over 1,000 developers, founders, builders, and investors attended the Starkware sessions in Tel Aviv in order to participate in growing the Starknet ecosystem ecosystem ecosystem ecosystem systems. This is Bankless's StarcNet. Which are nine bite-sized episodes interviewing the founders, builders, and ecosystem developers of Starknet. Every once in a while in the crypto world, a conference happens. not everyone is available to attend. Don't worry. Bankless has your back because I go to basically every conference that's out on the frontier and I bring an entire podcast studio in tow with me in order
Starting point is 00:00:41 to make sure that the Bankless Nation stays on the frontier of what's happening in crypto. In this interview, we were talking to Herodotus, and that is an interesting name, which will become self-evident as to how they named what they are working on Herodotus in this interview. Herodotus is a system for taking all of the very deep, rich data that we have across many, many chains and allowing each of these chains to access the state across chains, both the current state and the historical state. So say, for example, Uniswap on optimism wants to understand the average price of ether on arbitram over a 30-day period, arbitrary length period. Herodotus by running all of these very deep archive nodes across all these chains can provide all of this
Starting point is 00:01:25 data to all across all of these chains using ZK proofs in order to, you know, compress all of this data and prove it to the chain. It's an extremely useful thing to do, and the use cases for this are quite large, so I will let your imagination run wild as you listen to this episode. But first, before we get into this episode, a moment to talk about some of these fantastic sponsors that make this show possible. Cracking has been around for almost as long as crypto itself. As crazy as crypto is, Cracken has remained a rock for its clients, building out a platform designed to stand the test of time. Cracken is all about proof, not promises, which is why they've pioneered a proof of reserves, a system that,
Starting point is 00:02:00 lets Cracken's customers verify for themselves the solvency and responsibility of the Cracken Exchange. And for this reason, and many more, we've chosen Cracken as Bankless's strategic sponsor for 2023. And once you're done using Cracken to get your dirty Fiat money into pristine crypto assets, perhaps you should check out Arbitrum, where so much of the frontier of crypto innovation is taking place. Arbitrum just announced their stylist initiative, which is their brand new programming environment that lets developers deploy apps using their favorite programming languages like Rust, C, C++, alongside regular old solidity EVM apps. Stets can use any coding language they like and it simultaneously drops layer two fees by an order
Starting point is 00:02:37 of magnitude. It's a big deal. So many of your favorite DPI apps have already deployed to Arbitrum like Uniswap. But did you know that Uniswap isn't just for ERC 20 tokens anymore? Uniswap is also an NFT aggregator too to make sure that you are getting the best price on your NFC purchases. Uniswap gives NFT collectors and traders powerful tools, all from the cozy, comfy Uniswap interface.
Starting point is 00:02:57 By the way, it's also got a native Fiat on ramp. It's also deployed on like every layer two, and it's got this nifty cool thing called a universal router that ensures that you always get the best price on your trades. Crypto protocols like Arbitrum and Uniswop are becoming super powerful. So make sure that you're also using a wallet that's equally as powerful or else you'll be missing out. If you're looking to upgrade your wallet experience,
Starting point is 00:03:17 check out Phantom, the number one wall of Solana, which has recently come to both Ethereum and Polygon. Phantom has native NFT support, giving you your own NFT gallery from inside the wallet. Phantom is both a browser extension and a mobile wallet, and is also the only wallet to span both the Solana and Ethereum ecosystems. Check it out at phantom.app. And now let's get into the interview.
Starting point is 00:03:37 And we're back in Tel Aviv for the StarCware sessions, and I'm talking with the Herodotus team. You guys want to introduce yourselves, and then we'll get into what you guys are building? Sure. I'm Casper Koziel. I'm one of the co-founders of Herodotus. Murchalo?
Starting point is 00:03:50 Yeah, I'm Murchalo, also one of the co-founder of Haredotus. And, yeah, I'm the technical guy. And so we're absolutely going to dive into Herodotus. But first I want to ask you guys about why you decided to come all the way out to Tel Aviv for StarCware sessions. What brought you here? Well, Storknet, the whole community over here is very vibrant. They're building a really interesting ecosystem with a lot of unique projects. We wanted to network with these projects and essentially explain to other projects how they can leverage storage proofs and the advancements that we're building at Herodotus.
Starting point is 00:04:21 and explore all the unique applications that these technologies unlock. Yeah, another reason. We use cryptography. We love cryptography. Many people over here also seem to like cryptography. So, yeah, it just makes sense to come here and chat with the guys. And, yeah. So you use the word storage proofs, which tells me that this is going to be a very technical conversation.
Starting point is 00:04:45 So fair warning to the Bankless Nation. How did you guys come up with the need for, Herodotus, how do you pronounce it? Herodotus. Herodotus. How do you guys come up with the need for Herodotus? Yes, so actually, Herodotus is the father of history. That's what he's known for.
Starting point is 00:05:01 But he's also the supposed creator of something called the Herodotus machine, which, fun fact, the Herodotus machine was supposedly used to build pyramids in Cairo. So Cairo's Starknet, kind of the vibe, that's where the names came from. And, yeah, and Herodotus, since he was a historian, our solutions unlock access to historical data for Ethereum and applications on it. And we thought that I was an interesting fit. And yeah, it's a very technical product. So the target audience of that name is also quite niche.
Starting point is 00:05:36 So it fits. So when did the Herodotus project get started? So Herodotus itself, we started building it in August of last year, August 22. And since then, we have gone. through a lot of research, a lot of experimentation that brought us to this point here. We have presented some of the concepts and some of the technologies that we have been building at several conferences last year, but only here at StarkNet, StarCware sessions in Tel Aviv. We have actually been able to demo a working API implementation of what using these products,
Starting point is 00:06:17 these solutions that we've been building will look like. and we're very excited to share them with the community. The developers that build on top of this essentially can build really cool things. And I'd love to give you some examples of how others are using and exploring our technologies. And yeah, we're there. First I'd like to ask what's broken about the state of all of these blockchains that we're using, the state of Web 3, because Herodotus doesn't exist. What's broken about the world right now?
Starting point is 00:06:47 Yeah, so first of all, I would say that nowadays we live in a 2D word. Why? Because if you build a smart contract, this smart contract can access its own storage and to some limited scope, the storage of other contracts. And we want to enable some other dimensions, one of them being, hey, let's see what's happening on other roll-ups and other layers of Ethereum. Another dimension, which is probably the most important one, is time. And, yeah, that's our mission to essentially enable these two dimensions.
Starting point is 00:07:14 So where should we get started diving into Herodotus? Where should we leave? I think the best way to kind of get started is to go over some use cases, give some intuition as to where this technology fits in, and then maybe later on we can kind of cover some more of the technical stuff of how we actually make this happen, and where do we see Herodotus fitting in in the future. So as right now, I'd say our most flagship integration is for governance.
Starting point is 00:07:42 It's Snapshot X. essentially what SnapshotX allows you to do is it allows you, well, how they use Herodotus, is they leverage Herodotus storage proofs to allow you to prove ownership of L1 assets on Starknet. So essentially you're able to prove that you are the rightful owner of an asset on an L2 and reap the utility of this asset. And this is very powerful because you're able to keep the security of keeping your assets on this main net chain and essentially eliminate the need for bridging. And I think that's one of the main takeaways from storage proofs in general.
Starting point is 00:08:17 They unlock a lot of use cases. And while I agree that there's a big shift over the recent months to, well, years, to bridging assets between various chains, storage proofs actually eliminate the need for bridging in many circumstances. That said, it is possible to build a bridge on top of storage proofs. However, the general possibilities of what you can build on top of them are quite limitless. And yeah, so Snapshot is one of a very interesting example because users normally are kind of restricted to voting on the L1, which of course is pretty expensive.
Starting point is 00:08:53 And if we want to have Dow adoption governance becoming much more used, we want to make sure it's accessible to all the people who might not want to pay $16 for transaction fee, et cetera. Is there anything you want to add? No, I think that was a great explanation. I think that's a use case that a lot of people in the bankless nation probably pretty easily wrap their heads around. I mean, how many times has there been a snapshot vote that has been relevant to a defy app or Dow that you are a part of? But your assets are somewhere else, and you haven't really, you just can't vote.
Starting point is 00:09:26 And so what do you do? Do you go retrieve your assets to go snapshot vote? Or do you just skip the vote? You probably skip the vote. Yeah, especially when gas fees go through the roof. And not much you can do about that at that time. So, yeah, so governance is one example, but there's a lot more you can build with this. So I personally am always excited with most of the financial applications of what's possible to build on this.
Starting point is 00:09:49 And one of the examples is lending. Cross-chain lending is quite interesting because you're able to essentially do something like locking your assets on an L1 and taking out a loan on an L2 based on storage proof. This allows you to keep your assets on a chain that you find secure, which is L1. you trust and get exposure for, let's say, cross-chain arbitrage, etc. I want to unpack that one really quick because I think that's really, really cool. Okay, so like, say I have an AVE position on optimism, and I would like to borrow USC on optimism, but I don't have any eth on optimism.
Starting point is 00:10:25 All my eth is on the layer one. And so using what are they called? Bridge proofs. Storage proof. Storage proof, excuse me. Using storage proofs, I can lock up my assets on the layer one and then prove that to AVE on layer two. Yep.
Starting point is 00:10:43 Yes. Yes, but that's something that can be built on top of herodotus. I want to clarify that our infrastructure unlocks these use cases, but it's up to the actual end developers to build these solutions on top of them. Strictly theoretical use cases. Correct. All the examples I'm going to list right now are simply things that projects we have been discussing with entering into partnership,
Starting point is 00:11:04 agreements with are exploring and we've heard of. Another really cool example that I'm sure if someone's has listened to our StartNet workshop presented by Macha Suletsky is essentially proving that your nonce in an account abstraction wallet has not changed in over a year. And at that point you could essentially write account abstraction wallets that allow you to do fund recovery that is based on like a dead man switch for example. So you can prove that there was no activity for over a year, which makes it a reasonable assumption you may be lost your keys. And at that point, you could delegate ownership of that wallets or transfer funds based on that proof. That can also work for EOAs, that are part of, let's say, a multi-seek. Okay, so how does the magic come about? What's the magic
Starting point is 00:11:49 under the hood that really enables this to happen? Okay, so that's my part. So essentially, the way how we think about blockchain is essentially it's a list, right? The list of blocks. And there is a very nice cryptographic relation between them. Essentially, one block header refers its parent in a cryptographic manner because the hashes just match. And we essentially embrace that relation, we just process the whole chain, we prove it, so we know that whatever we come up with is valid. And then on top of that we can access the state routes, and the state rules are just a root of a tree that contains everything was ever committed on the blockchain at this specific
Starting point is 00:12:26 block. And essentially by just leveraging cryptographic proofs, we are able to access whatever was present at any time on any chain. Okay, and so where does the role of just like nodes come into play? This is all based off of archive nodes, right? Yes, so to kind of expand on like storage proofs in general, they're very complex to work with. And they have pretty high hardware requirements and know-how requirements. You need to have archive nodes and you need to maintain them.
Starting point is 00:12:54 You need to benchmark the different proving systems that can be used to essentially generate these proofs. And on every single chain, this will vary. This is pretty complex and we believe that developers doesn't give a developer a very easy integration experience. If we want to see storage proofs mainstream and essentially see them being adopted in the increased amount of projects, we want to simplify that as much as possible. We want to take this very complex topic and make it easy to integrate into your app. So for example, let's say I want to have an options protocol that settles based on, let's say, historical yield of let's say an AVE. On AVE.
Starting point is 00:13:35 We could take that feed from essentially Herodotus by essentially sampling historical points in time through from the blockchain and computing something we call a verifiable data feed. That's an interesting use case as well. What else? And yeah, so essentially we're abstracting the complexity of working with storage proofs and giving them to developers in an easy-to-use API. So let me try and repeat a bunch of stuff to make sure I check my understanding here. So like there are some ways for data to go into our defy apps. That defy app might actually be able to look on chain at historical data
Starting point is 00:14:13 and then come up with its own data feed about using native smart contracts on Ethereum. But that's probably going to be really computationally intensive and probably extremely expensive. And on the L1, probably so expensive that it's not even possible. And it's just a theoretical conversation because of how expensive it is. what you guys are doing is operating archive nodes, taking that same data that exists on Ethereum or other layer 2s or whatever, and then generating a proof of that data,
Starting point is 00:14:40 which then you can prove to a smart contract about the data that's going into it, and you can also prove that it's valid, and that smart contract can receive that same data, but rather than that smart contract processing Ethereum history, you guys are just feeding it externally, but you don't have any trust assumptions because it's a proof. Exactly. Correct, yes.
Starting point is 00:14:59 Nice. All right. Okay. That sounds so generalizable that you can unlock almost anything with that. Yes, there's a lot more use cases that I can probably think of. I'd kind of like to explain as to how we actually got here and how we ended up in a situation where this data access is sharded essentially amongst all these other chains. Layer 2s have done a lot for Ethereum.
Starting point is 00:15:26 They increased transaction throughput, etc. However, in itself, in like the very early days of Ethereum, if you were a smart contract, you had access to pretty much all the data. It was all in this one chain. And as we wanted to increase this transaction throughput on Ethereum, layer 2 managed to increase this transaction throughput, but in itself, they sharded this data access. So if you were that smart contract, you would no longer had access to all the data because it became isolated within your layer 2. And with Herodotus and our APIs and the solutions that we're building, what we want to enable you to do is we want to enable developers to once again be able to access data between these layer twos in a trustless manner, relying on these cryptographic properties
Starting point is 00:16:11 that secure the blockchain itself without introducing unnecessary trust assumptions. So what's the roadmap like? What are you guys building first? I think you talked about Snapshot. It sounds like that's coming first. What's coming second? What's coming third? What are the ways that people are going to be impacted by this the most?
Starting point is 00:16:28 Yes. So our first integrations are essentially with Starknet. We have a Starknet Ethereum connection built. We define these as connections, meaning that when there's two chains between there's a need for data access, we define that as a connection. And this connection can be one directional or bidirectional. And in this case, the first connection that we have built and we have successfully benchmarked, et cetera, and we will be releasing access for the public for with API keys, et cetera, in the future,
Starting point is 00:16:54 is this connection that allows you to read Ethereum data from Starknet. So it's a one-directional connection. In this case, this was more of a decision that is very expensive to do it the other way around. In the future, this is something we're going to explore as well. And now that we have done this Starknet Ethereum connection, the next ones that we're going to be exploring are going to be EVM to EVM. We haven't yet finalized the decision as to which roll up we're going to go over. go for, but this is going to come out sometime in the next two to three months.
Starting point is 00:17:24 Maybe to add on top of that, we also allow to access state from Polygon, Optimism, and ArbitRum of Starknet. So my intuition tells me that this just works across any blockchain, and the fact that a layer one or a layer two or a side chain or an alternative layer one is actually a detail that does not matter for what you guys are building. Yes. In a way, right now we are simply focusing on making an EVM communications. and the chains that we deployed on later is a later decision.
Starting point is 00:17:55 We have not picked one yet. Maybe to add on top of that, we firstly are focused on doing like L2 to L2 communication L1 to L2. We are not looking at L1 to L1 yet because it's a completely different type of problem. Many things are in common, but it's still not on the road map. Not for any time soon. So how big is the team? Currently, there's nine of us. of us. And there's a few part-time people. But yeah, the team's growing and we're building.
Starting point is 00:18:26 There's results. And things are moving very nicely. Beautiful. If people want to learn more, where should they go? Herodotus dev, the Twitter, or heredotas.com, the website, is probably the best resource. And yeah, that's where we post updates, etc. Awesome. And at the end of this interview, at the end of this conversation, the naming father of history, definitely checks out. I understand that how that came to be. Happy to hear that. Cheers, guys. Thank you so much. Thanks. Thank you.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.