[BUIDL Asia 2023] The 3rd Generation is Intent-Centric by Adrian Brink, Co-founder, Anoma

BUIDL Asia 2023 · 30 Jun 2023 · 25:08

Adrian Brink, co-founder of Anoma, introduces intent-centric architecture as the foundation for a third generation of blockchains. The talk traces the path from Bitcoin's scriptable settlement to Ethereum's programmable settlement, then explains how intents let users sign what they want rather than how to get it. It covers solvers, counterparty discovery, user-level privacy through transparent, shielded and encrypted intents, the intent gossip network, and ways to deploy the design as an L1, an L1 and a half, or an L2 settling on Ethereum.

Speakers

Topics

From BUIDL Asia 2023, hosted by Kryptoplanet.

Transcript

foreign perfect hello everyone thank you very much for coming today um I'm going to talk about onoma today um and really anoma is the first generalized intent Centric architecture um and the way to think about this is that intents are going to be the building blocks of the next wave of third generation blockchains and anoma is the first of its kind and it's important to understand here sort of a very high level of what intents are intents are the fundamental units that represent what users actually do on

decent price systems transactions are very poorly designed representation in this case actually because the transaction can only Encompass something that is a fully valid State transition right when you think of sending for example a transfer on bitcoin to another address yes that is a fully fledged State transition that is immediately executable on chain however most interactions don't actually look like this like if you want to be part of a multi-sake or you want to sell an nft against some eth that's always a partial State transition or what we call an intent and really anoma is the first time that someone has proposed to generalized and 10 Centric architecture and I can almost guarantee you that all major L ones going forward will be built around this idea of intense just like

all major l1's post-etherium were built around or are built around the ideal VMS and sequential execution and with that let's get started so to start with I'd like to go through a quick evolution of the protocol sort of like how we got to today's State and really this starts with scriptable settlement or generation one and this was all started with Bitcoin in 2008 and scriptable settlement platforms make for really good base layers for cryptocurrencies something that like tries to be digital gold like Bitcoin but they're limited but not completely impossible to build things on either you can build things like colored coins you can build things like name coin and of

course you also have a long tail of Bitcoin like forks and really in this category of chains you have things like zcash or Nero Dash Litecoin um and sort of the many evolutions of scriptable settlement platforms that came prior to ethereum um and then in 2015 we got ethereum which really took this idea of Bitcoin of scriptable settlement of scriptable transactions and try to make this programmable right so the major difference is that instead of having a limited scripting environment now we had a full-fledged churn complete programming environment and all of a sudden things like colored coins turned into erc20s name coin to an interior and S but we also got a host of other new things that sort of didn't exist

beforehand like dials or new kinds of assets like nfts um and this was actually very hard to predict in the early days of ethereum what kind of interesting things were going to be built on this very novel architecture because it fundamentally I think the two big things that achieved is it made composability but an order of magnitude higher because all of a sudden you had composability at the settlement layer where transaction actually happens whereas in the previous example of scriptable settlement all these things had to be their own forks and you didn't really have a shared settlement layer um and at the same time applications became an order of magnitude easier to build because you didn't have to Fork the Bitcoin core

C plus plus code base you could rather learn solutely which albeit not perfect is still sort of tremendously easier to learn than something like Bitcoin script um or forking Bitcoin um and I'm sort of what is going to happen is that we're going to see the same orders of magnitude's improvements in terms of both composability as well as ease of development in the next wave of intense Centric third generation blockchains I'd like to also quickly go through sort of what I would call programmable settlement plus plus or second generation plus plus which is what has happened since ethereum and this is really we've made tremendous advances in things like civil resistance

with regards to proof of stake advances in scaling with things like near sharding advances in privacy with zero knowledge proof so it really came about post ethereum launch and also advances in consensus and so I think but fundamentally the important thing to remember is that most of these systems are sequentially executed VMS where the thing that actually happens on chain is at its base a transaction and not an intent and you sort of have to figure out how to do uh counter by the discovery in distributed solving um out of the system off band and you can't build applications that reasons about these systems and now I'd like to go into the third generation of protocols really the

intent Centric protocols we're moving now from the VM world to the intent Centric World um and here I think I know my oh anoma is the first of its kind here it's the first generalized proposed architecture for a fully intent Centric design and really the way it came about is we looked at how to design these systems and press principles based on the idea that most of the applications nowadays are already kind of structured around this idea of intents but no one had given it a name like when you think of how openc for example works right like in openc no one directly transacts on chain they send a partial um State transition to the openc web 2 server the openc web 2 server collects a

