Solving Interoperability with Intents

ETHCC 7 · 9 Jul 2024 · 27:34

Hart Lambur, co-founder of Across, argues that intents solve interoperability better than message passing. He runs a live bridge of 0.1 ETH from Optimism to Arbitrum, which he says took three seconds and cost seven cents. He explains how solvers front funds and are repaid after verification, and compares speed and fees against Circle CCTP and Stargate. He also covers ERC-7683, built with Uniswap, and answers questions on trust and solver competition.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

I think I'm the last presentation for the day. And I just got off a plane from far away. So we'll keep this entertaining and energetic. My name's Hart Lambert. I'm the co-founder of a cross protocol. I also contribute to another protocol called UMA. Today we're going to talk about intents and specifically how I believe intents help us solve interoperability and help us create a unified Ethereum. So first off, let's do a demo, because demos are fun. Okay, so here's a cross.

I'm going to bridge 0.1 ETH, 300 bucks an ETH from optimism to Arbitrum. It's going to cost me seven cents. Let's see what happens here. Live demos are always fun. Okay, so I confirm my transaction. Let's see. It took us three seconds. That was two seconds for confirmation on the origin chain, which is like the optimism block time, and then like less than a second to confirm the transaction on Arbitrum. So that's a good demo. And it was cheap.

So how do we do that? How does that work? And um, you know, to level set here, what we want is fast, cheap, and secure interoperability uh that is so seamless between Ethereum and all of Web3 that you don't even know you're dealing with blockchains. That's like the ultimate goal. And the mental model I think most people have is that interoperability should be like TCPIP. We should connect servers with pipes and send messages between them. And I think this is wrong because blockchains are fundamentally different uh and they take time to finalize and confirm transactions, which is what we're gonna get into.

So this is like the mental model. I have blockchain A and I have blockchain B, and I can't use both my hands because I have a microphone. But blockchain A, blockchain B, I want to send a message from blockchain A to blockchain B. How do I do that? Well, first thing is I have to wait for some sense of finality on blockchain A before I know that message is good, and then I need to send it over some protocol, some system, some mechanism. I've got to send that message to blockchain B. And I need that to be fast, cheap, and secure, which is a very, very hard thing to do all at once. So this is a problem.

Hard to do that, hard to do those three things all at once. The solution though is you just stop sending messages. Just don't do that. That is not what we need to do for 95% of the use cases of interoperability in uh in blockchains. And um, this is like our core observation at uh across. In TCP IP and in that mental model of interoperability, you're moving bytes, you are moving messages between chains. But on blockchains, you are mostly moving value. I put mostly in quotes, because that's not always true, and there are exceptions to this, but 95, 98% of the time, I want to move value and then maybe execute some code with that value on the destination chain.

And this is something that a different architecture, not a TCIP based kind of messaging architecture, a different architecture, specifically this intent architecture is very, very well suited to do. And you know, when you think about it more deeply, the observation continues to be like, okay, value is fungible. I, as a user, I do not care how many money how my money got to blockchain B. I don't care if it's like exactly my money that was on blockchain A, I just want the same amount of money there. I just want the value there.

And because it's fungible, we can shortcut things and actually not send messages to fill users. That like three-second transaction, which is really one second, because two seconds of that was just the origin chain, that one second type interop experience, that's because somebody else sent money to fill that transaction on my behalf, and they're gonna get repaid later, which is what we're gonna go into. So this is like the mental model of why we think intents work so well. Uh sending messages like TCIP is not the right model when you want to send value. Instead, let's use the fact that value is fungible and introduce a third party to fill those users without all the complexities that sending messages gets you.

Here's the model. Um, blockchain A, blockchain B. On the first version, I sent a message from A to B. In this version, I don't do that. Instead, this third party, we can call them solvers, I'll call them relayers, I'll call them fillers, I'll call them market makers, all the same concept. This third party observes blockchain A, they see that I made a deposit transaction that says, hey, I want to send money to blockchain B, and then they go and they fill me on blockchain B. They execute my intent. And they can do this extremely quickly because they already have money sitting on blockchain B and they're happy to send it to me for a small fee. In this case, it was like a very small fee.

I think it was seven cents total. So what happens here is with this cross-chain intent framework, solvers are filling users with their own capital very quickly and very cheaply, and then they're getting repaid later. Okay, so high-level architecture. We think this looks like a cake. We're friends with the cake framework guys who have been talking about this for a while too, and other people in the ecosystem. There's the top layer where the user order is generated, the intent layer. There is the solver layer of these third-party actors that are observing these intents and uh competing to fill them, and we'll get into the competition in a second.

