[ETH Seoul 2024] Anoma: Ethereum’s Intent Machine by Adrian Brink

ETH Seoul 2024 · 12 Apr 2024 · 24:24

Adrian Brink, co-founder of Anoma, explains intent machines and why he expects future abstractions to sit above virtual machines. He contrasts transactions with declarative intents, argues for interfaces rather than intermediaries, and presents the Anoma Resource Machine as a generalized intent machine that can settle on Ethereum or rollups such as Base and Arbitrum. The talk covers intent-centric dapps, composability and cross-rollup liquidity.

Speakers

Topics

From ETH Seoul 2024, hosted by Kryptoplanet.

Transcript

hello everyone welcome um today I'd like to talk to you about uh ethereum's intent machine or intent machines for ethereum effectively and why intent machines matter what intent machines are and why I think going forward most abstractions will be at the level of intent machines rather than at the level of EMS alide they will they're building intent machines common abstractions on top of VMS such as many different rollups or many different evm based rollups one sec there we go okay to start off I'd like to quickly go through S of what is a VM what is an IM what are the differences and why does it matter so AVM is fundamentally what we know from

existing infrastructure so for example the theorem virtual machine that's a virtual machine that's a VM it has an instruction set it's a program counter it has different level of memory that programs can address and all the programs are run sequentially within this VM um so as I said this is sort of the evm is a prototypical example of a virtual machine Al over the years there have been many advances or there have been many different attempts to build kind of different VMS um for example you have now the salana virtual machine you have the Nia virtual machine right you have many of these different virtual machines but so especially within um our ecosystem here the predominant VM that's actually deployed in practice given on ethereum main chain as well as on most of the rollups is really an

evm so okay given that this is roughly what we know about this is a VM and this is what s of the model that we currently have currently everyone is directly programming against these virtual machines right like when you write a smart contract you directly deploy one of these programs to run on the etherum virtual machine um this has a bunch of um sort of consequences that I'll will talk to about in a bit but first let's go into what is an intent machine or what is an IM am um and an IM am really takes a batch of intents computes possible valid State Transitions and then selects one of them as According to some criteria um to update the system State this is important from the perspective that most users don't actually have transactions when you live

in a world where the only thing you do is simple transfers then yes you have a transaction because you're a fully fledged thing that you can immediately settle against the existing state however as soon as you want to do something more complex for example trade uh you don't have a transaction anymore you have an intent you have a partial thing you have I have a to B but I don't have B to a an intent is not something that I can execute on chain as is I need to gather together a bunch of intents combine them potentially and then sort of uh settle the net State changes on chain right and really 90% of all interactions on blockchains are intense um intents are simple trading intents for example limit order is just an intent but even something as complex as

a rollup that's still an intent-based system because when you think of a rollup as transition someone has an intent to go from A to B within the rollup someone else has B to C um what a rollup does it collapses the compute into a to c um so a lot of the systems that we currently building that require kind party Discovery or that require to interactions with other parties in the ecosystem are actually intent-based systems um and so an intent machine is specifically is a it's an abstraction designed to handle the fact that most users actually have intents and not transactions directly um and so the intent machine oh actually the other important

thing to note here is uh many people will talk about intents um and they will say well aren't intents just limit orders and really here the answer is well all limit orders are intents but not all intents are limit orders uh intents are the generalized uh intents are generalized intents really and limit orders are very specific subset of intents um yeah so one example I'd like to talk to you about today is the anormal resource machine uh which is really the first intent machine first generalized intent machine um and I'd like to start off with saying there's a big difference between interfaces and intermediaries and aoma is an interface it is not an intermediary um and I think I

yeah there so intermediaries are actors on a network that can extract rent that add to your security model they're generally a party that you send things to that you interact with um and they may very well be decentralized right like an intermediary is even a network um or a multis it's always like someone you interact with um and generally we should avoid adding unnecessary intermediaries uh you you shouldn't just be an intermediary for the sake of being an intermediary because in almost all cases you're going to add latency as well as complexity and in most cases you're going to also add extra security constraints on the system