bunch of these things on this AWS instance in San Francisco and then once it has enough of them that match it settles them somewhere something at git coin is really the same example and this is even true for things like Roll-Ups all these systems are sort of trying to build around or like trying to hop around the idea of intense by building centralized web 2 infrastructure to make intents actually work in practice because really intents aren't you have to rethink how the base layer architecture Works in order to make them work efficiently and integrated them well into applications so what is our Noma um really the tl.dr it's the first ever

intent Centric architecture that introduces the new paradigm for building infrastructure layers um it is designed to enable applications that involve internet users issuing infinite number of intents each of arbitrary complexity and so we'll go through what this actually means in practice [Music] when you think of what currently happens in the transaction-centric world users really Express not what they want they express some specific execution trees they express how to get the thing when someone signs an ethereum transaction to execute a trade on uniswap they don't specify the trade they specify here's an opco here's an entry point and he has a bunch of up codes that are allowed to

modify my state so they specify the execution Trace that a program can take that at the end may have modified their state in some certain way an intense flip this on its head where users directly sign what they want rather than how to get it and this has tremendous benefits first of all it's it's much safer for the actual users because users know exactly what they agree to they don't have to read every single up code in their call stack they can just read which state change they've authorized and secondly they don't have to specify how to get it as in they don't have to figure out the path through the system that their intent takes they can rather say well I want to trade some Bitcoin against eth and I don't actually don't

care if it's if there's a universal pool under the hood or there's one kind of party there's a thousand counter parties because they've just authorized a specific State change and didn't have to didn't specify the execution Trace that you that that intent should take um really in a super simple statement intense a binding parameter programmatic commitments to preferences um and the important thing here is they're arbitrary they're just code as in an intent is just a piece of State plus a piece of code and this code may be arbitrary in scope and you can think of this as it allows you to write very complex applications like I only want to participate in this multi-sig transaction if the weather in Solo is nice if the weather in Seoul is bad I

want to sell my eat right like you can do arbitrary complex things that if they are settable in some fashion the system figures out how to do this and they're fundamentally necessary to enable decent price counterparty Discovery because one of the big challenges with transaction-centric the transaction Centric worldview is that ordering matters as in if you sign of execution traces it matters in which order we execute them because we haven't defined the on the out the sort of resulting State changes and rather so now it matters whether user a or user B came first because they start may start modifying uh similar parts of the state in intense you can interleave them in arbitrary ways because users have

already fully agreed to the specific State changes they're willing to take and this leads to a declarative Paradigm for damps really what this means is that a user can issue an intent for example here wants to trade one nft against one eth and again arbitrary this could involve any number of assets created in any number of systems um they run via a gnome as a protocol and really at the end the user only has to verify whether it was possible to settle and whether it actually ended up being settled or not they don't have to worry about what exact flow through a system it takes because if I want to trade an nft against some eth what actually may happen under the hood is that there's like a 15 party ring trade to enable a because there's maybe no

direct liquid market for my nft against eth but there's like some path that I can take for is to bitcoin Bitcoin to something else something else back to my nft right so in this sense you don't have to worry about whether there are specific counterparties with with which you interact you rather go is anyone on any path able to settle this and this is some of you may figure this out solving which two nfts or which number of nft intents are compatible with each other that's computationally very hard and this is sort of where solvers come in that I'm going to talk about in a sec but before that the other big thing is that it enables really good privacy guarantees

um in a an architecture like anoma whether an application is private it's not a developer Choice um there are applications and then they're users and it's fundamentally a user level Choice whether they want to interact with applications privately or not and this is because of the sort of structure of the intent any of the fields in an intent can be private they can be authorized in zero knowledge or so in the future they can even be authorized using photographic encryption and as a result when you when a user interacts with the decks for example currently they have to make a choice do I go to the Privacy preserving decks or do I go to the transparent decks in a normal this Choice doesn't exist because there's a decks and users choose what

kind of data they want to reveal in their intents however these intents are still composable with each other so even let's say one user wants to say I want to trade I don't care I want to trade transparently because it's computationally more efficient to do on my Edge device to only do transparent authorizations via normal signature and another user that has exactly the counter intent or the matching intent the inverse wants to do so privately these two intents are still matchable and solvable and are composable on chain um yep right and then sort of the rest still happens in exactly the same fashion okay so this looks this is the entire overview of the aroma architecture as a it's a spell dot

