Decentralized AI, seamless multi-chain, full stack decentralization, and more: next-level Ethereum using the Internet Computer.
ETHCC 7 · 8 Jul 2024 · 29:20
Dominic Williams, founder and chief scientist of the DFINITY Foundation, presents how the Internet Computer and Ethereum could work together. He says its smart contracts pay their own gas (reverse gas), run full-stack apps on chain and use chain key cryptography to sign transactions on other chains without bridges. He sketches how AI smart contracts could check Solidity code for vulnerabilities or perform autonomous KYC, and shows a multi-chain wallet under construction, the OpenChat messaging app and the Bit Royale game. In Q&A he says inference works on chain for models of about two billion parameters or fewer, while training needs GPUs and GPU determinism remains a challenge.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Oh, I'm Dominic? Oh, there you go. Look at that. This is straight on the mic. I do, they should be on here, right? Okay. Do you want to do that? They should be on with the computer. Yeah.
So you have a clicker or something. If you just download it and then that's what I'm uh just a little bit so I thought it's powerful.
Everything I say is amplified. Yeah, the uh the the pointers out.
Yeah, the pointer out of the slide. Or you can do the error. You can wave as well if you want. So what is the issue? Oh, there's just no clicker, but you can uh the clicker doesn't work? No. But you can uh how come the clicker doesn't work? Yeah, I don't know. Is it connected?
So good. Long will they take the more people come. Can you do it without the pointer? Well I could, but it'd be weird.
It's kind of like we sort of. I can, I mean. It's gonna just be very weird because it's like every time I come back, I'm gonna have to come back and like fiddle with the laptop. And if you see on the video, it's gonna look fucking strange, right? What's that? What's the problem? Is that like uh is that Bluetooth? Yeah. It's not connecting? It's not connecting. It was connected before. Uh no, the uh actually the person responsible for this is not here. The person who had it did it before is not here. What is it called?
This will look very much. It's just like a Logitech device, right? How do you buy how do you um how do you make it uh discoverable like some people press it down again? You just press it and it makes it without the pointer. Yeah, okay. Let's go. Yeah, but guys. You understand that before like video and stuff is like bullshit because you can't this gotta be like walking across. Like your videos here, you're gonna see me walking out of screen. Like you should be able to press this and it'll flash blue. And then it that's how you connect it. Like you if there's a button on it, you press it, and it should be flashing blue.
We need to move on and we don't tap it. I get it, but it's not my problem, right? Like it's not a pointer, that's a pointer. That's not is that a clicking device or a pointer? No, I know how. Ah, there you go. Okay. There you go. That should be it. That's gonna be it. There you go. That works. Thank you. Don't worry, don't worry, don't worry, don't worry. All right, we'll try it. So uh thanks everyone for coming. I'm Dominic Williams, uh founder chief scientist of the Divinity Foundation.
Uh, we're the largest contributor to the internet computer. And my talk today is uh next level Ethereum using the internet computer. I'm gonna talk about uh how these two networks are synergistic. Um so for those of you, how many of you know about the internet computer? Can you raise a hand? Okay, so it's actually pretty good, yeah. Uh it's it's a blockchain that um behaves a bit you know a bit like a cloud, um, a smart contract cloud. And it enables you to build anything fully on chain.
Uh it has trustless multi-chain uh functionality, uh which means you can build dApps across multiple chains. The network is actually a DAO. So there's this thing called the network nervous system that's integrated into the ICP protocols, and the network is configured and updated in an entirely decentralized and automatic way. And lastly, uh the entire network runs on sovereign hardware. So there are no cloud validators on big tech.
It's all these things called node machines. Uh Definity Foundation uh is kind of designed as a NASA for decentralization, and it's created the internet computer with more than a thousand uh person years of RD effort so far in counting. And the mission is to enable what we call uh blockchain singularity, which is essentially the migration of all compute on chain. So we we see blockchain as the future stack and replacing current IT IT.
We're an early spinner from the Ethereum community, probably dating back to 2015. About 300 people globally and we're headquartered in Zurich. So the paradigm has been pretty successful. We've seen 300% growth in compute year on year. And today the network's processing 350,000 plus Ethereum equivalent transactions a second when you're actually measuring the low-level virtual machine instructions being executed. So I invite you to go to the dashboard and have a look at this thing.
On Ethereum, smart contracts are synchronous, which makes DeFi simpler. On Ethereum, the user always pays for the gas, right?
So you know you'll create the transaction in something like MetaMask, and you'll configure the amount of gas you're gonna pay for the comp the smart contract computation that will result. On the internet computer, the code, the smart contract always pays for its own uh computation. So you charge the smart contracts up with gas, it's called cycles on the internet computer, and they pay for their own computation. And this is really important, it's called reverse gas. And it's really important because it enables the smart contracts to stay in the background and do things like uh directly interact with users by creating interactive web experiences by processing HTTP. Ethereum, of course, is expensive, costs a few dollars per transaction.
Internet computer, uh, very inexpensive. So you can imagine taking the Ethereum cost and uh dividing it by something pretty big, like one and a half million times. Very different things. So uh when you integrate uh ETH and ICP, you really can't build anything fully on-chain. So the internet computer, of course, hosts these things called uh canister smart contracts, uh, which can store and process massive amounts of data, and they can create interactive web experiences. But the internet computer network also has this thing called chain key crypto.
And actually it's integrated with both Ethereum and Bitcoin at the network level. And this chain key crypto layer enables smart contracts on the internet computer to create signed transactions that run on other blockchains. And this allows for trustless integration with our bridges. So already today, for example, people are using uh what we call chain key USDC, which is really just USDC on Ethereum on the internet computer. And we're sort of almost to the point where you can do bidirectional smart contract calls, which will be a big game changer. And with this kind of functionality, we're entering a new era of full stack decentralization where things are built 100% on chain without current IT.
So today there are already things like social networks running 100% on the internet computer without any need for things like Amazon web services. Also things like order book DEXs, like DEXs that look like C Fire but are actually running 100% on-chain. And the latest thing is we've now got neural networks running as smart contracts. So you've got AI smart contracts. So we'll talk about a bit about AI.
And you know, AI is going to be the beating heart of Web3. It's incredibly important for Web3. And I invite you to dream a little and we'll go through some examples. So the first example I'll give you is smart contract safety. Today, you know, you can go to Etherscan and you can check out the Solidity code behind an Ethereum smart contract. The problem is, of course, that most people don't have the skills to audit Solidity code. So they've got no way of knowing whether the smart contract is safe.
Does it have re-entrancy bugs? Does it have a backdoor that could lead to a rug pull? Does it contain malware that will cause it to attack other contracts? Most people just don't have the skills to audit it themselves, and even if they have the skills, they haven't got the time. So the solution, of course, is to use an AI smart contract. It would have to be something akin to an LLM. And this AI smart contract can enumerate the Ethereum blockchain, look at the code hashes, download the code from GitHub, and essentially verify that there's no reentrancy bugs, no back doors, no malware inside, and credit certification that can then be displayed on something like Etherscan. So you can say, yeah, this Solidity code has been verified by AI.
And of course, this is only really meaningful if the AI is running as a smart contract. Otherwise, who knows what logic it's running, right? Autonomous KYC. So something interesting coming is that people are going to want to trade security tokens on DEXs. And you know, we're based in Switzerland, and regulatory changes there have meant that you know you can tokenize the stock of a company. And the that's gonna work fine, but of course, there are still regulatory restrictions, and you know, KYC and AML and things like that are um part of them. So you've got a DJ and he wants to trade security tokens on a DEX.
What do you do? Well, we want to make everything as decentralized as possible. So you can use an AI smart contract to do facial recognition and match a person on a video feed to identity documents. You need something else that can validate the identity documents, but there are lots of people who've done that. And then the AI smart contract can you know issue credentials to an identity system and allow that user to trade the security tokens on a DEX. So this actually is an interesting example because we've uh just been playing around with smart contracts on the internet computer that do facial recognition.
And uh if you follow me on Twitter, you'll um catch them. I think within a couple of weeks I'll I'll post that that video. There's already a couple out there. So uh that's AI. Uh, what about multi-chain? So uh there's a wallet under construction called OIZ.com, which I think you know uh helps explain this in a really simple way. Is this thing a website or is it a wallet? Um the answer is it's both. It's actually, of course, a smart contract that's creating the interactive uh web experience. And the smart contract um holds the crypto, it's a multi-chain wallet that holds the crypto using chain key technology.
And uh the user authenticates to this smart contract using a pass key based system, which is much more secure than you know, having a seed phrase and things like that on your on your system. And it's seamless once you've authenticated, you can do stuff. Um you have a single list of assets. Uh currently, it's got Ethereum assets and internet computer assets in the same list. Uh, Bitcoin will be added soon. And it's fully compatible with Ethereum DeFi. So you get this added security, censorship resistance, right?
Because nobody can block a smart contract that's serving web, but you know, Google can chuck wallets out of the Chrome store, Apple can ban uh wallet apps from the app store. Um you get rid of that. So you get censorship resistance, you get more security, and you get user experience benefits. And all of this is working without bridges, it's all based on trustless math and direct network integration. So internet computer nodes talk to Bitcoin nodes and they talk to Ethereum nodes.
So some of you might be sort of making the jump and thinking like when LLMs inside smart contracts, right? Because once we have large language models inside smart contracts, uh we can do all kinds of really sort of sexy and fun things with DeFi. So you can imagine saying to your wallet, like uh cancel all my previous instructions, sell half my wrap BTC for USDC if the price hits 100,000, swap half my USDC for the ETH whenever the price falls 10%. Uh every day at midnight, swap 10,000 USDC for ICP.
And you could give that kind of instruction to your wallet over your phone from the beach. So that's what's coming. Um that's one of the reasons we you know we're working very hard at uh Definity to enable the internet computer to um run LLMs, and it's it's not so far off. Social media, um there's actually this really mature uh application called OpenChat. You can find it at OC.app. It's worth checking out. It's a sort of mix between social networking and messaging, and it's 100% decentralized and fully on chain. Um smart contracts, you know, process and store profiles, messages, media, and every user's account is is also a wallet which can hold tokens, which shows you that a wallet can be anything, right?
A wallet can be an application, it doesn't have to be a wallet. And users can um do things like send chain key Bitcoin uh in about one second inside of chat messages. And I think this illustrates some of the advantages of being fully on chain and not depending on on users having to configure every transaction themselves and allowing transactions to happen in the background within a secure session, which is only possible when you have things fully on chain and users are interacting directly with with a smart contract. So they create a session with the smart contract, smart contract knows they're interacting with their user, and the smart contract does things on on their behalf.
And this thing already has many tens of thousands of users because it's able to scale horizontally. And this is one of those kind of like counterintuitive things. We see blockchain as a scaling platform. Um and I think the proofs in the pudding, and you can see it working with this open chat service. And you know, what's incredible is like you've got this social media service with tens of thousands of users inside who are using uh the service to store crypto. Like their crypto contains their accounts contain crypto, right? But it's a small team of engineers, there's no security team.
There are, I mean, they do some code audits, of course, but you know, uh it's pretty safe. There's no firewall, there's no anti-intrusion software, there's no mal anti-malware. Um, and that's because it's fully on chain. You know, there's no hot wallet running on Amazon or something stupid like that. The whole thing's on chain and end to end. And furthermore, uh this service, open chat, um, runs under the control of something called a service nervous system DAO. And that gives the community of open chat full and exclusive control of the service. So all of the software updates actually proposed to this DAO.
And if they're accepted, they're pushed into the service, the smart contracts that make the service, with complete automation. Games. So uh actually, I don't know, uh, for those of you who know me for a while. I mean, before I pivoted full-time into crypto in 2013, I was uh I had a game, a computer game, it grew to about three million users. And so I kind of felt like you know, recently that um you know we need to see some fully on-chain games and credit game that like really illustrates to people the advantages of being fully on-chain. So I got involved with this thing, and and um it's it's called Bit Royale.
And uh so basically it's like survive to win, okay? And because it's fully on-chain, again, tokenization is seamless, and your life is Satoshi's way or E8s, which is the internet computer equivalent. So there's like Bitcoin Royale, Ether Royale, and ICP Royale. And what's cool here is that the smart contract is the game server, right? And so it's creating a kind of environment that's a sort of mix between first-person shooter, RPG, and real-time chess. You can move make one move every sort of second or so.
And uh the idea is you know, you kill other players, get their life, i.e. Satoshi's way or E8s, and then when you get down to the last 10% of players, it's game over and you you get to keep um what you've got in expectation 10x what you started with. Um you can only do something like this if you're fully on chain. In the same way you can only create something like OpenChat where you can send crypto um with chat messages if if you're fully on chain. You have to um put the user within within the chain environment.
There can't be an intermediary. So you know, invite you guys to join us and you know look at ways that you can integrate uh with the internet computer. There's very exciting things are possible when you combine Ethereum and the internet computer. Uh ICP hubs all over the world now. Uh we'll probably be more than 40 by the end of this year. And uh I think I don't know how long that went. Have we got time for a quick question? Or quick question. All right. Um questions. Anyone, you have to shout it out. Yeah, regarding the AI application, uh are there any limitations now for the type of models?
For example, if it's a uh computational neural net uh network um that needs GPU, is it really possible to run it like an on-chain ML model? Yeah. So there are two kind of two kinds of tasks, right? Convolutional, I mean uh with an AI model is training and then there's inference. So training is much, much more expensive. Yeah, yeah, just so just running a model that is already uh learned. Yeah, so uh training, you're gonna need GPUs, and you probably do off-chain, but inference works just fine on chain. So uh I mean there are a bunch of things that the internet computer does which are unusual.
For example, you it can run transactions across multiple blocks and so on and so forth, and it's extremely efficient. But um, yeah, you know, inference works just fine. Um we haven't done large language model inference yet, but we're trying to get there. Uh the challenge there is that you know currently the internet computer uses 32-bit WASM, and so you basically need twice the uh small contract memory as the number of parameters. So the neural networks that we've demonstrated so far have like two billion parameters or less, so they fit in the four gig the 32-bit gigs gives you. But the internet computer is moving to 64-bit WASM soon, and then probably the memory limit will be raised to like 15 gig, and then you can fit like um uh Lama in.
So we'll have to see how fast that runs once we get there. But so far the signs are very encouraging. Uh since I did my first demo, like April or something, March, I lose track, but uh we've increased you know, sped things up enormously. For example, we've had uh SIMD instructions which allow the you know the WASM to process multiple calculations in parallel and things like that. But so we have, you know, we we would try to get to um adding GPUs to node machines. It's on the roadmap. Once there's a public spec, like node providers can build these machines.
Um they'll be expensive, probably like 120 grand each, because the cost of H100s and things. The challenge actually is the determinism of GPUs. And these GPUs have a lot of cores, and the order of calculations that you upload to a GPU isn't deterministic. So we're putting a lot of effort into finding ways to make it deterministic. And actually, there are other reasons to make it deterministic too, not just for AI, you know, speeding up AI smart contracts. Fully homomorphic encryption can actually be made practical using GPUs. But same challenge, it needs to be deterministic.
So that's something we're working on. But make like deterministic state transition as usual, yeah. I mean, uh in blockchain, yeah. We cannot uh make anything if it's not deterministic. So yeah, we need first to have to be deterministic, yeah. Absolutely has to be deterministic. Yeah, and regarding the privacy uh of this data that is processed and both the parameters of the model, um, is it somehow possible if it computed on-chain, but still make it uh encrypted, maybe private. So uh internet computers um you know works in a very different way, and you can see that from the performance metrics you get out of it. So uh with the number of transactions it processes, you couldn't have a blockchain where everyone validates it by downloading it to a local client.
So uh has a single, it actually it's also chain key crypto. So you have a button inside the network, you have these transparent subnets, which are blockchains, they all have their own public key. Um obviously there's no private key because they wouldn't be secure. And that's how replication is limited. It's the thing called deterministic decentralization. So the network nervous system that runs the network creates these subnets by drawing nodes from different node providers, different data centers, data centers in different geographies, data centers in different jurisdictions. And that's how it really brings the replication factor down while preserving like you know security and resilience properties you expect with the blockchain. So you know, you I think at the moment the demos are running on like 13x replication.
So I don't know how much you know about it. It's like 3F plus one and F is four in this case, right? Thank you, thank you very much. But but the thing is you can't connect to those subnets and just download all the blocks. I mean, blocks aren't even stored anyways for for that long. So to actually get the data, you need to get physical access to one of those node machines. So yeah, the node providers in principle have it, but you know, that's not obviously their interest. Thank you so much, Dominic. Uh, it's our time. Thanks very much, everyone. Thank you.
Related talks
- Fully On-Chain: Internet Computer
- The Future of Tech Is Self-Writing
- ETH Evals: testing agents on Ethereum
- Human + AI Solidity CTF: bring your own agent
- Ethereum and Internet Computer: World Computer
- Building on Ethereum with agents
- Agentic Hub - Can We Trust the Machines? A Live Trial
- AI in Protocol Security at the Ethereum Foundation, Antoine James | ETHSofia 2025
- Decentralize artificial intelligence by creating NFTs on IPFS & Ethereumby Kailash Ahirwar