Aleph March'25 Interoperability Summit - Blockchain Interoperability

Aleph March 2025 · 21 Apr 2025 · 26:21

Guido De Vita, technical projects lead at Wormhole, explains why blockchains need to be connected and how cross-chain messaging works. The workshop covers security, decentralisation through a set of guardians, scalability and user experience, then use cases such as token transfers, NFTs, lending, oracles and governance. It closes with a code walkthrough of sending a message between chains and minting an NFT on a destination chain after a purchase.

Speakers

Topics

From Aleph March 2025, hosted by Crecimiento.

Transcript

Right. Um so well um my name is Go. Um I work at wormhole wormhole foundation. We have a few contributors. Uh I'm the um technical projects lead. Uh I work mostly with large integrators and institutions. I want to bring assets uh crosschain. Um what I'm going to talk about today is uh how warp works with different uh blockchains and so we have to assist in different use cases. Uh but first uh we're going to start kind of explain why we need these uh connections and why blockchains need

to be connected in the first place. Well uh first um you know in the in the case of internet uh what what we had you know was you know people wanted to to send messages to each other. We started with transatlantic uh cables you know it started you know little by little currently we have know hundreds of connections uh between countries continents and so on. uh with the current increase uh blockchains as we can see here like uh over the years we have more and more blockchains. You can see now how easy you probably saw in in like previous lectures like uh how easy now nowadays is to spin up a new

blockchain. you can do that and I think someone said like 10 minutes 15 minutes h so you can imagine like the importance uh of connecting those those blockchains because uh even though it's it's good to have new blockchains um you also want to do stuff with them you need you need to bring assets you need to bring users and that's uh where we're trying to help um in the past few years as well apart from from these blockchains what we've seen is how liquidity has been moving on central price exchanges to the dexes. We probably most of us know about the 2020 2021 craze. Um, you know, new coins.

We're all expecting a new one uh shortly, but it's undeniable, you know, um, onchain transaction swaps that that we're seeing where um, you know, some more of them. Okay. So what can we do with block interoperability? Um I I mentioned on this um the beginning. So uh we can bring new users to to new existing users to new chains. H we can make people who are using for example Ethereum they can take

their their function to another chain. And it it allows to access those funds not only for users but for protocols. Say you have um USBC you want to use that not on it. You you want that like everywhere and it's stables everywhere. Uh and you know dayto day finding more cases. I'll mention a few more in a little bit. Okay. So do does one do everything on it own?

No. What what we do best is is passing messages and people always relay one hole in uh bridging. No, that's like just one of the things that we can do with these messages. So on on the we're kind of the the foundation of of of how we think of crosschain. On top of that you may see like applications like bridging which is the portal bridge. Maybe some people here you have used it. Uh we have USDC they have like their own CCTP implementation. Uh also uh we work with them on a few other chains. We have Maya. Some people may have heard of uh

intense. Those are also technologies that work on top of wormhole. And then on top of that you can have aggregators, you can have LiFi. So what they do is use the the liquidity and protocols underneath to sort of combine and find better routes. And on top of that, of course, you have your you have your wallet and your your user layer where where people can interact with all these uh protocols. So uh why is it difficult to to do crosschain and why can every anyone do it? Well, first there's a lot of security uh considerations, right? We've

seen a lot of hacks from people doing ro bridges. uh some cases against rolling bridge that was a very famous one and there's like a large amount of of cases why security is paramount decentralization uh because obviously you don't want a single person organization or entity controlling all the rules or moving those funds. Uh what we do for example is have a um a set of guardians which are kind of validators and we distribute that among uh at least uh 19 uh trusted organizations. Uh and all of the code is

open source and verifiable so that anyone can you know how have find issues report them and make sure you know that you know what we're running is is what they they would expect. Also scalability this issue is scalability is is paramount. You want to go like millions or billions of dollars. You cannot have something that doesn't scale. And obviously user experience want to make it easy for for your users to move fun around is not what's available to your to your bank. Um so a few of the things that I mentioned about why it's secure. Uh you in our case we have bug bounties. Uh

those are open anyone can can check them like if you find something you can get a bounty. Uh in our case we do a lot of bounties. We have uh contributors from wormhole that work on this audit but we also get external firms to to do this for us. Uh and we also take very serious uh assessments from other protos who may want to run their own assessments. Uh unis swap was made actually a very large one. I think it was a couple of months ago. I'll talk about that a bit later. Let's see.

So a few more use cases what you can do crosschain. The most important that the main one that comes to mind is uh obviously token transfers. What's one uh is simply moving uh tokens around. We have various ways of doing that. Uh one could be the the portal bridge. We have a framework I'm going to explain shortly called MD and also recently like intense we have released a new uh protocol called one called settlements h I'll explain that shortly another thing you can do is