And then there's the settlement layer here. Because what actually happens is the user money on the blockchain A gets held in escrow at the settlement layer, and it's only released to the solver who fronts money to the user after we verify that the intent was filled. So this is the way we think interop is gonna look like. Some flavor of this uh in as we move forward into this world of many blockchains. So, okay, I want to walk through the advantages, like the three advantages I see intents have over um messaging-based systems. So we have some data here.

This is from our internal dashboards. This is comparing across. Um, and we're looking here at this is L1 to L2 speeds, L2 to L1, and L2 to L2. And I'm actually most interested in the L2 to L2 category because I think this is the future of where um Ethereum at least is going. Um, and we have in our intent-based system a median fill time of four seconds. The fill I showed you guys was three seconds. Um Circle CCTP uh circles protocol to send USDC called CCTP takes about 20 minutes on average. This is because of the finality guarantees they want to wait for on the origin chain before they send uh money.

And Stargate's uh taxi and bus systems, this data is relatively new. Um, but Stargate V2's taxi takes about a minute, and the bus, which is batching transactions, takes more like three, three year and a half minutes. Clear speed advantage, and that's simply because we have these third parties that are again acting on their own in their own competitive framework to fill users without waiting for um for finality. This one's a little more complex. Like, why can intents be so secure?

But if we zoom out, the high level I think is pretty clear. Intents and this cross-chain intents framework separate the urgent part, which is the the part that's important from a UX perspective. The user wants a super fast fill. That's all they care about. But the complex part is actually verifying that that fill was right. Verifying, like, hey, did the did the protocol do what the user wanted them to do? That complex part is much harder to do. But we separate them because money is fungible, and we go ahead and have the third party complete the urgent part really quickly, and then we can buy ourselves time to figure out the complex part.

So verifying the intent, repaying the solver that is the more sophisticated actor, and is specifically volunteering to front money to the user, they're okay taking a little us taking a little bit of time to repay them. And so we're able to uh use kind of any form of messaging or interoperability to verify how these and to verify the intent was in fact filled. So we can use canonical bridges, we can use ZK proofs, we can do optimistic systems. And interestingly, and maybe we'll get into this, we can actually abstract away all these systems too. And so the user and the solver, they just are filling intents.

That's all they're doing. And the protocol is verifying that intent verification that the intent was in fact filled or executed slowly and securely. This takes a little bit more kind of thinking about why this is true. Here's some other data we have again across versus Circle CCTP and Stargate systems. The L2 to L2 uh uh flows are on the top. Um this isn't normalized by transaction size, so this is like an imperfect comparison to be fair.

Um but it crosses median fees about eight cents right now. Stargates taxis about double that. The bus is a little bit cheaper, but it takes about three minutes. Um and you can compare on the on the different routes we look like uh we look at. Um the surface, you would think that this intent-based system might be more expensive because we have to pay the solver uh something to front money until they get repaid. But it turns out that because we can batch the fulfillment of these messages, we're actually able to save a lot on gas and messaging costs. And this the savings we make on gas and messaging costs actually counteract the cost of the loan uh that we have to compensate the solver for when they front capital on filling these years or intents.

So there's this trade off here where solvers make short term loans, but we actually send a lot fewer messages. And um I'll walk through this for a second, but the kind of mental model is you can think of this cross-chain intent framework as compressing messaging. So rather than sending uh a message per per bridge transaction, we can instead say, okay, let's send 50,000 bridge transactions in a period. Let's make this period be one hour.

And then because money is fungible, the the solver has fronted 50,000 bridge transactions worth of value. We can then verify those fills with one message. And so in essence, we've compressed 50,000 messages into one. And so in many ways, I think of the system, and I think what a cross is doing as a compression of messaging. We want to use messaging as rarely as possible, and we're okay to actually have it be slower but more secure. So it's this interesting kind of financial engineering optimization problem.

And my specific example here, I am talking about, okay, let's pretend there was 50 million in volume that was filled over 50,000 transactions. What does it sort of conceptually cost across? Well, a cross is going to uh have to pay solvers for a one hour loan. A 10% interest rate for one hour on $50 million is only $500. And then we send 10 canonical messages from Ethereum Mainnet to the different L2s we service, and those are pretty cheap. I'm I'm picking a dollar here.

You can pick your gas costs and all that. On the other side, on the other hand, if you're gonna use this messaging-based framework, you have to send 50,000 messages to get fast fills, and they're not even that fast, but you have to send 50,000 messages. Uh, and if those cost you a dollar, that costs you five grand. And by the way, I think it costs a lot more than a dollar. Um I'm actually making this even cheaper. I'm saying they cost 10 cents. Um, but I'm just pointing out that order of magnitude-wise here, this compressing of messages makes this intent system really cheap in the long run. Um just sort of fun fact.

