Domain Wallets CAIP #275

ETHCC 7 · 9 Jul 2024 · 15:53

David Sneider of Lit Protocol presents CAIP-275 Domain Wallets, a draft proposal for logging in with a human-readable name. He says embedded wallets have split identity into one key per app. The standard links an ENS name or other crypto domain to an authenticator, stored in the domain NFT's text field. He then describes Lit's distributed key management network, using AMD secure hardware, MPC and threshold signing, and shows programmable keys enabling fast cross-chain swaps for Genius Terminal. In Q&A he says the deposit side matches today's bridging.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Alright, good afternoon. Thank you for being here. Oh, hold on. Hey everybody, thanks for being here. And if you're watching on the internet, hello. Um, my name is David Snyder, and in the next several minutes, we're gonna cover the following topics: identity online and the historical context there and where things are headed. Some of the new issues in identity that are emerging with the rise of embedded wallets, and I'll define those. But if not, pause at the end and see if there's any points of discussion.

So, as you all know, email has been the main identifier online for about 50 years at this point. And it just kind of seems like the de facto identity method for the internet, especially in the context of web two. But of course, with the emergence of web 3, we now have a new identifier, the almighty key, the power of owning assets yourself. And so with the emergence of the key as the core identifier online, one of the original dreams of crypto is you have one account for the entirety of the internet.

And the reality is that has not come to pass in terms of how identity works in Web3 today. What we've seen with the rise of embedded wallets, and just to define this, embedded wallets are systems where you go to a given application, maybe you sign in with social or email or whatever it might be, we've ended up in this siloed construct where there's one key or account per application, and there's a fracturing of identity between different applications and software as a service providers who are all competing for the biggest share, and there's not uh a method for unifying them. And so that's how we had landed on Cape275.

It's a really, really simple idea, which is take a user identifier like an ENS name or another crypto domain and associate it with key material. If you scan this QR code, that'll take you to the draft of the proposal. Also review how it works in just a second here. But essentially, what the idea here is is to close the loop, the product loop and the kind of the user journey loop that got started with ENS. The big innovation with ENS, the Ethereum name service, was to have a human readable name that you could receive crypto on.

For example, David.eth, I could collect uh crypto. But the limitation of that is that when I want to go log into an application, I can't use my name. And that's what a domain wallet is. Really quite simple. Combining a domain with a wallet, we'll take a look at this video, and you can see how this flow works. So you see login with name, go ahead and type in a name, and then an authenticator pops up, clicking connect, and now this user is logged in. Go back to here, and you see that they are fully connected.

And so this idea of having a name, a human readable name as the account object that again contains both a crypto domain as well as a as well as key material as well as an authenticator is a level up in terms of how to bring a new type of identity, identity associated with key material to the web at large. So just to go into a little bit of detail about how the standard works. Functionally, what's happening here, we can walk through these steps, is just associating the name of an authenticator. An authenticator, another synonym for that would be something like a key management provider or a web wallet, and writing that to the metadata field associated with a crypto NFT, such that when the user goes to the application and logs in with their name, they input their name and an authenticator is resolved based on the data that is written to the text field of the crypto domain NFT, and then that authenticator can be called.

Some other third party who's managing the user key or some of the user key shares or the whole key, whether it's self custodied or not. And this graph is all is is in uh on chainingagnostic.org under Cape275. And then as we saw in the video, the user can authenticate after logging in with their name. This works with social auth, this works with smart accounts, and uh just really excited about the unfolding here. Here are some of the teams that are exploring implementing Cape275 in a variety of ways, whether it's at the login modal or in specific applications and wallets. So that's a quick uh intro on Cape275.

Um I'm not gonna take a couple minutes and tell you a little bit about what we do at Lit Protocol, uh, but if there's any questions on Cape275, we can absolutely talk about that. So, what we built at Lit is a distributed key management network. And this is actually how we got into thinking about this notion of a domain wallet. And uh we've been working on this for we've been working on this for a little over three years. Uh I'll go over some of the architecture, but as you can see, this is a generalizable system for programmable signing and programmable encryption that is used across a wide variety of applications. Everything on this list, there's one or more venture-backed uh teams that are building with lit in this way.

So let's talk a little bit about the architecture. What you see here is a simplified diagram of a lit protocol node. There's three components to look at here. One is this sealed hardware environment. So this is using something called secure encrypted virtualization, secure nested pages. It is a uh secure hardware product from AMD. And we have written a specific operating system for the secure hardware to essentially seal it or make it blind such that the node operator can't get into that box. These type of secure hardware processors were initially built for the cloud providers that operate with a fundamental assumption that the app owner should have all of the data.

That assumption is not true in Web3, and so this is where this extra work around sealing the sealing the secure hardware environment takes place. And then you also see a key share, which is part of a larger set of key shares using something called multi-party computation, threshold secret schemes, as well as a JavaScript execution environment that enables developers to write application logic to dictate how they want the distributed key to sign or encrypt things. And we'll look at a couple use cases here in just a minute. So this is one node, and the network, of course, consists of many nodes.