borrow and lending we have a few iterators that have done a few nice things with that they have like pros in one chain and you lend to to different chains. NFDs is for example I'm going to show now in in a little bit an example but say if you mean an NFD in one chain you may have a use case in another chain you don't want to do that like repeatedly why not just uh have something that can interact with it crosschain oracles um also a big use case uh that we have with with wormhole for example if you want to know the price of an asset on a different chain.

How you how you do that? Well, going to explain that shortly. Governance also a very good use case. And uh that one um has been used by unis swap and so you know how like you have your tokens on on your base chain but you also distribute them like to our chain. How do you you have a secure um onchain portal that considers all that? We have a tool called multibot that what it does is that securely collects the votes across all chains and then does the final tally on the on the main chain. Another use case is could be

identity swapping. This is the one I was talking about just now. Governance. You can see like covers a lot of a lot of chains. Uh what? Well, here you can see a bit more uh how things work on our portal bridge. Another way of of using this for swapping is using wormhole connect. We have a a widget of very simple to use with like three lines of code. You can use that on your protocol and you know spin that up in no time and you know have your have your users move your token or or token that you may need very

simply. Um well as you can see there there's like a wide adoption for this uh a lot of transfers daily. Um if you want to you know have a look at what people are doing crosschain I also recommend you go to to workscan.com there you can find um like um this kind of like a blog explorer but for clustering it's very interesting and you can see a lot of these. Okay. Okay. This is one of the of the most important products for us. It's called entity native token transfer. So what does this what does entity trial solve? H you know how you

you may have used native bridges or there there are a few things that that you can't do with some frameworks for example um and also this happened with with portage if you if you need a to have a token with custom logic h generally what what projects do like they deploy it on on a on the main chain and then when they use a bridge, what they get is like a they get an L2 token that's very limited. It's generally owned by the bridge and it doesn't help like very well uh when when you when you need to

do stuff for them and you uh because in most cases like protocols don't control the token and they might need to do things with that. So what we do with NTP is let the project deploy the own tokens on all the chains and this framework what it does it's not another token standard what it does is it's a manager that connects to all the instances of your token and when people need to move them around when h it creates the token or it means the token or it burns them like according to what users need to do or in the case where that's not possible possible. Users move tokens to the bridge, they get locked and they get

minted on the destination chain. Uh it's open source, it's uh composable, people can make changes if needed. We've had integrators that have you know customized it and it's it also works with governance. Yes. So like I was saying h we don't know the the deployments everything is owned by the protocols. It has um security features like access rows. It's possible. It has very limiting if you don't want to allow your users to move big quantities at the same time. And it's all h verified by our network of guardians. uh it is also

possible uh to have m of n verifications. So if protocols want to use their own verifiers, they can also do that. I mean they can customize it at will but uh that's also a a feature that some people like to use. Another product that the projects have been asking for a lot is this one queries. when I was talking about oracles mainly what you can do with this is h use our network of guardians to uh query about data on another blockchains h so say so you like like I was saying if you want to know the price of an asset on another

chain but h don't want to you know run multiple transactions or or bring the data from uh an untrusted source or offchain uh you can ask or guardians they'll sign the the data and then you can use for your own purposes. Uh well, I guess for price fees, different you know kind of things. Um another tool uh people use a lot is like I think I mentioned this one uh one whole connect uh is used to to like with free lines you know deploy it in your in your front end and move tokens around easily. Uh, another very good use case for this is uh for gas

drop offs. So if if you're working with a new chain and maybe your users don't have gas there yet, apart from uh breaching your tokens, you can leave some some gas there for for them to work with. If I can play it. See if I can play it. Yeah, let me let me show a bit how it works. So, yeah, you can choose the from network, choose your two network, pick a token. You can add more

like you're not just limited to the default list. From there simply they can choose how much uh gas they want to receive and you know very shortly they'll get their their tokens. All right. All right. So apart from all of this uh what are we working on as a company? Um one of the things that we want to bring in is CT proofs. Uh we think that is like the end game for for crosschain security. It will allow us to go further

knowing stuff on chain. And before I finish uh let me see if we have time. I wanted to show you how to use a let's see NPT to do something a bit more more practical. One second. All right. So for entity um we have different ways of of of working. Um this

was a a product we released very recently. It's uh it's we generally have been recommending projects to use the CLI. You can get that from our repo. But like for simple cases, uh I wanted to show you how easy it is to to get this working. So what I'm going to do is to get started and I'm going to quickly launch a new crosschain token and show you how easy it is to do that. So let's see have my wallet connected. I'm going to deploy it on base. Let's call it preimeto. We give it some