um and I think yeah so for example many bridges in the ecosystem are currently intermediaries they are not interfaces they are someone you interact with someone who you now have to consider within new security models um as an example many of the current Bridges to um sort of l2s end up being intermediaries because I have to fundamentally trust that they operate the bridge correctly and that they don't steal funds for example um and they will charge fees and so on um this actually has a very good analogy in real life which is banks are intermediaries are that they are the traditional intermediaries technically we should all be interacting directly um with the financial system without having to go via Banks I mean it's kind of

weird that in order to send a transfer you have to go via a bank because the bank just settles it somewhere else anyway why can't people directly go to the actual settlement system right um on the other hand we have interfaces and interfaces are just protocols there are sort of common definitions of how we encode data how we send data around but interfaces don't actually take a role in the security I mean like if the interfaces are badly designed they can be used insecurely but an interface cannot get hacked in that sense an interface it's not the intermediary that can be attacked an interface is just it's an architectural definition it's maybe an implementation that everyone is free to use um yes so there simply really code uh you can freely copy them you can Implement them anywhere um and they're

usable by everyone and of the prototypical example for interfaces is tcpip um everyone can use tcpip you do not have to go VI the single Oracle server run in a basement in Virginia in order to use tcpip if two of us in this room want to connect with each other we can do so over TCP without asking any intermediary for permission to do so um another good example here in the blockchain space is actually like something like IBC um um which is again just an interface um yes and so the anoral protocol is it's an interface it's a sort of common abstraction for uh declarative intents um where you have a common abstraction using declarative intents over imperative ordering comput

and storage right like it abstracts away the semantics of whatever underlying virtual machine you want to use or whatever underlying security model you want to use yes uh this is really important to me there's no anoma chain in that sense there's no everyone must use send all intents to this one thing um and so there's also an important technical reason for why this must always be the case because as soon as you're intermediary you're scaling bottleneck right because somewhere we have to exp the intermediary has to expand some amount of compute in order to do work um as in if there were if an noral was intermediary this would become the problem that well now you have to handle this kind of global scale thing where what happens if 100 million people try

to send you their intents so in a normal there's no um intermediary you can just use the protocol as is without having to send it to a specific chain or a specific Bridge um yes we should really think about this more we should be using interfaces not intermediaries um every time you use an intermediary your trust model gets worse and not in the sense that like the intermedia will definitely screw up but in the sense now you have to think of more things uh it's not as easy as like oh I use one thing now I use like 15 different things and I have to understand the combined security model of those um so yes a NOA Universal intent machine for ethereum um and what does this actually mean in practice um Builders can write daps in terms of instead intents instead of

transactions um and really this is the first time uh this is the first sort of generalized intents where instead of writing a specific transaction that has to be included on chain to then get executed users can rather write generalized intents that can do whatever those users actually want them to do right so like one example of an intent again is very very simply it's a limit order a more complex intent is for example me and five friends want to uh participate in a gitcoin dow funding round and so if we submit this as intense rather than as transactions on chain um so as a fun side note this is also way more scalable because intents can be free intents don't have to be actually executed on chain until they're settled so I can for example issue an intent every half a second in order to keep updating a price

point um yes what does this mean as well it's it's just a universal standard for intents and application formats that's it um it does not constrain at all what kind of different intents can be expressed um you should really think of intents as code they're more declarative than just imperative executed program they actually under the hood Define so if you have the current state and then an intend is willing to accept the future State and then there's some amount of code that can sort of verify whether this was adhere to but in the end they're very declarative it's like I'm currently at State a I'd like to be at State B and then someone else can figure out how to get me there this is very different to the model of um transactions where you define the compu that must take place so you still at somewhere in the system solver still

Define the computer that take place but it's not within the intents like as a user I don't have to worry about it so as a user I just say these are my declarative State updates that I'd like to achieve and someone else takes together I don't know 100 different intents combines them and then figures out what is the actual computer in order to satisfy these 100 intents and the really important point is um intense and dabs written uh with this Universal abstraction can be uh ordered and solved um sort of in a noral but actually settled on ethereum or some rollup um like to a large extent this kind of abstraction um generalizes shed sequencing and will help with liquidity

