Code Monkey home page Code Monkey logo

wallet-client's Introduction

Cryptofiat wallet client

Installation

npm update
npm install
npm run ionic:serve

Publish Android Native

  1. Increase the version number in config.xml

  2. Ask the team for android-release.keystore and passwords, save to platforms/android/

  3. Build APK

bash android-build.bash # keystore password shared in slack #wallet-client
  1. Publish in google play store

Ios native test

  1. ionic state reset is highly recommended after any codebase update
  2. ionic build ios
  3. ionic emulate ios or ionic run ios

Web release

  1. npm run ionic:build
  2. npm run ionic:uglifyjs

wallet-client's People

Contributors

alvarl avatar craastad avatar grosto avatar kaarmann avatar marat-iam avatar melnychukjs avatar r00z avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

r00z alvarlaigna

wallet-client's Issues

request money: payer side

User story

  1. Merchant has a link like this on the web-page
euro2:?r=http://wallet.euro2.ee:8080/request/foobar123
  1. Or merchant has encoded this same in the QR code
  2. App opens up a confirmation page with the prefilled payment details
  3. User presses confirm button
  4. App navigates to "Transfers" page and shows pending (or alternatively to the callbank link in the pay request)

Things to build

Hierarchical keys bip-32

  • generate the special key ( button on /keys ) and go through ID/Mobiil-ID verification.
  • after successful verification indicate to account-identity that this address is special and send the public key
POST /v1/hdkey
{
  address: 0x32323cb232
  publicKey: 0x321553235
  batchSize: 20
  minBuffer:  5
}
returns:
{
  [
    {path: 2/1, address: 0x232},
    ...
    {path: 2/20, address: 0x232},
  ]
}
  • mark this key as special in the app localStorage
  • on the /keys page show the special keys with a different icon, when expanded then fetch non-0-balance paths from server and show on the expanded block
  • when user refreshes balances, then pre-empt by loading non-zero balance sub-keys from account-identity and store these in localStorage

Construct private and business profiles from keys

When the app is opened then go through the array of password-encrypted private keys stored in localStorage.getItem("keys") and retrieve the identity for each verified key from account-identity in the form of:

{ idCode: "38008040123", idProvider: "EST-ID" }   
{ idCode: "123522", idProvider: "EST-BIZ" }   

See: cryptofiat/account-identity#21

Based on the responses construct profiles similar to the model

{ 
     identity: "38008040123",
     identifier: "Estonian-ID",
     commonName: "JUKU JUHALAINEN",
     name: { firstName: "Juku", lastName: "Juhalainen" }
     social: [ { schema: "twitter", URI: "@juhalainen" } , { schema: "facebook", URI: "jukujuh"}] ,
     avatar: "http://pic.twitter.com/nat.png",
     coverPhoto: "http://pic.twitter.com/blaah.png",
     keys: [ 
        { privateEncrypted: "0x1231", 
          public: "0x4323...",  
          hdKey: { type: hdKey, paths: [ "2/2322" , "2/3232" ] }, 
          addressCache: { timestamp: 1245342, balance: 32, approved: true, frozen: false } , 
          transferCache: { timestamp: "13456464", transfers: [ Transfer ] } 
        },
         ...
     ]
  }

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.