supply. And now we can choose like to uh which networks we want to deploy this to. Uh I'm going to choose one. The beauty of it you can you'll see later you can manage and add more when you want. So I'll just do arbitrum as well. So I'll deploy this sign a transaction. Boom. There we go. Okay. Now we've deployed. Now that it's confirmed, I'll just go to Arbitron, deploy the second token. Remember, these are native tokens. So, I have to deploy them, you

know, separately. It's not like I'm taking one and and and breaching it. Like, these are native. Boom. There it is. And there on the dashboard, you can see the the address. See if I can see it. Well, thank you Ban. Always a pleasure. Well, at least here you can see like uh where it is if they have limits and you can configure them simply base. You can add this uh

thresholds that I was talking about. You can see like if there's limits. Let me see about arbitronum. There it is. Okay. And you can see like it's on arbitum as well. Since I'm the owner, I can choose just to pause it. Let me see if I can open it at least on arbitum. Yeah. See it. Obviously you can use your own token contract h but in this case I mean for the web UI was to deploy a new one we have like a standard version uh let me see if I can have some methods

just to show you yeah the issues okay so apart from this okay now you can see like both chains apart from is H obviously you can see if I can go to the main page. Yeah, you can also like if you have an existing token you can go via the UI add the address and and create deployments on multiple networks. It's really very simple to use. Obviously for more advanced use cases I suggest you go to the to the native token transfer repo on GitHub. I'm happy to send that to anyone who can find it very easily.

And another thing that I wanted to to show is like a more raw uh use case which is sending messages between chains. So here I have a an example repo uh that shows how to send and receive me messages across chains. So what you would do in this case is on on one chain you would set up your message sender. Let me see if I can explain it a little bit. So uh you would create it passing it uh the address of the one whole re layer for that network. You can find those on our documentation. Uh each network has you know its own

um so what you would do is on the send message function is give a target chain and a target address. The address would be the one of the recipient contract. And you can in this case for for this example we're passing a message of the payload is not relevant. In this case it's just a text message but you can you could pass for example um parameters for a function call on a destination contract. I I'll show that in a bit. I have a more advanced example. So in this case what it does it gets the cost of passing that message to the destination chain. uh it makes sure that you know the funds are are passed.

It's a payable function and then uh it says it sends the payload to to the relayer. Here you can see that it's encoding the the message and that's it for the for the sending part. Now on the recipient part uh here is the example uh receiver. Uh similarly it it you know you begin deploying that with a re trusted relayer address. Uh there's a few like security considerations that you may want to have like to register uh who's able to send because obviously you don't you don't want to like process messages from anyone. And let's see uh

and here will be like the main the main part to re receive the message. The relayer what uh calls this function and passes the the payload that you that you sent from the origin contract. So it'll do some you know verifications like I said to make sure that you know the the the senders can do that and the the message comes from the relayer and in in this case what it does it it decodes the payload and it extracts the the message and you know finally like for this very simple example what it does it it emits an event uh which is the the string that we send from from the so this is like the simplest use case for sending stuff

uh crosschain. Let me see if we have an example. Uh let's show that now. Yes. So, so if we go one step further, what what else can we do? You could allow minting an NFT on a different chain. H So, here I have a an example of a of a store. And what this does is it uh let me see if I can go to the to the main part. Let's see there a function. Okay. Well, let me try to

explain. So, it's a bit longer this one, but okay. So what what this h does mainly is it takes a a payment from a token defined by the by the deployer. You can see here how it it transfer the the token. So this goes to a treasury on a source chain and then let's see it it calls this send crosschain mint h instruction. Let's I'll show that in a bit which does something very similar to what we saw before. So from the contract it depending on what the user call it grabs an NFT type an ID and it sends that to to the to a destination

chain. So so you can see like the the address in this case is the same level of the of the buyer. Then on the destination chain uh let me scroll down a bit. Okay. You will have like the receiving end. So on the just to uh recap a little bit on source chain you have your store you receive the funds you send the message to to meet the NFT on a destination chain. Okay so now you you received the message of of the purchase confirmed by the origin contract and here we go here. Uh yeah you decode the instruction. So this is kind

of like what someone there was asking before. So you can decode the message for for whatever you know purpose that you have. H in this case you you get the buyer you get the NFT type you get the an ID you get how many NFTs you want to mint and then use that instruction to H talk with an NFT contract and mint the you know the NFTs on the destination chain. So there you have like a end to end purchase process across two chains. This is just you know another another thing that you can do that's a bit more different than maybe just between tokens just to put another another example. So well I hope you like the the talk and

that I didn't go too fast. Thank you.