diagram and really here on the far left we have users that can make a choice on whether they want to issue transparent intense children and the private intents and really they correspond to normal signatures that as we currently know them shielded intends to use your knowledge proofs and private intents use fully homomorphic encryption to even get better privacy guarantees on the specific State changes that you want to deal with these intents are then submitted to intent gossip nodes and intent gossip notes form a sparse non-consensus critical Network that can actually span multiple blockchains which is kind of a cool thing because it allows us to have intents be settled on other systems this is not actually enormous architecture and I'll come to the deployment models towards the end

but you can also use a Noma to make applications on a theory more flexible this way so you have intent gossip notes they gossip around these intents different intent gossip nodes can make different trade-offs with regards to which intents they actually care about some may only care about fundable tokens some may only care about nft intents some may care about all of them the nice thing is intent gossip nodes have a financial incentive they can take a portion of the fee for the routing so for example if Eisen 10 gossip node I've received an intent but I can't immediately settle this and solve for this intent I can attach let's say 10 cut of the fee that that intent has which is what I consider my fair share of the fee for the routing of that

liquidity and then some other node once it actually ends up being settled everyone that sort of attached the fee claim gets a portion of the fee of course I can also say things like I had I take all of the fees in which case this intent is most likely dead because why would anyone else do the hard computational work of actually solving for this intent um then you have a the mempool oh then you have solvers actually sorry first who look at a number of intents and go which ones are compatible and solving is NP heart this is really really complicated um but structurally very similar to so in the real world currently we have tons of solvers um things like muv front running is just a special case of anoma um and of intents things like Market

making same thing even things like um running a roll up or running a ZK approver this is all special cases of intents where individual users want to come together to have some shared compute done to some State transition and so solve us in the simplest case when you think sort of like some users a for B another has B for C and the third has C for a a solver would find these in tens and go well these three things are compatible um put them into a transaction encrypt them against the encrypted mempool which uses Fairview for uh thresh decent threshold cryptography um in the first block you only order encrypted transactions and then on the next block the values that jointly

decrypts those transactions and actually executes them and then the execution and verification part is quite interesting this is where tiger comes in and I'll speak a little bit more about tiger towards the end again tiger is the unified execution environment of anoma it is one large DK circuit that uses Halo 2 as a proof system effectively it allows you to treat transparent chill as well as private intents is uniform within the execution environment so that as a developer you never really have to think about what my application whether my application handles transparent or Shield intense tiger handles this yeah and in the end users can just check whether the intent was correctly settled or not right coming to the stack tiger the

unified execution environment of anoma handles all forms of State um you can think of this as a this is also actually the cool part is why anomas can also be a incredibly efficient DK roller because all of tiger is just one large circuit and you can deploy these verifiers to other systems this means that and this is really important to us because a normal is an architecture it is not a specific blockchain you can deploy a Noma into whatever security model you as a user care about and different users have very different valid trade-offs here some users May care about global anoma other users like my parents would probably care about like localized chains run by the local government but the entire idea behind onoma as an

architecture is that we have a homogeneous architecture that is Deployable in heterogeneous security models so that users can fundamentally make a choice on what is the best security model for them while at the same time using Typhon to that handles the intent gossip and mempool and consensus so that I can just issue an intent I want to trade some youth against Bitcoin on X security model but you have a unified intent gossip Network that spans many different deployments of a no master protocol um yeah and tia typhen is really cool Typhon allows you to get multi-chain Atomic settlement working for example if you're familiar kind of with modern bft systems typhen um is an extension to them in the sense

that um so in the normal case you have just standard bft but in the fancy case you get on-demand charting with Typhon that two chains can say well for one hour every month we want to be in a sharded synchronous environment then we have vampire I've spoken a lot about zero knowledge circuits and privacy preserving applications um this is all enabled by well not all of it is enabled but in order to make developers sort of happier we have vampire which is an intermediate representation for circuits think of this as llvm llvm but for circuits it is really just a basic representation of circuits for now developers can write this directly in the future I would expect this mostly to

be a compiler Target as in their high level languages the target vampire because one of the really big benefits is that vampire is fully proof system agnostic So currently vampire supports plonk up and Halo 2 as a back end but they're also experimental backends in the work for stocks and for fhe so really as a developer you can write one application one circuit and then later on it's a compiler Choice whether this whether you want a Halo 2 proof system under the hood or you want the Blanca proof system under the hood um and this is really really important because currently developers have to make very fundamental choices on their language side on what proof system their application should Target