like with a fragmentation of the ecosystem where currently everyone runs these individual VMS and we don't have a good abstraction on top of all of them um with the intent machine we actually start to starting to have an abstraction that can sit on top of base on top of a theorum and as a user or developer I just have to think I'd like to sort of do a specific thing and as a user I can then Define which security model I'd like to execute this in right like I write my intent is capable of being settled in either theorem or base um and the nice thing is you also get composability here which I'll talk about in a little bit oh the really fun thing or the really nice thing is it means that applications can roam uh So currently you like I have an application to be on base I have an application to be on

ethereum I have an application to be on um on I don't know arbitrum right and IUN like these applications are all different and I I have to fundamentally pick which one I want to interact with um with the intent machine I can rather like my like my client my phone can sort of roam across these different security models by just setting like I'd like this to be secured by arbitrum and this because it's a $100,000 transfer I'd like this to be secured by ethereum and I'd like this to be settled on a theory um yes this is sort of the important takeaway intense and depths written with a Nora can be order and solved um and settle on a theory oh yeah right and this sort of the um thing I was speaking about which is you can also settle them within the wider ecosystem

um where yeah this is just going to help with a lot of the fragmentation that we're seeing at the moment so what does this look like in practice um what kind of affordances doesn't Norm give you to build apps um you get permissionless infrastructure and here I mean permissionless circuit thrown around a lot this specifically means there's no Central actor or there's no actor that you have to ask for permission or to use the system uh of course there must be someone that operating note infrastructure but there's not sort of a specific white list you have to apply for in order to use this kind of system you just get permissionless intent infrastructure here um that as long as there's some note operator that operates intent infrastructure on your favorite roll up of choice you can use it

there you get intent level composability and there's actually two parts to this you get intent level composability as well as intent machine composability um and intent level composability very simply means that currently when you interacting with something like cowo for example you have to S of your transaction is specific to that system to um to the application and it's very difficult to compose different interactions even within the same Securities model like within ethereum um at the intent level with intents uh you can have many intents some that like want to solve in cow swop some that want to like participate in giton Dow um and they just compose with each other and oh actually before we go into this you also get Machine level composability which means that as a user you can trade a one sort of one

network the network may be composed of many different security zones but as a user I can sort of treat it via the common abstraction and only have to think about this as a single intent machine with many different settlement zones so I instead of having to think about like well there are these 15 different things in the ecosystem that I like to settle on I can rather think of it in terms of the intent machine and go I just like to interact with the intent machine and I don't actually care what specific settlement systems happen underneath or what these specific settlement systems do you also get information flow control and really this is to say that currently we're living in this world of lots of shared Global state which is not the best case for from sort of privacy or transpar like um user data

protection perspective right like vitalic was talking about this earlier around privacy and with privacy or if we want to have more control over our data it must necessar mean that our data moves towards Edge devices like instead of living on a global blockchain somewhere in the sky it like your data starts living on your phone and when you want to do something with the state or this data on your phone you have to select different to reveal or prove that you own parts of this data right and this is sort of what intents give you because intents move a lot of the compute out of the sort of middle of the network and rather towards Edge devices where like I can um make statements over my local state on the edge of the network and then submit them and as a result you can do things like for example I want to

issue an intent where half the users want to trade privately and the other half want to trade transparently and so the one half that wants to trade privately just test to instead of attaching a PL to X signature they attach to Zer knowledge proof um but this is like not an application Level concern anymore it's a user level concern of what users want to do on the edge devices when they interact with these systems so this is really what we mean here by information flow control um and you get heterogeneous trust you get the capability to as a user developer to decide what kind of trust model do I want to be in and here there's a big difference between the trust model of something like base uh which has very different trust guarantees than main at ethereum right and so here um at the intent level you

get just get to decide what kind of trust model that you care about and maybe you're good with either right like you can say I'm fine on base arbit optimism is remained whatever give me whatever is cheapest or fastest right but maybe for some things you actually care about the hetrogeneous trust model and the intents just make this very obvious let's say it this way so the last bit is what kind of Novel dap can you actually build here with an intense on ethereum there so public signal this is sort of an inverse of Kickstarter where instead of being supply side driven where people propose ideas and then others decide whether they like those ideas it's demand s side driven where all of us in this room can start issuing intents which aren't executed right like intents are just binding commitments