And what you see represented by these check marks is a two-thirds threshold. So the way that MPC TSS is often articulated is T of N, threshold over the number of nodes. And so if there's a given request to sign some information, the user hits a page and they say, hey, I want to send, I'm Alice and I want to send five USDC to Bob. Alice makes a one-to-many connection with all of the nodes. All of the nodes validate Alice's authentication. Once two-thirds of them have validated that inside of the secure hardware, those signature shares, you could consider them authorizations, will either be combined by one of the lit nodes or combined by Alice client side, and at that point there is a signed operation, like a new feature that can be pushed out to the blockchain. And the ability to sign and decrypt data directly within the lit network.

I was alluding to this earlier when I was mentioning the key shares can be combined inside of the secure hardware environment. And there's been a lot of really interesting use cases that have emerged, like the ability to compute over private data in a secure hardware environment, but store that data in private on public state systems like Rweave and IPFS and in transaction metadata, as well as broadcast a transaction directly from this private execution and key management network, which has been really big in the context of chain abstraction. And we'll look at an example of that in just a moment.

Onto some of the private data use cases. There's several hundred teams that have implemented Lit for the purpose of private data, but I'll tell you about these three here. Fox Corp has implemented this in a product that they have out of their blockchain creative labs called Verify. It is an open network for content syndication. So when a media company publishes something, they can also publish it to this open network where the data is encrypted, and then somebody can purchase a license which is reflected on chain, and then when the buyer has purchased that license, they can go ahead and decrypt that data directly from IPFS and use it for AI purposes, uses it for syndication, whatever kind of is in the license. And one of the big benefits here is that the seller does not have to be online because the decryption key is managed by this distributed network.

And then there's also been a number of use cases around leveraging this system for uh what has been started to call digital product NFTs. So these are NFTs that you can purchase, and then you get access to some benefit. For example, Michael Jackson's first uh studio recording um it was encrypted by uh another block as an NFT marketplace, and uh a thousand of these NFTs were sold, and only the holder of that token is able to download that content and listen to it. And so that's all the encryption side.

The other big thing is onboarding. This is more on the signing side. Again, the two main functionality that you see in asymmetric cryptography with with key pairs in general are signing and encryption, and of course, these are the two core features of this distributed key management network. So this is from a uh company called ARC, AARC, uh, and Lip Protocol is being used as a wallet as a service or key management provider behind the scenes. And as you can see, there's all kinds of sophisticated social auth available here. And then very excitingly, uh, this is a system of a programmable key is also being used extensively in the context of chain abstraction, uh, which is obviously like what some might call an emerging narrative, uh, but is super exciting from the context of giving users a better experience.

And so, what we're about to look at in this video is well, let's look at the video first, and I'll I'll mention how it works. Is a swap that happened in a couple seconds between multiple chains. And so first I'll kind of like say how bridging normally happens, and then what's different about what we've just looked at here. In the normal context, you have two chains. You have your source chain and you have your destination chain, and you have some liquidity managed on the destination chain, and Alice deposits some money on the source chain on the home chain, and then a cross-chain messaging system has to write to the destination chain and say, the deposit is good. And now, once finality has been reached on that destination chain, the contract managing the liquidity on the destination chain can now enable Alice to withdraw.

What we're looking at here, and why this is so fast is this is taking really uh powerful advantage of the notion of programmable keys. The uh team that has implemented this is called Genius Terminal. And the way that it works is that the liquidity is managed by a programmable key on the destination chain such that when Alice deposits on the source chain, the account that's managing the liquidity on the destination chain is immediately aware of that. There's no need for bridging, and then Alice can withdraw immediately. As you can see, a human readable account that works across all chains with any token for gas.

And there's a lot of exciting things to build. I'm super grateful to tell you a little bit about Cape275 domain wallets and our work at lip protocol. And with that, I'd be happy to take any questions. Thanks so much. If you just have any question, I I can give you the mic. Yeah. Oh well.

Uh okay. Um in the bridging example you just gave, or the alternative to bridging, is it is it analogous to say the user experience for Alice is essentially uh transferring the tokens to a wallet rather than depositing to a smart contract, if I understand correctly? Um the deposit is still basically the same, um, but the liquidity on the destination chain is managed by a wallet. So it's the withdrawal that is happening via a programmable wallet. Uh the the on the destination excuse me, on the source side where Alice is making the deposit, it would be the same.

Right, but but the deposit um d I guess I'm more asking about like security from a lens of uh bridge hacks. Does this offer security benefits on the deposit side? Uh it would be a same construct uh that exists today in terms of the deposit. Alrighty. Well, thanks so much for being here. You can find me on the internet at these QR codes. I'm also here in this room, and you can come talk to me.

Have a great day.

Related talks