forever right this is also so that if in the future we're going to have we're going to come across much better proof systems not all applications need to be Rewritten in the new languages they can rather go well I've written this in Vampire let's just build this one person has to build a back end for the new proof system and all of a sudden all applications just work against the new proof system uh this is kind of why llvm for programming languages was so fascinating because all of a sudden you didn't have to worry about like oh my language only supports a specific chip architecture like AMD or x86 rather I write something that targets lvm and then all VM handles to the hard part of translating this into a specific chip architecture and then we also have juvex which is

actually one of the first languages that targets vampire so jubix at a high level is a high level functional programming language created for for creating dabs and programs that compile both two of them as well as the vampire and circuits as a result you can use juviks via vampire to write circuits for really arbitrary systems wherever you want to you can execute specific proof systems you can use dubix to write programs for that and one of the very nice things about jubix is that developers don't have to know anymore what like a field element is one of the big problems is sort of that the abstraction um for the circuit languages is still at the level of you have to understand how the cryptography Works uh with juvex it's starting to go away we as a

developer you don't have to understand what a field element is you can rather write a high level program that then compiles down to a circuit afterwards so what can you build with anoma and here really you can build a bunch of known apps but fully decentralized so when you think of let's say the roll up space you can build optimistic or ZK rollups but fully decentralized and currently really all these systems are massively decentralized because there's always a single web 2 server somewhere in the stack whether this is optimism arbitrum even something like stocknet or even open C structure they're all the same there's always a web 2 server running somewhere that does the decent invest kind of value Discovery and

distributed solving component except that it's not decentralized and not distributed at the moment you can also build Dexys because anoma allows you to have intents which are not on chain so intents can be free uh so you can actually build very scalable Autobook exchanges without having to have centralized components um like the relayers in the ZRX model we already spoken about nft marketplaces the important thing to understand this is like even things like Bitcoin are at the moment somewhat centralized because the quadratic founding formula is actually being run in some Excel spreadsheet and then um so if the results of that Excel spreadsheet output are being submitted on chain this isn't fully decentralized

yet but if you wanted to build this with intense you can actually just say individual funders or donors issue intents and once you have enough intents together you anyone in the world can run the solver and then this is executed on chain with a solution proposed by the solver you can also build a bunch of Novel things so for example like runtime Roll-Ups intents are just partial State transitions if iPhone intend from A to B and someone else in the audience has an intent from B to C any solver in the world can create a partial solve from a to c which means that sort of at the networking level Roll-Ups just exist all the time which is also really important for sort of computationally hard or complex solves because maybe I only have the solution from a to c but not C back

to a I can still charge a fee for doing the partial compute of 80 of the sort of collapsing of the state from a to c without having to worry about also having to do c to a because I can rely on the fact that someone if someone else if this is possible someone else can create c2a and then settle the entire thing where my solution is still useful you can build defy adapt apps with such as like sealed bit auctions um privacy preserving dials and soft New Age game economic systems like Pro money and collaborative Finance um so this is a example of calstop in a fully decentralized fashion because right now there's again a central coordinator that everyone interacts with

uh that the sort of users submit their trades to and that solve us talk to in order to get the batch that enforces both the batching requirement as well as the optimality of the solution and I know my users would submit these intensity intent gossip layer they would be encrypted for a application defined interval so I mentioned in crypto mempool with fervio the nice thing is this primitive is also exposed to the application developer so an application in the behind custom decryption threshold so for example a cow stop application on Norm I can say things like I want to have my batch length as 10 blocks during those 10 blocks users can submit encrypted traits to that batch after 10 blocks of audio

set goes and decrypts all those transactions and then solve us maybe get another five blocks to submit valid Solutions I think the really important thing to realize is that like when ethereum came out in 2015 we really couldn't spell out all the applications it would enable and I kind of think this is going to be the same with anoma in the sort of third generation of applications because our third generation of blockchains here because fundamentally this is just going to enable a bunch of new stuff that we're going to have a hard time thinking about this is going to really enable a decentralized applications at global scale and many different security models because just very quickly on the deployment models if you can deploy a normalizing architecture as an L1 you

can also deploy this in L1 and a half to so I've just decentralized a specific application or you can deploy this as an L2 on a settlement there like ethereum or other systems really like the security model should be a user Choice um we don't have a one world government for a very good reason which is having one Global Security model is kind of terrifying we should have many independent security models that can talk to each other but can fail independently of each other uh yeah so anomas founded by myself AWA and Chris and Bill by one of the first core development teams at Helix thank you very much if you want to connect with us those are the QR codes thanks

foreign