Hyperlane 🛠 Permissionless Interoperability
ETHGlobal New York 2023 · 26 Sept 2023 · 18:09
York, a member of the founding team at Hyperlane, makes the case for permissionless interoperability. The workshop traces how fragmented chain and rollup architectures force developers to integrate many bridge interfaces, then shows how Hyperlane offers one messaging interface with interchain security modules that each recipient can configure. It also covers token bridge templates, interchain accounts and queries, and deploying the protocol to new chains and VMs.
Topics
From ETHGlobal New York 2023, hosted by ETHGlobal.
Transcript
[Music] I'm going to be talking about hyperland today uh I'm York I'm one of the members of the founding team at hyperlane hyper Lan's an interoperability protocol uh we're pioneering this approach called permissionless interoperability the main idea is instead of having a kind of service oriented approach where you need to come and do BD with hyperlane to get your chain connected um via some interoperability protocol that doesn't compromise on security um you can actually deploy our protocol yourself and you can bring your own security preferences uh we we've done a lot of work to modularize our protocol
to allow people to extend it to New VMS uh to new chain architectures and I'm going to be talking through the motivation of that so first let's start with some definitions um permission list I think a lot people talk about um to me permissionless means a protocol is accessible to everyone there's no censorship there's no ability for someone within the protocol or or some operator to discriminate against uh some developer some actor some user and interoperability to me is composability among stops that exist on different infrastructure layers um I think this word also gets thrown around a lot uh
you know can mean a lot of things in software interoperability but um in a blockchain context this is what it means to me um so so why do we why do we care about permissionless interoperability um so if you look at the kind of trajectory of the ecosystem for the past I don't know decade or so um you'll see that we're increasingly uh using Divergent infrastructure as do developers um so you know we started with this payments application it was on bitcoin it had this very simple kind of blockchain architecture uh and then ethereum came along and and generalized this to uh you know any sort of computation that can be
executed in the VM within within the block um you know we have near and Solana who kind of quickly followed suit there's some other smart contract chains that would put in this category um and then uh folks decided oh actually I'd like to to push that even further I'd like to make you know some uh generalized chain SDK or framework uh that gives me the benefits the developer experience benefits of something like ethereum but makes optimizations uh kind of deep in the stack whether it's at the consensus layer or kind of at the like monetary policy layer which allow the application to have more sovereignty so this is
where we got things like Cosmos and polka dot uh where application developers wanted to be able to control things lower in the stack and not be beholden to you know ethereum validators adopting their eips that sort of thing um and then in the past couple years we've been at least the ethereum ecosystem has kind of been full steam ahead on this you know rollup Centric road map vitalic talked a lot about it um you know there's a lot of kind of scaling benefits to this approach and I there's a lot of teams here that are building towards this Vision uh the optimism team specifically has kind of
tried to you know maybe create an experience similar to the cosmos SDK for launching your own rollup so that's the op stack uh more and more teams are kind of uh seeing the seeing the light and uh kind of rearching their applications to take advantage of some of the properties of rollups mainly that you don't have to kind of bootstrap a security budget you can inherit that from the L1 um you know there's also a lot of people thinking about plasma and sharding um depending on who you talk to you might put different chains in this category but um yeah this presents a problem and the problem is that uh well I just yeah quickly to
highlight some of these applications who are adopting these new architectures uh or or daps specifically right we have Zora they launched L2 recently obviously coinbase has been I guess it's like base summer everyone's super excited about the coinbase L2 um and over time what we're seeing actually is that both applications and users are migrating and actually there's more activity on these nework uh infrastructure layers than there is on the L1 so um it's this is not just like something uh theoretical that you know only researchers are talking about this is actually playing out uh in production people are migrating and so the problem this presents is you know we have
fragmentation basically that if you look at kind of the top uh you know few Al alternative networks besides ethereum L1 all of these different networks arbitrum One op mainnet polygon POS CK sync Ronin Avalanche Bridge every single one of these has a different interface for interoperability and what that means is uh as an application developer you have to reintegrate every single one of these networks if you want to be composable across all these different networks and in a in a market that's kind of increasingly shrinking or maybe not growing at a pace that we'd like it to be uh it's really important that you can
actually reach all of the users within the ecosystem and a lot of users are uh opinionated about what network they you know hold their funds on or um what wallets you know they use that uh support maybe like a small subset of networks and so even if you want to kind of adopt one of these new uh new infrastructure layers you have to meet your users where they are and this is kind of the central problem of uh interoperability and specifically kind of in the ethereum ecosystem all these new rollups popping up um and just yeah super explicitly like all these three actions that I describe up here all have sep
interfaces you know I think it'd be you'd be hard pressed to find a developer uh either at this hackathon or in the world who like knows how all these interfaces work um what the kind of security guarantees are what the semantics and like capabilities are of them you know what happens if your uh message between the chain fails failure modes um you know payments all this stuff is is really complicated there's this like crazy Matrix that's ever expanding of like all of the different networks you need to understand and so at hyperland we've been thinking hard about this problem and we've been trying to figure out you know what's the right abstraction to allow dap developers not to think about this not to think about you know optimism has
their own Bridge interface arbitr has their own Bridge interface uh ZK sync Ronin polygon whatever they all have their own interfaces and really you want a consistent application interface right we I think we'd all like there to be some simple function that you can use but the the challenge becomes okay well uh how do we maintain the security guarantees of these underlying Bridges while having a consistent interface and this is what the hyperlane protocol does so uh hyperlane uh kind of implements this approach to interoperability we're bracing modularity and we're separating the transport layer and the application layer so at the application layer you
can have this consistent interface which is quite simple it's basically a onchain smart contract API that allows you to pass a destination chain a recipient address on that destination chain and basically arbitrary bites and um this is available to and from Every Chain uh that our smart contracts are implemented in uh not not exclusive to ethereum we actually recently expanded to a bunch of other VMS we're on the salana VM we're about to ship the km wasum implementation uh encouraging a lot of people to to basically implement this protocol in their own VMS uh move coming soon Etc but we want this interface to
be everywhere so there's kind of a consistent developer experience and underneath the hood our protocol will go and choose the transport layer which makes the most sense and not only makes the most sense but actually uh allows the message recipient to basically specif ify their own preferences for security so a lot of people talk about like the 7-Day withdrawal window um from a lot of these rollups and how it's like a really shitty user experience excuse my language um and yeah I think a lot of people users have started to you know go around these Bridges instead of choosing to opt into this 7-Day withdraw period which maybe
like has the kind of like best theoretical like censorship guarantees um they're using things like Stargate and hop and across and uh you know take your pick connect they're using these things which have different security trade-offs so actually users are already like making these choices independent of the applications and the applications have to basically support the pathways that users prefer and um ideally like applications are designed to you know uh basically like encourage this Behavior rather than kind of having this like rigid uh forced
pathway of like in order to use my application you have to go through all these hoops to like Bridge through the kind of canonical bridge and like you know do all these weird API calls Etc so um yeah basically in hyperlane the message recipient can specify their own security we call these interchange security modules we have a bunch of off-the-shelf options some of which basically wrap the native bridges of the rollups that I was describing earlier so we have this for kind of all of the the major rollup transport layers um but uh the beauty of this is we want to allow someone if they're sending from you know ethereum to optimism to use the optimism Bridge security but if they're
sending from optimism to arbitrum you know we can take some alternative trade-off rather than forcing users to route through the L one take on this like 7day uh latency obviously there's like liquidity Solutions but again these take different security tradeoffs that maybe developers might not be aware of um so yeah this is the core core idea of our protocol um yeah the B just just to kind of zoom in quickly um the security preferences that uh the application developer can express are actually a function of message content and so something I'm
excited about personally is like this L2 to L2 interupt use case uh without forcing users to go through the L1 have that fast cheap you know uh not have to worry about like interfacing with the L1 settlement period And so um we have a bunch of great designs for this that use Economic Security instead of like going through the fraud proof system like like as long as we have a pool of stake at risk on the L1 that's basically like providing kind of pre-ms uh of all these rollups that are participating in this system can get basically like Fast cheap interop between these rollups up to whatever amount of Economic Security we
have and you know people sometimes ask us well you know what happens when you exceed that Economic Security and the point of this interface is that application developers can say okay Beyond this amount of monetary value associated with my message let's say let's say this message is is hitting my protocol and I know it's going to it h it it the message is associated with like you know $10 million um and that's super scary I don't want to just like trust some validator that's giving me like a fast pre-com attestation on that I want to maybe force that to go through the slower more secure pathway kind of analogous to like traditional Finance wire limits um um you can do that you can express that as a function of
message content so you can say if the message you know exceeds this value go and go and like have some sort of manual review process or or veto or whatever it is optimistic we have all these like off-the-shelf security modes that you can kind of pick and and compose um and then the the other thing I wanted to highlight is that actually like we want people here to expand our protocol we don't want to necessarily be the only operators of this thing the protocol itself is implemented in smart contracts there's a few offchain actors um that are totally permissionless all this is configurable and we' basically spent the last year or so kind of making this
experience accessible to developers so if you guys are spinning up your own rollup this weekend or you know you're experimenting with some new chain architecture some new VM uh you know maybe it's move maybe it's something thing you can basically deploy our protocol to these new chains without ever talking to us without doing some like BD or sales cycle with our organization and get the benefits of all the other networks that are already connected in our in our protocol so there's kind of this nice like um Network effect where you now only have to do a single hyperland integration instead of what I was highlighting before which is like you know 10 plus Integrations
um per application developer um so yeah this is like really all about developer experience here um yeah I wanted to quickly highlight uh a few of the like applications we've built on top of this primitive so obviously token bridging people like moving tokens around um we have kind of like a a template application and UI that's like a full stack solution for um everything from like interacting with our contracts on multiple VM so this actually supports salana um already but uh there's basically like a tempate template repo you guys can Fork um that
allows you to uh hook up this like UI and multi-m like wallet experience to any of the chains you like and and spin up a token there's kind of a few different flavors of like token Bridge you can choose from can do like a classic like uh lock and unlock bridge if if you guys already have some token you want to play around with uh if you want to create a new token we can do like this kind of like native mint and burn style thing kind of similar to uh circles like cctp protocol um you could also Bridge uh the native asset of a chain as a token to to an ethereum Network and so we actually
did this recently we helped launch the first svm rollup um and actually the the native asset of the svm rollup is just represented as an erc20 on ethereum and that's kind of the onboarding mechanism and they're they're using hyperland underneath the hood it's called Nautilus chain if you guys want to check it out um we also have a few other kind of like nice developer Primitives for people here um I I have just a couple minutes left so I'm going to rush through this but um can have interchain accounts interchain queries basic premise here is like you can have a smart contract that holds assets on another chain and uh that's called an interchain account that smart contract basically has this like
proxy that exists on another chain we've abstracted that into a nice simple smart contract API similarly for queries if you want to read if you want to do a view call against a remote Network um we have a simple API for you to do that um and so like again this is all to try and solve this problem of like fragmentation right we want to simplify the developer experience across all these fragmented infrastructure layers we love to see you guys try out some of these apis um that's mostly it I I I don't know if you guys are doing Q&A maybe not um but I'm happy to talk after and and chat with you guys about potential projects for the weekends um yeah can we take a
question sorry coresi um cortei uh uh I'm actually not sure I I don't think so is that uh what what VM is that so that's what that's oress by ah okay um no we we don't right now have that but um basically like anything that compiled to that instruction set we we have the kmm implementation which is basically rust so could probably hack together some just like compilation tool chain and deploy the kmm contracts to maybe that VM cool thanks so much guys
