Anoma: from VM to IM

BUIDL Asia 2024 · March 2024 · 24:41

Adrian Brink, co-founder of Anoma, argues that blockchain architecture is moving from virtual machines to intent machines. The talk traces three generations, from transaction-centric systems such as Bitcoin, to VM-centric chains such as Ethereum, to intent-centric systems where users sign over the state they want instead of an execution trace. It explains general intents versus limit orders, how Anoma can sit on top of Ethereum and rollups for settlement, information flow control, shared synchronous chains, and the Anoma resource machine, a model that is neither account nor UTXO.

Speakers

Topics

From BUIDL Asia 2024, hosted by Kryptoplanet.

Transcript

[Music] all right perfect thank you very much Erica for the introduction that's it yes this also works great thank you very much uh thank you very much everyone for coming here um today I am going to talk to you about of third generation architectures and really this idea of moving from VMS to IMS or moving from virtual machines to intent machines and I think this is sort of going to be the theme in I expect the next sort of 5 years or so that along with this chain abstraction will actually move away from directly building against virtual machines we'll still use them as

execution environments but we'll very much move at the userness at the developer level towards intent machines where users can specify their General intents and then specify the settlement conditions that they care about and maybe those intents then get settled on ethereum or they get settled on neara uh the intent machines are agnostic to specific execution environments under the hood um so yeah if you only take away one thing from uh this talk um it's anoma is uh the universal intent machine that's really the tldr um if you've remembered this you've remembered most of the talk uh and now so I'll start by going a little bit through historic evolutions of how we got to where we are

today and sort of what the next generation will look like um um so it all started with Bitcoin and transactions and Bitcoin and Bitcoin like systems that were fundament fundamentally transaction Centric yes they had limited scripting capabilities but that was about it so you could start building sort of limited applications on it um but really you didn't have a full programmable environment that you could use um and there were many things like Bitcoin during that time sort of when you think Litecoin zcash Monero they all fall into this generation one of transaction Centric systems from there we move to Virtual

machines and all of a sudden instead of having limited scripting capabilities we have we now have this s of the current world we now have virtual machines and full programmability um and ethereum and all other existing architectures really fall under this model uh it doesn't matter whether it's near salana Avalanche or ethereum they're all fundamental virtual machine Centric as in at the core of the of the system a user interacts with a virtual machine in order to generate some State Transitions and generally this takes the form of a user science a transaction that gets executed by this virtual machine and from there we move towards

an like so the next move is going to towards intense and here really our nor introduces the Paradigm of intent C architectur of generalized in Centric AR architectures um and I'm highlighting it this way because it's important to understand that uh we've had even though everyone like probably According to some marketing documents we're probably at generation 15 right now on a fundamental technical architectural level we had three generations we had generation one Bitcoin and Bitcoin like system uh that are transaction Centric generation 2 VMS and virtual machine Centric systems ethereum and uh Nia and salana and so on and then generation three is going to be intent Centric um systems where users

don't necess interact with a specific blockchain rather they interact with a high level abstraction round intense on top of many different blockchains so uh anoral is the first design for a universal generic uh generalized intent Centric architecture um it really follows along this idea that actually maybe to just clarify something here uh many people talk about intents nowadays um and sort of the pessimists in the room will say well intents are just limit orders and this is true in limit orders are a very specialized kind of intent a limit order is a super specific intent this does not mean a limit order is a generalized

intent a general intent is the ability to execute arbitrary programs over arbitrary State changes where user simply defines this this is the state a that I currently have and I'd like to be at State B and here's my programmatic sort of authorization order to transition this and the important thing is you kind of dependencies here that one intent depends on the state of the system on other intents so for example I can in a generalized intent system I can say things like if the weather's nice in Paris I would like to participate in this gitcoin Dow and if the weather is nice and so I'd like to sell all my Bitcoin right like you can do arbitrary complex

dependencies here but that are always written as I have currently State a and I'd like to go to state B and someone else can figure out the compute this is actually the really fundamental abstraction that um intend describe State changes not execution traces and essentially in all the VM Centric models users always describe execution traces I as in I want to execute this op code that up code that up code and yes it results in some specific other state but the user didn't specify that future State the user specified and signed over a specific execution Trace whereas in an intent Centric World users sign over the specific end State and then they don't care how to achieve this end State