that may be settled in the future so we could each everyone here that likes the idea of there being a Starbucks in this room we can start issuing intents that say well I'm willing to contribute five bucks um if there's a Starbucks in this room and this only actually gets s of settled if we get enough and if then someone is willing to S of issue the inverse intent which is I'm willing to supply a Starbucks pop-up store here because you sort of like gave me 500 bucks to do so uh this is really public signal is about inverting how we want things to get done rather than being supply side driven being demand side driven and I think this can work for a bunch of things um for example I'd like to see um more research funding into nuclear power right like I can issue

this as an intent um if enough people sort of feel the same way um it creates a very clear public signal that there's demand for thing rather than having to hope that someone satisfies uh it by supplying more research here um you can also build something like scale-free money and I I think this is actually really the end game for cryptocurrencies because to a large extent we allowing everyone and their grandmother to start issuing their own monies uh right so scale free money is about the idea that everyone here in this room can individually issue um tokens that represent sort of their purchasing power um and we can start relying on each other where I say well I am willing to be paid in like you hundred people here but not s of a thousand people on the other side of the Town um so I you can use intents to

build very uh scalable Financial systems where um instead of relying on single currencies we can rely on many different currencies that actually then start representing the trust model that exists in society or an economy you also have multiat this is kind of and by the way these are just nice ideas for hackathons really like these are all um intent-based applications that you can start thinking about how to build them um multiat is the idea that you can have a slack like experience without central servers where I issue intents that represent messages they may be encrypted they may not be encrypted broadcast all we may have individual servers spin up like solvers that sort of like or gossip notes that kind of combine a bunch of us so you can have a easy chat room access but in the end it's a very free form uh form of uh

connecting U and here maybe actually the important Point as well is and I forgot this earlier um intents allow you to do things local and this is I think a very important characteristics of characteristic of intents they allow you to do things as as possible rather than having to go VI a global server somewhere we can decide well the three of us want to trade in this room we should do so locally because a this is way more private because we only revealing the data to three of us and B latency really matters and nothing will ever be faster than like light speed over like a meter long distance right um there's nothing on the latency front that a global system can uh do better and really to me this I view this as a you want to be intent machines are

designed to allow it to be as Sovereign as possible uh yeah and then promise graph this is sort of it's a it's actually a system we're using internally um while building out so we darkg fooding promise graphs um that allow you to coordinate across organizational boundaries or like where organizational boundaries are fluid uh so like teams can rearr be rearranged on the fly in order to sort of actually map the structure of the work that's being done or that needs to get done rather than sort of some abstractly enforced structure um yes if you're interested um there is more ideas here of what kind of things are possible to be built with intense um join into the conversation

right okay quick TLD tldr um VMS virtual machines and IM intent machines are not its and not versus this is very important one Builds on top of the other uh you cannot have an intent machine without an actual settlement virtual machine under the hood this is very important to understand this is really this is just a new generation of architectures that we can sort of build on top of the existing infrastructure this is not there to replace existing infrastructure um if we do not have settlement layers atttend machines are very nice ideas that we can't settle anywhere um you want to be careful that we focus on interfaces are not intermediaries

um please don't go running into the next thing that promises you really cheap fees or like Fast latency uh or low latency um a lot you can do a lot there if you just build a single server and this is really what a lot of the current systems end up being because no one has a good abstraction for how to build for a generalized interface for how users interact with these systems um yeah what does a universal intent machine mean for ethereum it means the capability to build intent Centric daps it provides a standard forense um and provides the capability to settle on ethereum um why USA is sort of the first generalized intent machine well a no one really has proposed a completely journalized intent machine before um and

this is fully specked out um and besides that you also have permissionless an infrastructure um intent level composability intent Machine level composability and information flow control as well as heterogeneous trust um yeah and then we spoke about but some novel daps on ethereum um yeah if you like intense and like to explore the idea of intense further and what they can bring to this ecosystem and how it can Bridge how intense can Bridge a lot of the gaps that currently exist at the architectural infrastructure level um go to E research uh Christopher wrote a great blog post that sort of gives a very comprehensive overview of how intent machines and um will work on ethereum um it is not a short read take

like an hour it's pretty dense it also links back to a bunch of the underlying research if you're very curious there's a bunch of research papers that s informed a lot of these choices um yeah so I think that's it thank you very much and that's [Music] it