Git Product home page Git Product logo

client-side-ethereum-wallet's Introduction

Client-Side Wallet - Demo

Play with the demo now: https://client-side-wallet-demo.herokuapp.com

This 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).

  • The app implements register / login / logout / vote.
  • Candidates and votes stay in Solidity contract on the Ropsten testnet.
  • Users register in the system and get a wallet (private key + address)
    • The wallet JSON is stored after strong encryption at the server side
    • The wallet password / private key never leave the client app
  • User login -> download the encrypted wallet JSON from the server
  • After login / register, keep the encrypted wallet JSON in the browser session
  • Logout -> clear the browser session
  • Use different passwords for server login and for the wallet
    • Wallet password (client-side): HMAC(password, username + 'wallet')
    • Server password (wallet id): HMAC(username, password + 'server')
  • Lost password cannot be recovered / reset -> use the mnemonics
  • Based on the Ethers.js library

Project Structure

This DApp example is based on JavaScript (server-side + client-side)

Running the Demo

  1. Download the demo from GitHub:
git clone https://github.com/nakov/client-side-ethereum-wallet
  1. Go to the project directory:
cd client-side-ethereum-wallet
  1. Install the NPM packages
npm install
  1. Run the server
npm start
  1. Open the project URL from your Web browser:
http://localhost:80

Slides and Videos

Slides:

Videos:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.