because it may involve a bunch of ZK proving it may involve a bunch of multichain hops it doesn't matter to the user the user just clearly defines what do I have right now what do I want to have in the future and then other people other parties in the ecosystem can figure out how to get them this um yes so as a little bit of a recap here what is a VM a VM is an instruction set a program counter many different layers of memory and so on that sequentially runs a program uh a very good example and probably the predominant example of virtual machines is currently the ethereum virtual machine and this is really at the heart of ethereum the ethereum virtual machine is what makes ethereum work um

whereas what is an intent machine an intent machine takes a batch of intents and computes valid possible State transitions um possibly selects one of them according to some defined Criterion that can be encoded in the intents 2 this is not encoded at the protocol level in the intent machine this is rather encoded by users um and then executes the and then updates the system State um for example here the only model and I think we will see many different intent machines going forward um but so of the first one that we're working on is called the anoral resource machine um and again here it's important to highlight that intent machines are not replacements for VMS um we're building on the shoulders of giants without VMS

we can't have intent machines so we must always like this is this is not a Nora is not designed as a replacement to existing systems this is if users want to use ethereum a Nora just provides a different layer of abstraction that is more General that users can interact with rather than having to directly interact with the evm or the svm svm for example so from that perspective an Nora is new paradigm for infrastructure um and this has two components here which is one um operators can decide to run many different notes or many different subsets of notes uh So currently an operator generally will run a for example an ethereum full node and maybe

they also run a validator um with Ana operators may also still do that but they can also run many different site cars that enable this intense Centric Paradigm um and yeah this is this actually goes to the second point which is from a user perspective everyone becomes a one out of one blockchain essentially like when you think of a blockchain ethereum may have 100,000 validators but I can build a blockchain that has just one validator which is me my phone is not a client that connects to some full node over an RPC call right which is a current model really we have full noes that are running somewhere and then users on their phones connect to those full nodes via RBC clients but they're fundamentally architecturally

different like a client is different than a full node in anoma a client is just another node on the network they just live on the same P2P stack and they just expose different capabilities um which is really really important when you think from a sort of depending on the size of my phone or the powerfulness of my phone my phone could decide to run many different softwares right it's if it's a very um sort of non-comp compute intensive it doesn't have a lot of compute power it may just will like try to read some intents and submit some intents if it's a very beefy phone it may decide to run a light client verifier so like but I can locally configure this on my node I don't have to install different node software this

is just all the same node configured all all the same software configured with different runtime parameters effectively uh for Builders you get the benefit that you get decent counterpart Discovery and distributed solving as well as a bunch of Novel properties around information flow control um for example for Builders um an intent Centric model or the intent machine enables the capability that uh you can actually build fully decentralized rollups where there are many different solvers in the network rather than are many different sequences in the network rather than a single sequencer uh whereas a user you don't have you don't have to pick but you can for example if you want it to um and then here on information flow control

this relates to um with intents users can choose what data to reveal versus not to reveal and this is not to say that uh this provides privacy no it just provides optionality to users that they can decide to reveal some data versus others whereas in the transaction Centric world you really have to reveal everything um yes and then I I'll briefly s of mentioned this which I think is very important in this move away from transactions toward what's intents or away from signing over execution traces to signing over specific State changes um for my parents it will always be impossible to verify an execution Trace as in they will sign

over it because they Sort of hope that it's correct but they have no capability to ever and I would assume this applies to 99.999% of all users that they don't have the capability to verify execution traces um whereas in the inent Centric World by signing over specific State changes is much easier to verify because you don't have to care how so of the compute happens you just have to care what specific future State you're willing to accept so and with this anoma is a universal intent machine um it provides four key affordances um it provides permissionless intent infrastructure intent level composability information flow control as well as heterogeneous Tru I'll sort of go through them in the

