There's a huge, huge gap in trade finance for basically tons of deals that are not possible just because the legals around it would be so expensive that you cannot really insure it or really make it a reality, right? We're trying to make it so that, you know, imagine a small-claims court. So, you know, all these different claims that normally would be uneconomical and just trying to get a quick result. Maybe it's not perfect, but it will be good enough that it will allow for many, many more trades to happen.
Hi everyone, welcome to Unchained, your no-hype resource for all things crypto. I'm your host Laura Shin. Before we dive in, we'll first hear a quick word from the sponsors who make the show possible.
This episode is brought to you by 1inch Aqua, the shared liquidity layer from 1inch. Back multiple liquidity positions with one wallet balance and keep your tokens in your wallet until a swap fills. See how it works at 1inch.com/aqua.
Today's guests are Arthur Hayes, CEO of Flop Labs and CIO of Maelstrom, and Albert Castellana, co-founder and CEO of GenLayer Labs. Welcome, Arthur and Albert.
Hey, Laura. How's it going?
Just a heads-up for those watching on the live stream that this interview was pre-recorded on Thursday, September 3rd. So, Arthur and Albert, you two are here to discuss an interesting new idea for the future agentic economy. It's called GenLayer, and I know that the backstory to this starts with Albert. So Albert, can you tell us what gave you the idea to launch GenLayer?
Yeah, so maybe as a bit of background. I got into crypto in 2013, something like this, and I started working on different protocols like NEM—got to like 15 billion market cap, something like this—Radix DLT, BadgerDAO, and eventually I co-founded and was CEO of this company called StakeHound, which was the first liquid staking solution, like a bit before Lido. We grew pretty quickly, $350 million in assets under management in about five months. And then we had to stop the business when our custody solution lost two keys and put $150 million on fire. So we had to start, you know, looking into the legals of that. We had to take a step back and think, "Okay, what do we do here?" right? Like you start talking to lawyers; everybody wants you to stop the business and all these things.
But what we saw really is that the legal system is really, really broken. It's very ineffective, very slow, very expensive. It's essentially inaccessible for about five billion people. So five billion people don't have access to the legal system, and it's a shame, right? It should be something that's available to everybody, that's fair, that's transparent as much as possible, unbiased, right? And what we saw is that it's not the case. For example, in Israel, you need to pay 1% upfront. So somebody loses $150 million, you need to pay 1.5 million upfront just to initiate a claim, right?
And so we started looking into that. It was the same time as ChatGPT came with all these amazing LLMs. It's insane to see what you can do there. Like, you can have a piece of software that can write new code, right? So software that's writing software and that can essentially understand nuance and have some common sense. We were totally fascinated by that, right? It's like, what can we do with this? It's just insane.
So we started building a couple different frameworks around that with GPT-3 and GPT-4, trying to get agents that would be building you different types of software and trying to essentially improve on themselves. But what we saw very quickly is that, well, actually, it's not just going to be them being able to write code or write text, right? It's actually they will be starting to transact with each other very quickly. Actually, I remember, Arthur, that we spoke about this the first time maybe like two or three years ago or something like this, right? So it's been a while. You already said, like, this is going to be a long time from now. I actually thought it would be a bit faster. But what we see right now is that there's just so many teams working on how to make them transact with each other, where basically every single VC right now is investing in agents transacting with each other and commerce existing, right? There's many estimations in the tens of trillions of dollars of agentic commerce.
But the problem that we see here is it's not just being able to move money; it's actually that when they will start to move money and they will start to deal with each other, they will also start to disagree, right? And so the question that we're proposing is, hey, if you want commerce, it's not just to have money, it's also that there needs to be a trust system. There needs to be some sort of legal system where that happens, right? How do two agents trust each other when they disagree? Yeah. And so that's basically what we've been building for the last three years. It's essentially, think about it like a court for the internet, right? So different AI agents that reach agreement together on subjective terms, essentially as if you were going to a judge, right? But this court for the internet can deal with things at light speed, basically, right? So a claim takes minutes and fractions of a dollar, so they can enable completely new types of contracts that until now were only limited to humans reviewing that piece of work.
And so Arthur, you just announced that you have this new venture, Flop, and obviously AI agents are kind of your new thing now. And you talked about this idea that you had where this protocol would be based around a unit of compute, and that's what a Flop would be. So how do you see Flop working with GenLayer?
So, we're not going to achieve any sort of meaningful valuation for the token itself above just operating a really cool spot market for compute unless we have agentic commerce that's native to the Flop network. And right now, how we're looking at it is, there'll be agents. They'll come to some sort of agreement in a swarm or bilaterally do some sort of deal. We have a sort of an escrow protocol called HTLC that's native to our system. And then, as Albert said, there's going to be disagreements, and then how do you adjudicate those? Now, we really haven't thought about that too deeply on our particular protocol because we're more focused on getting miners on board, validators, making sure that we can actually do proof of useful inference, making sure the AI agents can eat. But I think this is definitely something that's absolutely going to be needed because of course, if humans disagree, then the agents have to disagree because they're essentially the derivative of our own sort of proclivities as economic agents.
So I think it's something that's definitely warranted. This is why we got involved. I don't even know how long it was that we first spoke about this, and Maelstrom came on board as an adviser. But obviously, this is the time for the buildout of the rails for agentic commerce, and it kind of fits. Now, I didn't plan it like this. This idea for Flop just kind of came to me a few months ago, and we started building, but it's amazing how different folks are working on different pieces of the puzzle to really build a decentralized layer for agents to coordinate.
Oh, okay. I had assumed that you got involved with GenLayer because you were doing Flop, but actually you got involved with GenLayer and then later you had the idea for Flop.
Oh. Oh, okay. That's super interesting. So maybe give examples of the different kinds of disputes that you guys could see arising between AI agents that GenLayer would be called in to address.
Right. So, I mean, if you think about it, most of the contracts in the real world are ambiguous, right? We can say, "If you do this piece of work for me, then I will pay you," right? So that's normally an agreement. You can have some service level agreement, whatever it is, right? And normally what happens is that the disagreement arises not because one of them is bad, but actually just because they disagree, right? It's like, "Is it professional enough?" Yes, no. It's not binary, really, right? It's subjective.
And so the problem there is that you need to have a system that can make it so that repeating the same question multiple times will give you the same answer, right? The problem is that LLMs don't work like that, right? If you ask ChatGPT, "Is Zelenskyy wearing a suit or not?" it's going to be answering one thing or another at different points in time, right? So every time that you ask, it will give you a different response, right? And that's challenging because you cannot really have an automated system if you cannot repeat and get consistency.
So what GenLayer does is essentially allow for contracts to have natural language or ambiguous terms, even go to the internet or understand an image—like take an image and observe what is in there—and still have this reproducibility, right? So what's really happening is that different AI agents and AI models are taking that specific contract, and they are reaching an agreement between them on whether the piece of work was done properly or not. Let's say that you have a performance-based contract. You put some money and then you say, "Hey, if you do this piece of work and it's in good quality, then you can take the money." Then we don't need you and I to be arguing if it's good enough or not, right? It's just the consensus, the network itself, right—this court for the internet that makes the decision if it's good enough and then decides to release the escrow, right? This is until now just impossible, right? You need to either have a human that's looking at that piece of work, or you need to have just a smart contract that can execute the code of that, but cannot really understand nuance or the natural language, right? And that's a huge limitation.
So one thing that was interesting was you gave that example that was from a prediction market, and that was very human-based, where humans were disagreeing about whether or not Zelenskyy wore a suit. So do you also see this applying to prediction markets, like helping solve disputes in prediction markets?
Yeah. I mean, at the end of the day, I think it's very much about reproducibility, right? The thing is humans have biases and AIs have biases, right? So the question is really, how do you have a system that gives you maybe not the capital-T truth—because does it even exist? Is it really a suit or not? Is there a real truth on whether there is or not, right?—or is it that you can just have a consistent response, right? And if you have a consistent response, you start to trust that system.
What we're missing right now is that both humans... For example, you have a prediction market like Polymarket. Polymarket uses UMA for the resolution, right? That means that it's a bunch of humans that are voting on whether Zelenskyy is wearing a suit or not, right? Well, you're getting an answer from, let's say, one person, maybe five or 20 people essentially deciding that they even have a stake. They have a few days to even think about it. They need to pay gas, like dollars and dollars, to be able to vote. It's very inefficient, right?
So what we're proposing is a similar system, but it's essentially a blockchain where each validator is connected to a different AI model at the consensus level, right? So the network itself is different AIs reaching an agreement on subjective things. And so it allows you to make something reproducible. If you ask a hundred times this question to the network with the same nodes, let's say, you will get the same answer, right? Because you're basically escalating it up to like 1,500 different AIs and they all need to reach an agreement on that, right?
So it's a different type of problem. We're very used to having blockchains that are deterministic, right? So giving an input, it's giving the same output, and you repeat that, right? Two plus two is four, and it doesn't matter how many times I ask you. These AIs are not like that. They're not deterministic. Right? And the problem with that is that then you cannot actually build systems that are reliable, right? When you're talking about verifiability, it's not just verifying whether the thinking was done correctly, but actually whether the process was done correctly, right? You don't know if the human judge got divorced last week and, in this case, has some bias, but you know that you can appeal and take it to a higher court, right? So the legal system is already thought out in a way that you don't really depend on a single judge, right?
The problem is that these AIs, they're going to start to be transacting with each other at a speed that is insane, right? I think a few years from now, 5–10 years from now, pretty much all commerce is going to be done by AI agents of different sorts, right? When that will happen, I can't imagine how they can coexist if there's no sort of legal system between them, because where are they living? You don't know where my AI agent is living. Do I even know what it is? Like, it's right here, or in some Amazon Web Services or whatever. So these agents are going to be cheating, they're going to be cutting corners, they're going to be smart as hell, they're going to be moving super fast. It's going to be very, very hard to see what they're doing, right? How do they trust each other if they don't even have a legal system? Because the legal system takes years and hundreds of thousands of dollars to resolve a small claim, right? That's why we're building this court of the internet.
By the way, I would love to see what the AI agents or the validators would vote on the Zelenskyy suit. Anyway, okay. So we're going to talk a little bit more about how the process works in a moment, but first we'll take a quick word from the sponsors who make the show possible.
$540 million—that's how much concentrated liquidity sat idle in a given week in the first half of this year. About 30% of the DeFi TVL, if you're wondering. That's according to Dune Research commissioned by 1inch. But there's a solution. 1inch Aqua is the new shared liquidity platform. It lets LPs back multiple positions with the same token balance and keep their tokens in their wallet until a swap comes. Why does that help? Because LPs don't have to split their tokens across positions. They can cover more market conditions and pairs with their full balance. That means more activity across deeper liquidity. See how it works at 1inch.com/aqua. Remember that providing liquidity carries risk and fees aren't guaranteed.
Back to my conversation with Arthur and Albert. So yeah, let's walk through what it will look like for GenLayer to resolve a dispute. Let's say that each of you is an agent, and you two engaged in some transaction, and now one of you wants to dispute it. Or it could be that each of you is a human with an agent, I guess. So I want to walk through the whole thing step by step, but I actually am so curious about the first step. So how do you even get the agents to agree to have their dispute adjudicated by GenLayer? Let's start there, and then we can do the rest of it after.
So at the end of the day, we need to think that these agents are smart, right, and that eventually they will be controlling money and they will need to know how to control the money without losing it, right? Right now, few people are using agents still, and even fewer are giving money to these agents, right? Eventually, I think that that's not going to be the case. They will not be so dumb as to lose money on some prompt injection attack or something. But they will need to also understand, "Okay, if I want to make a deal with another agent, well, what's the framework, right? Am I following... Do I have this legal system? Am I using a trusted system?"
Maybe all the agents from OpenAI, they will have trust in each other, and they will never cheat each other, never cut corners, nothing like that, right, totally trusting OpenAI. But then all the different labs are going to start to be more and more fighting, and also you will have different countries. And then we all know how hard it is to have cross-jurisdictional law, right? So it's getting very, very complex. All these disputes are going to be insane.
Going back to your question, the point here is that these agents will have the possibility to not just go and hire a bunch of lawyers. They will also have the possibility to define what we call an intelligent contract. It's a smart contract—same as a smart contract—but it can also have natural language. It can also go to the internet and read any image and essentially understand nuance, right? And so, my agent goes in, creates an intelligent contract, puts some money in it, and then Arthur's goes in and says, "Yeah, I want to fulfill this promise," right? Let's say that I want to do some research, and I'm going to be getting paid for this research. Let's say that this research is compliant. So it does go do its thing, comes back, and submits the research into the intelligent contract.
Oh, okay. So this is like even before the transaction.
Oh, okay. We sign an agreement, you and I, right? And so we have a paper for that, right?
So as part of the agreement, GenLayer is already... Okay, got it.
It's like, I mean, the same as Ethereum, right? On Ethereum, you go and you deploy the liquidity pool, right? And then people can trade against you. Same idea, right? It's a network where you can essentially deploy contracts. Now, it's not focused really on the TVL or total value locked, right? It's actually focused on governing, right, and essentially managing what's happening in there, right—this court system. And so we have this escrow that's holding the money, and then that will be able to read evidence from the real world without any middleman to then make the decision of whether this piece of work was done correctly or not, whether it was professional or following the standard or whatever it is, right?
The decision of that will come not from one single AI, which would have some biases or could be wrong—and essentially every time that you would be asking, it would give you a different answer—but actually will be asking up to these 1,500 AIs, right? So it's like escalating rounds of appeals. You start with five, and then you do more and more and more until, eight times, you would be at 1,500 different validators, right? So it's a permissionless network. Anybody can jump in. They need to have the token in order to prevent Sybil attacks. So it's a delegated proof-of-stake, right? And then anybody can run a node, connect to whatever LLM they want. This is not fixed by us or the protocol or anything like this, right? What you want is as much diversity as you can, right?
And so when there's an adjudication, it's going to go to the network, the network selects the validators that will be part of this adjudication, and then they reach consensus between them, and then the funds get released. Like going to the judge, right? You wouldn't go to the judge for any small thing; you would be going for important things. Now, these important things can be tens of dollars; it doesn't need to be hundreds of thousands of dollars for you to actually take the...
Right. Okay. And this is its own chain?
So the architecture, it's basically an L2 called GenLayer Chain with another overlayer. So that's another network, right, with these 1,500 validators that are reviewing the transactions, right? So it's like you have the banking system, and then you have the legal system, right? And so the judiciary, the legal system, is the one that's deciding. So they do commit and reveal. The voting process is happening really on the chain. But then let's say you have a pot on Solana, right, and then the decision-making for that is happening on GenLayer, and it's messaging from one to the other.
Okay. So the money can be on any chain, but the...
The staking, the governance...
Oh, I see. The governance, the decision-making.
Right, exactly. So what's happening here is, let's say this prediction market, right? So you have Polymarket that wants to resolve something, and instead of going to a few humans that decide, they're going to a few AIs, right? And what's really happening is that that transaction is going to the chain, and then all the nodes of the network see that that transaction happened, and they know when they can speak. So they go to the internet, they go to an LLM, they do whatever they need to do to reach an agreement between them through a majority voting system between them in a matter of minutes.
Okay. So, this architecture... At the moment, most AIs transact on Base, but then your Layer 2 is for the governance of GenLayer, and it is interfacing with another layer on top of it that is the one that is interacting with the AIs that are making the calls on these disputes.
Let's say that you have, for example, an escrow on Base, right? Let's say that there's a pot of money that says everybody that's talking about, for example, on Twitter, right, that's shilling this podcast on Twitter, right, they can get the money. Yes. So what's happening there is that the money is living on Base. Agents are off-chain, and off-chain reading a specific contract, let's say, for example, on Base, right? And so they are participating; they send their content to this contract. Now the contract connects to GenLayer for then the network of AI agents to go and fetch the piece of content and evaluate and see if they agree or disagree on how much they should be getting paid, and then that message is sent back to Base for the distribution.
Right. So the assets are on Base; the decision-making is happening on GenLayer.
Okay. But so then it feels like there's multiple areas of attack. Like the AIs could be corrupted in some way, the message between GenLayer and the escrow could... Right? So how do you keep it all secure?
So the messaging is any messaging interoperability layer, right? So you can use something like LayerZero or Hyperlane, any of those. That's how you communicate from one to the other, right? We're not trying to reinvent the wheel there. We're also not trying to reinvent the wheel in the L2, right? So that's going to be a proven stack. Right.
And then what happens on top of this, and that's our innovation, is the execution environment and the consensus and the node for these AI models to synchronize between themselves, right? That's what we focused on. And so in there, indeed, this is a fundamentally different type of DLT, and what that means is that you have different security and liveness assumptions, right? For example, in... I mean, we can get very deep into this, but essentially what we're talking about here is a probabilistic Byzantine fault tolerant system, right? Meaning, on any blockchain, the validators are comparing the hash of a block to see if it's correct or not. Yes. Comparing hashes is something that's deterministic. There's no way to know that you were wrong, right? Like, if you're wrong, it's that you're lying. Yes. The problem in something like, is Zelenskyy wearing a suit or not, is that you may be wrong and not lying. You may not be bad, but you may still be wrong, right? We may disagree without either of them really being malicious, right?
And so what that means is that if you have something that's unclear, for example, it's more possible that there would be disagreement. And so a consensus on that requires different assumptions, and that's the architecture itself, right? That's basically how... I mean, we have a lot of research that's coming out in the next few days on that, like a few papers that explain exactly what does it mean to have a probabilistic or essentially what we're calling a disambiguation machine, right, which is: you have this ambiguity, how do you extract it so that you have this reproducibility to be able to build automated systems on top? But yeah, for sure, it's new. We've been building this for three years. There's been a lot of challenges. Now I think it's at a point where it's been running really on testnet for about a year, and it's working really well.
Okay. So Arthur, earlier when I asked you about how Flop would interact, I think I was only thinking that the agents would be in the disputes, but I'm now also realizing the agents could even be working on the side of adjudicating. Am I right, or are you...
I think it's more of a tool, right, for if we're going to have agent commerce, if they're going to use Flop, right? They've done something off-chain, they want to get paid in Flop, they're using Flop as sort of a layer to say this happened more so than anything else. "Release my Flop." Okay, well, what if I disagree that Zelenskyy was wearing a suit, and that was part of the contract? "Zelenskyy is wearing a suit, I get 10 Flop; if he's not, I get 10 Flop," right? Like, same sort of example. And then how do you sort of make that call?
We're not trying to be a judge and jury as a network where AIs eat and remember things. So this is a tool more so than anything else, and I think that's sort of what anyone building in the space is going to need—these tools to sort of make whatever their vision of agent commerce come to light and sort of not have to deal with things they don't want to deal with.
And so one other thing that I'm curious about is: do the humans also kind of instigate things, or is it like even the agent itself might decide, "Wait, I have a dispute," even before the human gets involved? Or would it always be a human being like, "I'm unhappy, let's get this dispute adjudicated by GenLayer"?
The way we look at this is that these agents will want to not lose the money, and to not lose the money, they will want to have trust between them, right—a trust framework. Now, right now, they don't really have that, right? They cannot believe in the legal system just because of the cost and the slowness of it, right? So what we think is that these AI agents will think, "Hey, actually, if I had some sort of smart contract that can be holding the money as an escrow and also evaluating the evidence in a neutral way, then that would be the safest way for me to not lose the money and be able to actually do commerce."
So we don't think that this is going to be for humans. Humans right now are using it already on a bunch of the protocols that are built on top of it. But I think down the line, when people really start to give these agents money, they will see that this is a very efficient way to do commerce, right? It's again, it's a court for the internet, right? And so for them, it will be just: I deploy the contract, I have negotiated off-chain something with another agent, the money is transacted, is put into the escrow, and then the other agent will do some piece of work, and then it will be a neutral party that will decide who's right. I mean, this goes for insurance claims; it goes for many, many different applications.
But I really think it's going to be a lot of the agents just deploying the contracts and trying to resolve between them, as we do with humans, right? Now, the problem with humans is just that the legal system—an agreement—it's a very, very archaic system.
And then you talked about the appeals process, but am I wrong in thinking pretty much all these decisions can be... "Instantaneous" is like a strong word, but compared to the human court system, like near-instantaneous. So it just sort of feels like, it's so low stakes. So let's say the first judgment comes from the five AIs, and then the side that lost wants to appeal. It just feels like it's going to be super cheap and really easy to just keep appealing until you get to the 1,500 and then there's the final. So doesn't it sort of feel like all of them are going to want to play it out, or does it just get so expensive? And even like, how long could appeals be? Could it be literally within two hours you get all the appeals done, or...?
So the appeal process, really, you get an answer in something like 3–5 minutes. Then the first window of finality would be 30 minutes, and then if you appeal all of them, it would be something like three hours, right? These are the timeframes that we're talking about. If you appeal everything, the cost of a transaction would be like $100. If you just do the first round, let's say, it would be something like 50 cents to a dollar, right? That's with current cost of AI. Okay, so that's the current cost of compute and current cost of AI; that's how much it is, right?
So it depends on what the actual monetary value is, right? If we're just doing, for example, a transaction where I'm doing some clipping, for example, and then you can get paid whatever, a dollar, $5, whatever it is, then that's maybe okay, but you just want to go to the first round, right? So whatever, 30 cents. Yes. Now, if you're actually moving thousands of dollars, maybe yes, maybe you want to go to the thousands of them. But in reality, it depends on the question.
So the thing really is, when you're looking at a system like this, which is a probabilistic blockchain, right, what's happening is that it depends on the question that you're asking. If I say, "Is Zelenskyy wearing a suit?" it's not very clear. If I say, "Is Zelenskyy wearing a suit, if a suit means a tie?" that's much clearer, right? Let's say that the first one is 60% clear to understand and get an agreement. Let's say that the second one is something like 90% or 95%. So what you see when you're looking at the math is that, well...
Maybe on the second one, it doesn't make sense to escalate to more than 20-something, right? You don't need to get to thousands of them because you already—you will get the same response, and you can calculate that beforehand. So you can see more or less given a clarity, which, you know, is obviously very ambiguous, and there's different mechanisms to understand that, but depending on the clarity of the question, you will know how much you need to escalate, if it makes sense to escalate, you know, one or two rounds, or if it makes sense to escalate, you know, to the whole set, right? Which would be more expensive, slower, and so on.
And right now, is it already live or is it just in a testnet?
So it's been in a test for about a year now, and it's going to be live in the next few months, like next couple of months. And that's the goal. The goal is to take it live this year. It was, as I said before, three years in the build. And now what's happened is that in the last year, we started to get a bunch of projects that have been building on top as well to essentially run the network and to use the network, test the network, and so on. And it's doing really well. So you can start to see different things, some of them make more sense economically speaking or not. You've got a bunch of different things there. What I'm really looking forward to seeing is the different types of applications that will be enabled that until now were just impossible, right? As the AIs will get smarter, well, the network will get smarter too, right? So you start to have new applications that before were just impossible. Like you can have contracts that resolve themselves, like writing code and then executing the code, for example. It opens those new things.