[Solo] Decentralising Intent Markets with Sealed-Bid Auctions
BUIDL Asia 2025 · 24 Jun 2025 · 10:36
Fig, co-founder of Squid, explains how sealed-bid auctions can decentralise intent-based cross-chain swaps. He compares today's centralised request-for-quote systems and Dutch auctions, then describes the approach from a paper written with Fairblock: solvers submit encrypted bids, and threshold identity-based encryption reveals them together, giving fairer prices, open solver participation and no quote expiry.
Topics
From BUIDL Asia 2025, hosted by Kryptoplanet.
Transcript
[Music] Hey guys, good to see you. Um, my name is Fig, one of the co-founders of Squid. Um, we're a project that does crosschain swaps, um, crosschain contract calls, and we have an API that lets you swap between about 85 chains in one click, and we have an app that lets you swap between tens of thousands of tokens. Um, I'm going to be talking about a pretty technical thing. It's a mechanism that we're using to further decentralize the way that we do crosschain swaps. And it's called um sealed bid auctions. Um, we released a paper on Valentine's Day.
I noticed that's what I was doing on Valentine's Day. I was I was here in Korea by myself and releasing a cryptography paper. Um but we released it then and uh it's something that I'm working on with a project called Fairblock. They're a cosmos chain. Um I'm from Squid and we're thinking about um implementing this in our crosschain swaps at the moment but want to share just how it all works. So the background is that intents are taking over the world. They're a swap mechanism which is extremely efficient. Cal Swap and UniS swap X are crushing it on the single chain swaps. Essentially allows you to um directly peer-to-peer swap a token with a market maker. So rather than
needing to rely on onchain uh math or um other kind of security, smart contracts, all these kinds of things, you literally just send a token to the market maker and they send a token back. Extremely simple. and you move a lot of the logic offchain, but try to keep all the security um assumptions on chain um that you need. And then in crosschain, it's really efficient because you don't have to wait for finality times across chain. It's instant. You have this um really amazing ability to batch transactions as well. So when you're uh say you want to bridge USDC from one chain to another, rather than needing to verify every single message, you can say batch 100 users USDC transfers across chain and
then in one single crosschain message, you can verify all of them at once. So it's become really uh really successful and I think it's going to be a big part of the future of crypto, finance, um all of DeFi with an intent. The way it works is say I want to swap ETH to BNB. I declare that on the source chain and then a solver um which is often just a traditional market maker. They'll provide a quote for how much BNB they would give you. Then the user accepts this quote maybe on the front end by locking in some ETH on the source chain and then the solver uh sees that you've locked your ETH and provides B&B to you directly on the destination chain. Um
and then lastly we have settlement which a bunch of different projects have their own mechanisms but um the ETH is essentially unlocked and sent to the market maker. And the way you get pricing for these at the moment is generally quite centralized. Um the easiest way is an offchain request for quote. So when you go to a front end and you get a quote, you're literally just sending a request to a centralized back end somewhere and then it gets requests from um all these different market makers to see who gives the best price. And the best quote is chosen by the back end, sends back to the user and the user can accept it if they want, but generally they don't know
how the price was arrived at and it's very centralized. Dutch auctions are a way that we've tried to decentralize them, but they're generally quite slow. The way a Dutch auction works is you set a price quite high and then every block or every so often the price drops and then once the price is low enough, uh, someone will accept this order. Um, more decentralized but quite slow, worse user experience. Um, yeah. Yeah. Yeah. So, some of the problems with with these two methods, um, the sensor uh sensor of RFQS is a big thing.
Um, and it's permissioned the way that market makers can participate in the protocol. You have to have a deal or at least have some kind of interaction with the offchain uh RFQ server. And in Dutch auctions, there's issues with MEV. And also, it's not as nice for market makers to have to bid in this way. I think it's much nicer for them to just choose the price they're willing to give and not have to think about the like game theory of of like the onchain uh onchain auctions. Another big issue just practically for developers is if you want to build um a variable amount in the intent itself um you want some kind of uh RFQ will not
give you this because you can't call a backend API halfway through a smart contract call. Take this example where I want to swap arrow on um base for say soul. The first step of that route is usually going to be a swap on aerodrome's um uh sorry vevel on on base I should say on Veradrome on their AMM and so you will never find out you won't know the amount you're going to get out of that first swap until after you've actually executed it on chain and then the second step if you're using RFQ you can't get a quote for RFQ using the output of the first swap until you've you can't do that sort of mid mid swap
on chain. So you have this this issue that it's more difficult to compose um other D5 protocols with these intents if you have to have off-chain services running this way. Um it extends more to projects like crosschain yield ETFs these like if you want to build some kind of auto automated system just on chain then you it's much much more difficult to call external APIs. The fairness and transparency issues we've sort of covered, but um actually no, we already covered them. It's a duplicate slide. Expiry times. Um this is actually a bigger problem than you'd think. Like when a and market maker
gives a quote, they might hold that price for about 30 seconds. And if the user um submits at say 35 seconds after you they got the quote, it will fail because say the market maker gives the a price of um press on ETH. They're not willing to hold that price for very long. They're essentially giving an option to them to the user to like buy ETH at a certain price for up to 30 seconds. And then that flow can be like targeted by other market makers to maybe maybe they like are getting a quote every second. And if ETH uh does move against the market maker, like they snap up this order and then they arbitrage it quickly, it's it means that you have wider pricing um than if you have no expiry time. Um so ideally we can remove
expiry times as well. So the solution that we've come up with is using sealed bid auctions. Um what are sealed bid auctions? It's where you create an auction. Um, say I want to swap ETH to Avac. I lock up some ETH. The market makers need to provide different quotes for AVAC and whoever the best one will get the uh get the um get the intent. They can fill it. But the trick here is that they encrypt their bids before submitting. So because on blockchains everything is usually public, if their bids were public, then another market maker could copy them or maybe they would bid a
little bit lower because they think they can get away with it and then bid higher if some only if someone beats them. In this case, everyone just chooses the best price they can and then they we encrypt all of them at once at the end and the winner is chosen. And you can check out the details in the paper, but there's a lot more um there's actually some research that's been done that these are the optimal way to arrive at a price in intent. Um we think the best place to put it is the user will escrow their funds on the source chain or even if it's single chain, they'll escrow their funds and then once that's happened, we run a decentralized sealed bid auction.
Um the solvers participate in that. your solvers, the winning solver will fill it and then anyone can settle the transaction later. The way that we do these sealed bid auctions is with threshold identity based encryption. And the trick here is that you give you you do it a bit like a threshold signature scheme where you you break up private keys into different shares and then everyone has a key which only together can they sign things. But with identity based encryption, you create a unique private key for each auction. So it means we can reuse the same validator set over and over and over. We can run as many auctions as we
like and every new auction has a new ID and then we combine that ID with all the validators. Um and then if enough of them agree, we can decrypt all of the orders together. um just makes it it's a very simple uh very low um uh low what's the word not much compute needed for this so it's um more efficient than using like fully homorphic encryption or zks or but we could extend it with uh tees uh fully homeomorphic encryption the issue might be that the user's intent is still public the um uh solvers bids are public after the
auction is completed. So you could extend it with that and we talked about this in the paper but we think that just making a fair market is really the biggest um upside here and we can get better prices for users um more open participation from different solvers. This is our Twitters. That's me, Squid, and Fairblock on the right. And uh yeah, thanks for having me.
Related talks
- Building the biggest cross-chain DEX as an anon
- Defi Panel with @MariiaYatskovs2, @NourHaridy, @0xmikko_eth, @sarangparikh22 and @clemlak
- Building the Next Generation of DeFi Applications
- Making DeFi Truly Cross-Chain
- Exploring various approaches to achieve effective decentralization for Intent-Based protocols
- ETHWarsaw 2023: Connor Howe, Enso Finance - DeFi Intents: From a solver
- How to Win as a DEX — Markus, CEO Propellerheads
- Why All DAOs Should Use CowSwap and How to Use it - Anna George
- Building a Cross-Chain DEX with Chain Abstraction & Intents