Like, we're we're uh Circle CCTP is a very cool product that actually helps across uh in many ways. Um but we're able to build on top of it. So the intent system can fill users with USDC between chains in a sub-four seconds, charging them less than the CCTP bridge costs because we are actually so gas efficient here. Um this isn't true at very high volumes. If you want to bridge a million dollars, you should use CCTP directly. But for the average transaction size, the median transaction size, um, we're like cheaper and faster, which is kind of cool to see this architecture, this optimization problem let us like build on top of what Circle built with CCTP.

Okay, so like the the TLDR, the high-level takeaway here, um, across is this settlement settlement layer for intent, and it's uh set up to scale to transfer billions of dollars a day while only sending a relatively small number of messages. This is this compression of messaging concept. Non-intent-based designs, designs that look more like TCP IP, would have to send 10 like millions of messages. And to me, that just seems expensive. Um, certainly expensive to do it securely.

Um, okay, I'm gonna whip through a few slides because I have more than I think I can get through. But just our vision here. So our vision here is that uh apps and users sign intents. I should be specific that there's a lot of confusion around what this intent word means. There's a lot of interesting conversations around like generalized intents, natural language expression, domain specific languages that you want to write for intents. We're keeping it really simple here. We're saying user just wants to move asset from A to B, that's their intent, and maybe execute code on destination chain.

And so we're just trying to start with the the kind of simple definition that covers 95% of the use cases today, and very interested and curious about where this may go, but we're just saying users want to move value between chains, maybe move value and execute actions. And so we want to make it easy to have dApps create intents. And once they're created, these dApps should be able to throw these intents into this network, into this solver network that competes to fill them. I'll go into this uh in a second, I'll go into the standard we've built with Uniswap uh to try to establish a common interface for what intents should look like.

And then the bottom layer, the settlement layer, this is where user funds are escrowed, and they're only released back to the solver who fronted money after we verify that the intent was paid. Okay, there's our there's our stack. So we launched Across V3 uh, let's see, in February, uh so a few a few months ago. Um we launched it and we reframed it as a settlement system for cross-chain intents. So you literally can follow this standard or the specification. Actually, like anyone could program an intent that follows our sort of spec and use the across settlement system to have super fast cross-chain actions that are really cheap.

And you can leverage the Across Solver Network to have these pretty competent grassroots solvers compete to fill your users' intents. We worked with them to uh define a standard for cross-chain intents. This is now ERC7683. But we just developed this, we developed a standard with Uniswap because there are positive sum economies of scale of creating the deepest solver network possible that can benefit any protocol or any application that wants to use intents for cross-chain actions.org.

We also would love comments on the uh Ethereum Magicians post that uh walks through the spec. Um okay, so I'll whip through this. So we are trying to grow the across the settlement system here to many new chains. Uh we've now like added linea end mode. We have a big roadmap of new chains that we're adding this to, and we are working on accelerating the speed of which chains can come into the across system. Our goal, and I think it's quite achievable, is we can be a day one uh intent-based fast bridge for every OP stack, Arbitrum orbit, uh ZK Sync based chain, which I think would be very cool.

And we're increasingly trying to sell our vision for uh cross-chain UX, which we're calling a Cross Plus, and that's just integrating this ERC 7683 standard, but realizing that you can also execute arbitrary code on destination chain. So you could in one click have a user, for example, move a thousand USDC from chain A to chain B and deposit it into a morpho vault, or buy an NFT, or play poker on poker chain. Um, these are all things that could happen with one click.

And we're getting kind of like halfway towards this chain abstraction buzzword that people keep talking about. We're getting halfway there today while we wait for other standards like Vitalic's uh 7022 or the uh 3074 uh type smart wallet um standards. And the other thing I want to point out is that like this Denkun uh upgrade really made a difference here. Like it used to be that bridging 50 bucks cost you a couple dollars. Now bridging $50 dollars costs you literally pennies.

Um and a cross has really benefited from this. Um it's a super gas-efficient system already, but now like what you're spending in gas to do these transactions is really low, meaning we can do these four second uh bridge transactions for literally pennies, which I think is pretty cool. And then this is just a fun slide I wanted to throw in. This shows the uh median uh transaction size for L2 to L2 transfers and post Den Coon, like before Denkun it was 0.15 ETH and it's dropped by a factor of 10. So you know now the average transaction size is closer to 50 or 60 bucks meaning like we really do have people using L2s in a consumer-ish way.