later half of this talk but most importantly anoma is an intent machine for ethereum um Builders can just write daps but instead of writing using transactions they can use intense um and really what AA does here is it provides the intents and then etherum provides um the ordering potential in the solving in the settlement can happen elsewhere right it could happen on the E theum main chain could happen on a on base it can happen on many different rollups and I'll come to this later it can even happen on other nonm chains uh this is fundamentally we are making an architectural jump away from being very Chen specific to intense a general abstraction across many different

execution environments um and as such one of the big advantages of this kind of system is that it helps with the fragmentation between different security models and ex and the execution models uh right like if everyone if you're transaction Centric model you have to pick which me pool you submit your thing to you have to pick your either on Neo or on Solano or on ethereum uh with an intent machine you can say well I have an I have an intent and it could be either settled to ethereum or it could be settled to KN or it could be settled to a noral uh the intents don't care the intents are fully abstracted away from specific execution RS oh yeah right this is very important

important actually uh Chris my co-founder just dropped uh a very nice talk oh very nice blog post sorry not a talk um on eth Research uh if you haven't read it since 3 hours ago um they have been updates so please check it out uh I'll also include the link uh towards the end an important distinction I want to make here is that an Nora is an interface it's not an intermediary um and I'm saying this specifically because I think a lot of people are starting to throw around this idea of intense and really what they are building is intermediaries people that are sort of actors on the network and as a result a lot of these actors can extract rent

like me extraction um however an Nora just provides a universal intent interface um and interface is really a protocol which translates one semantic for example in this case declarative intents in terms of another in this case imperative order and comput and Storch uh tcpip is a great example of this uh that it's a protocol or it's an interface it's not an intermediary anyone can use tcpip without having to go through the single server run by Oracle um IBC to large extent is similar here where IBC just provides a an interface that you can use to encode uh Network messages um you do not ever have to go VI the cosmos help in order to use IBC and so I will

leave this with this that interfaces are simply code uh where intermediary do actors that can extract rent um or add extra security assumptions and that there's no anoma specific chain which you must send your intents to you can use intents on the systems that you like you never have to interact with any specific anoma chain in order to do this so um I noriz an intend machine for ethereum um and the evm is amazing at execution and security um and and AA simply provides something on top that wasn't there before and this is generally true you can see this later sort of um this is generally true across

the case AA just provides something on top it doesn't try to replace ethereum salana or near um it just provides extra utilities on top um and specifically it provides intent level composability um intent machine composability so not only do we have intent level composability we have many different intents compos composable with each other but also intent machine composability where users don't have to specify the specific chain that they want to interact with but rather um sort of this gets abstracted away from them and can be encoded in the intent and so users can treat a network of many chains if it was a single as if it was a single intent machine um it allows application portability so that um my phone can essentially roam between different um

execution environments different security domains different concurrency domains without having to sort of download a new wallet um and it Ana provides um permissionless intent infrastructure uh so yeah anoma is an intent machine for salana uh for Cosmos and many more really anoma is an intent machine for your favorite execution environment SL security domain and I will say this also that anoma is also an intent machine for proov Authority chain run by the Swiss government for example like the intent machine is doesn't care about it uh whatever security models or execution environments people want to pick uh an noral supports it um yes um anoma is also scale free this

is sort of um and I'll have to go a little bit more into what this actually means which is that it provides both local as well as Global scalability there's not supposed to be just one instance of anoma um this is very difficult and I we are all currently in this industry building a model where there's like one chain to rule them all um and we all coordinating VI the one Central Point even if the central point is a decentralized chain in anoma um I'm My Own anoma chain like I live in Switzerland the city of Z can run its own anoma chain uh this is what I mean by scale free at every single point where the trade-off space becomes uh where users want to make the trade-off

between latency and cost they can decide to effectively run a smaller local more local instance um and sort of if you come from trading this will actually make a lot of sense to you because latency constraints are fundamentally Bound by speed of light um and if you want to have the fastest cheapest execution if three of you of you are in a room it makes no sense to run via server New York uh you should be trading and settling locally on your own local instance uh rather than relying on a Global Security model um and so by the way this is just like a propa of distribute systems and physics this is not something that you can sort of get Beyond like if three of us if we can have infrastructure where

