I believe that crossover Ethereum/Internet Computer dApps could prove to be an explosive combination and so decided to make a simple proof of concept dApp.
Ethereum apps that wants to deliver above and beyond of what is possible on chain often resorts to using regular centralised server solutions. Could off chain functionality instead run on the IC to create a mixed breed of Ethereum/IC apps - truly distributed, serverless and unstoppable?
The Wall is a working demo but could also be used as a template for creating crossover dApps.
I’m exited to get this running on the real IC after the Mercury Genesis. Until then, feel free to clone it and run it locally.
The purpose with The Wall is to try out and showcase a few concepts with regards to building these crossover Ethereum/IC apps. A proof of concept, a demo and possibly a template to use as a starting point for more advanced apps.
- Authentication: Can public key cryptography already used by Ethereum be used to login to the IC?
- Link eth adresses to IC identities: If owners of eth adresses can easily prove ownership and link that verification with IC identities, that would open up many interesting app possibilites - voting, membership and other various DAO use cases.
The functionality of the app is super simple. Connect Metamask wallet, sign a login message, select a username. Then you can post messages to the wall.
- User signs a login message using Metamask. The login includes a hashed secret that for the purpose of this demo is set by the app. To add an extra layer of security this secret (password) coud instead be chosen by the user.
- App generates the
Ed25519KeyIdentityneeded to authenticate with IC based on the signature hash.
- Message hash and signature is sent to IC where the eth address used to sign the message is recovered and linked to the IC identity.
That’s it! Now, the app can interact securely with IC, and IC has verified knowledge of which eth address the user controls.