{"id":19620678,"url":"https://github.com/nakov/client-side-ethereum-wallet","last_synced_at":"2025-04-28T03:32:09.007Z","repository":{"id":146212837,"uuid":"130171779","full_name":"nakov/client-side-ethereum-wallet","owner":"nakov","description":"Voting DApp with client-side Ethereum wallet. Implements register / login / logout / vote","archived":false,"fork":false,"pushed_at":"2018-12-22T21:59:44.000Z","size":136,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T05:51:12.218Z","etag":null,"topics":["authentication","client-side","encryption","ethereum","wallet"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-19T06:53:23.000Z","updated_at":"2020-11-15T06:21:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f93d07ab-9f0e-492c-9b82-b6e7f7f86e08","html_url":"https://github.com/nakov/client-side-ethereum-wallet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakov%2Fclient-side-ethereum-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakov%2Fclient-side-ethereum-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakov%2Fclient-side-ethereum-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakov%2Fclient-side-ethereum-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakov","download_url":"https://codeload.github.com/nakov/client-side-ethereum-wallet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251246169,"owners_count":21558759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","client-side","encryption","ethereum","wallet"],"created_at":"2024-11-11T11:19:40.573Z","updated_at":"2025-04-28T03:32:09.002Z","avatar_url":"https://github.com/nakov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Client-Side Wallet - Demo\n\nPlay with the demo now: https://client-side-wallet-demo.herokuapp.com\n\nThis demon example demonstrates how to build a simple DApp (Voting) with client-side Ethereum wallet. Based on Solidity smart contract and client-side UI (JS + jQuery + Ethers.js) + server-side account management (Node.js + Express + simple REST API). The wallet is encrypted in UTC / JSON format (both private key + mnemonics are encrypted with AES-CRT-128 using SCrypt key derivation).\n - The app implements register / login / logout / vote.\n - Candidates and votes stay in Solidity contract on the Ropsten testnet.\n - Users register in the system and get a wallet (private key + address)\n    - The wallet JSON is stored after strong encryption at the server side\n    - The wallet password / private key never leave the client app\n - User login -\u003e download the encrypted wallet JSON from the server\n - After login / register, keep the encrypted wallet JSON in the browser session\n - Logout -\u003e clear the browser session\n - Use different passwords for server login and for the wallet\n    - Wallet password (client-side): HMAC(password, username + 'wallet')\n    - Server password (wallet id): HMAC(username, password + 'server')\n - Lost password cannot be recovered / reset -\u003e use the mnemonics\n - Based on the Ethers.js library\n \n## Project Structure\n\nThis DApp example is based on JavaScript (server-side + client-side)\n - `public` - holds the client-side JS app\n - `src` - holds the server-side Node.js app\n - `contract` - holds the `Voting` solidity contract, published at https://ropsten.etherscan.io/address/0x121241C506ebb1d04A4d8d355D37aC9fd06361de \n\n## Running the Demo\n\n1. Download the demo from GitHub:\n```\ngit clone https://github.com/nakov/client-side-ethereum-wallet\n```\n\n2. Go to the project directory:\n```\ncd client-side-ethereum-wallet\n```\n\n3. Install the NPM packages\n```\nnpm install\n```\n\n3. Run the server\n```\nnpm start\n```\n\n4. Open the project URL from your Web browser:\n```\nhttp://localhost:80\n```\n\n## Slides and Videos\n\nSlides:\n - https://www.slideshare.net/nakov/clientside-wallets-in-dapps-nakov-blockworld-2018-san-jose\n \nVideos:\n - https://youtu.be/Wi9nZNUC_B8 (in Bulgarian language, Ethereum meetup, Sofia)\n - https://youtu.be/7b3Pr7DMSMc (in English, at Microsoft Singapore)\n - https://youtu.be/_E_HPGbDRmk (in English, from BlockWorld 2018, San Jose)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakov%2Fclient-side-ethereum-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakov%2Fclient-side-ethereum-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakov%2Fclient-side-ethereum-wallet/lists"}