three of us in a room can just like settle their traes directly locally we can run out of our landan or fiber optics uh this will always be cheaper and faster than going via Central servers even or Central systems even if these systems are decentralized because you will never get better in terms of latency than three people in a room um yes a little bit on um and I touched on this in on multi-chain Atomic settlement so with anoma you get this capability to have multichain Atomic settlement um and what this effective means is it can have a homogeneous architecture but with a heterogeneous security model that different people will have different requirements in terms of what security model they care about um but you get a homogeneous intent machine abstraction so that

people don't have to also change um like change the applications that they want to use and like a very good example is international roaming of mobile phones it'd be very stupid if I have to buy bu new mobile with a new standard for every single country I go to right like one of the very nice benefits of mobile phones is nowadays that uh my phone roams across the world and this because we fundamentally have a homogeneous architecture for how cell networks work in hetrogeneous security models because whenever I go to new country I'm entering a new security model and this is sort of the same abstraction that it noral allows um and really here the only limitation is are noras available

wherever there's an normal protocol adapter this could be ethereum an evm rollup a non evm roll up this could be AGA AVS this could be Cosmos chain on NE on salana you name it um yes this also comes to ic2 which is effectively uh the ability to not only have async message passing between systems but also have synchronous message passing between hetrogeneous trust domains um and this comes a little bit this you one can view this as uh a form of heterogeneous Shing where which I should should go to in a sec okay now in the last bit I'd like to go to some very specific components of Aromas

architecture um and let's start with the P2P layer the intent gossip layer it is AA does a lot to abstract all the different parts of the stack apart from each other so there's a specific P2P gossiper um and the benefit here is that this note 35 may just be my end device my phone that is running light client verification but I'm sitting on the same and this way I can submit transactions and intents to the network and but I'm not sort of a outside I'm not connecting RPC we're all just notes on the same network um and these domains represent essentially

different blockchains for example so for example domain one could be ethereum domain three could be Solana domain two could could be uh near and all these nodes just gossip with each other and provide this capability okay so coming to the actual consensus and I'm sorry that this diagram looks very overwhelming and I W won't spend nearly enough time going through this um but this is about tyon and Camara chains um and Camara chains you can think of as a large extent as generalizing shed sequences um which means that you can use anoma to um for example sh settle things um or espresso could use anoma in order to settle

things uh so a Shar inqu like expressor could be used to settle a noral intents um and really here the basic intuition is that you can have many different chains that if they so choose can connect to each other and form synchronous shared blocks so the things in the middle here s do I have a pointer like this part is effectively a new on demand blockchain that is both synchronous synchronous with both uh chains so you have chain blue and chain red and you have a shared synchronous chain in the middle on the band they don't exist all the time only when users or developers actually want to pay for the execution cost of uh getting uh

shared security and getting um synchronic synchronicity uh again all of this effectively uh users can decide at what point the cost is worth worth it and then coming to the last part is the anormal resource machine um so everyone ask me what account model does the noral use or what model does the noral use that is it an account model or is it a utxo model and the answer is it's neither it's a resource model it is sort of the best of both both worlds where accounts can have lots of complex State attached to them and so we have resources on normal have fully arbitrary State attached to them this could be a fully fledged program plus a

bunch of different keys in a database um but resources are only created and destroyed so when I spend a resource I create and for example my resources a contract I'm creating a new contract every time I spend this contract um and the important thing to remember here is that the anoral resource machine unbundles three different components that in most existing systems are bundled together it bundle unbundles the State architecture the instruction set as well as the message passing model so for example in the evm the evm in C contains all three it contains the State architecture the instruction set as well as the message passing model um in anoma the anoma resource machine is only cares about the

State architecture um and then different users different actors can decide what kind of instruction set or what kind of message passing model they will actually want and message passing model for example is mostly in influenced by the actual topology of the network which is not something we can ever write into an architectural diagram because the topology of a network is defined at runtime by the actual behavior of real people so with this again here's the link uh if you haven't read the blog post please do um take like an hour or two to go through it it also links to all the underlying research um so there's also the anomal research topics at a.net as well as Research Forum at

research. om.net uh yeah you can also follow us on Twitter um and that's it thank you very much