Cometh Cometh Connect Workshop
ETHGlobal·Mon, Oct 9, 2023, 12:00 AM
Join us for a Cometh Connect Workshop! This workshop is part of ETHGlobal's flagship online event: ETHOnline 2023! ETHOnline 2023 has grown into one of the most exciting events on our calendar, anticipated by hackers all over the world. ETHOnline is a three week long online hackathon with over $200,000 USD in prizes as well as a series of curated summits, celebrating some of the most significant happenings & learnings from the past 12 months in web3. ----------------- Follow us: https://twitter.com/ETHGlobal Check us out: https://ethglobal.com Email us at: hello@ethglobal.com
Transcript
[Music] hello guys so I'm Yan from K I'm the lead Dev for K connect and I'm going to present you a small workshop for the HD online uh to begin with a small summary what we're going to talk about first of all what is a c abstraction then a description of commit connect then a small live coding session and a conclusion so what is a kind extraction the idea is a separation of concerns um if you take eoa so externally owned account what happens is that you have the account and designer as the same entity uh for example with a metamask account you have a private key that allows you to sign transaction and messages Etc and if you lose your private key your signer you also lose your account so you lose all the assets that are uh in the account in the case of contraction what you have is you have a decoupling of the account and the signer so we have a smart contract as the account and you can have multiple signers for that same account which means that uh for example if you lose one of the signer and you have another signer that is available you still have access to your account which is a big deal of course uh also unlocks many benefits uh what you can do is you can define flexible security rules uh in your account in your smart contract you can also Implement uh a recovery system uh in case of losing your keys um you can also relay transaction meaning that you can have someone pay the gas of the transaction for you you can also batch transaction uh to get better ux and you can even Implement uh multiple validation logic um not only the validation Logic the standard of the ethereum protocol another idea is that for us transaction experience it depends on the context um for example uh in the regular Finance system when you want to do a a touchy transaction when you're going to do a big payment you won't to have a system with different steps when you reassured because for example you have to uh put your identity you have to maybe have a PIN code and do multiple checks before you're really sending the transaction uh but on the other hand if you take the bus or the Metro you just want to maybe put your card or even your phone with Apple pay and pay in just one second so it depends on the context uh the ux that you want and in crypto it's really difficult to have that and that's what we try to do we try to create um frictionless transactions uh and we created an SDK for that but it's a really big technical challenge for developers so what is Comet connect the overview of the solution is that first of all we have an SDK uh that SDK allows different signers um the default one is Bon the one that we use and that SDK is connected to an API that API can uh create wallets deploy them Rel transaction sponsor transaction Etc and then that API is linked to a safe smart wallet with all the logic that the safe wallet allows now a bit overview of weam it's an open standard that was set by fedo it's supported by all mobile devices it's based on public key cryptography and uh the idea is that when you create a private key using Bon what happens is that the private key is created in The secur Enclave of your device and when you want to access that private key you have to authenticate yourself doing with different methods for example with the touch ID so with biometric um it what it means is that the DAP itself cannot access that SEC cloud you need the authentification of the user to really be able to access that private key and then sign transaction Lo messages at Comet we want to provide uh solutions for real life problem uh for example you may have some questions um with com connect can I use my account on multiple devices well of course that's the idea we have a trusted device management that allows you to uh have multiple devices as signers for your account um but you might also be wondering okay but if I only have one signer on my phone and if I broke my phone what happens well we have a social recovery system with the guardian that allows you to regain access to your account in a safely matter now uh a small live coding session so uh after going to the Discord of the eth online uh partner dcit you're going to have to uh go to that link that we sent you and write your white listed email sign in then you're going to have to go to your emails and verify your accounts which is what I'm going to do right now okay I just received the email can verify it all right now I'm logged I'm going to go to new project project I'm going to create a new project I'm going to call it if my presentation I'm going to create it on the Mumbai testnet click on launch so here I access my dashboard where I can have some data regarding my wallet my transaction and what's happening uh with my project I can click on API key with to have some info regarding API keys and other data and I can click on that button which is clone demo and what's going to happen is I'm going to download a sample which is a a project a small tutorial that I'm going to put here what I'm going to do is I'm going to do a small yarn all the packages of the uh the tutorial and then I'm going going to run a yev and the idea of the tutorial is to give you an idea of what we can do with commit connect we are there okay so now I'm here and what I can do is I can click on get your wallet now it's going to ask me to uh click on continue and put my Biometrics so what's happening here is I access uh a private key and I create an access a private key in my syron CL and then I deploy a smart wallet well actually it's not deployed yet but I created a wallet in our database uh and then I can click on increment counter uh to interact with a smart contract I'm going to put my biometric and then a transaction is happening uh so actually it's a multical where we first of all deploy your smart wallet and then execute the transaction which is a the increment counter on a smart contract and here it is the transaction has been executed I'm going to wait a bit for a polygon scan to uh index because it takes a bit of time but we should be able to see the data regarding transaction and here it is so that's a small overview of the tutorial um if we go back to uh the documentation in the getting started you will have a small description of what I just did with all the steps uh and small video uh and then in the under the hood section there's an explanation of uh what did what you just saw with a few lines of code for example the init of the com connect SDK with your API key the way you would create and connect a wallet so depending on if you have the wallet address uh of your user for example if it's the first time that you use commit connect for a user you can call connect without any parameter and you create a smart wallet then you can get and save his address and the next time you can put the address as parameter of connect and you can connect the wallet of an existing user uh you can also create eers provider so an eers V5 provider if you want to interact with a smart contract uh the same way you would do it with an eers provider what you can do is create uh the interface for smart contract using Comet provider and then called Methods for that contract for example we called the count method uh in the demo uh also if you want to check more advanced feature you can go through the docs for sending transaction and and gasless transaction adding multiple devices and social recovery uh and if you have any question you can ask us of course in the chat now going back to the demo um the demo for sure we have the conclusion here um in the conclusion um in terms of prices for the hackaton uh there's a price for the Smooths 2x which is the first price the second price will be for the best mobile dap and the third one will be for the most original use case uh and in conclusion a good luck to you guys uh you can check our docks test D SDK give us feedback uh you can request your access to the dashboard if you go to the partner Das comit channel on eth online we'll be happy to answer any questions that you guys have and help you in what you guys are building thank you
Automatic transcript — names and jargon may be misspelled.