They're moving 50 bucks around to do things, which I think is super cool. So okay, I don't know if we're can take questions if I'm last person, but I am at time. I hope this was sort of insightful for why we think this intent architecture is the way that we're going to unify Ethereum and create this seamless interoperability between them. We're firm believers that the best architecture will win um and we really truly think we can argue both theoretically and empirically that this intent based bridging architecture is the right way for us to connect connect blockchains specifically in the uh the Ethereum roll up centric world view. That's my talk you guys are welcome to follow me on Twitter at Hal2001 and I don't know if we can do questions or anything, but uh we can I got thumbs up.

So yeah. Yeah. Oh do we trust someone or some algorithms in intent systems or that's not trusting. Is there a trust assumption in the solver algorithms? Uh yeah. If sh uh do we trust if if if I uh use these systems, uh I'm gonna trust someone or not. Am I gonna some trust someone?

There's no the there's no trust in our system the way this is designed. There's some nuance to your question, right? So let's in the current design we're we're keeping this uh this version of intents simple. User wants to bridge one ETH from A to B and they're willing to pay a fee of uh I don't know, like uh a dollar, let's say. Um in this case, anyone can fill that order. Uh, but the person that fills that order order, the solver that fills that order, they're only gonna get paid back if they filled it correctly. Like they're not gonna get paid back if uh if they like charge the user five dollars or something like that.

Um and so what would happen is then somebody else would fill that order and charge them a dollar, and the user would actually just get extra money, right? So the the solver there's no um the protocol verifies that the solver did what the user instructed them to do before it would release funds back to that solver themselves. Um and so really we've designed this where there are no trust assumptions, the solver system is completely permissionless, anyone can be a solver. And actually, I want to use your question to launch into like one other thing, which is one of the critiques of the system is that solvers are centralized, that there's no competition uh amongst these solvers, and that's just not true. Like we have all our data to show that there is heavy, heavy competition.

There's like four or five guys that are really quite equal in the solver network, and then a long tail of other people that are also competing in their own um niche ways. So yeah, no trust assumption there. So here. Hello. Do we have enough solvers in the ecosystem? And if not, how can we bring them more? And taking a add on to this, why would they, if solving is a zero sum game inevitably? So the zero sum game part is interesting.

Well, we'll come back to that. But we do have heavy, I I actually should have this slide. It'll take me too long to pull it up on my uh Twitter, but I can show you guys some data about the competition we have and the like on the off the blockchain competition we have at the solver level, and it's really good, it's better than I expected. The fun story about how we grew this solver network is like a cross did run a solver, but the other people that joined are grassroots folks from our community. It's honestly pretty wild, and it worked better than I expected. And it's truly just a function of people responding to economic incentives, um, where um being a solver on a cross is profitable, and people started doing it because it was profitable.

Um there's actually no extra incentives either. We're not like giving them token emissions or anything like that. It truly is just uh an open marketplace. So I there's a much more nuanced question, actually, something we're working on that I think is very cool to um safeguard the fact that uh solvers will remain diversified. Uh but it hasn't been a problem to date, and I do think competitive forces are gonna keep it uh pretty competitive. There is fear that like we'll pick on winter mute because winter mute likes gets picked on. There's fear that like winter mute could just do it better than everybody else, and then there's kind of centralization.

The way we ultimately want to design kind of the auction that will distribute these intents, I think we can design around that so that winter mute actually so it's just a very healthy competition, and again, our data has been supportive of that so far. Anyone else? Hi, thanks. Um, are you only transferring the same asset from one chain to another? Or are you looking on a simple level?

Would you be able to compete? Um with curve, for example. So, for example, uh I have USDT and I want to I don't want to move to USDC either on the same chain or on a different chain, you know. Uh and then the next question would you be able to be able to actually start start swapping like completely different assets and then you're a market maker? Yeah. It's a good question, it's nuanced. We actually today, like our system handles bridged USDC and native USDC and kind of can swap between them, um, which uh so we yes, we can handle that. Could we extend it to support USDT and USDC?

Probably, right? Like, yes. The standard we built with Uniswap, this ERC7683 standard, very much supports swapping between completely different assets. And you have to think of this from like Uniswap Vision with what they want to do with Uniswap X, which would be the intent is I have asset A on chain A or asset X on chain A, and I want asset Y on chain B. I this is again a little bit more nuanced. I think that a cross will likely stay focused on same asset bridging or like stablecoin to stable coin bridging.

I think we're gonna stay focused on same asset bridging for a while because I think it is actually a different problem set when you start swapping between frogcoin and ETH between chains. But the concepts completely apply, and Uniswap X is working on applying them for swapping that way. It's the last question, so we are out of questions. Okay, you guys come talk after. But yeah, thanks guys.

Related talks