GithubHelp home page GithubHelp logo

javacard-simple-wallet's Introduction

Simple Wallet

This is a simple wallet simply maintains a running account balance allowing you to credit, debit, or review the current balance of the wallet. This is simply for pure demonstration on various wearable technologies where a javacard secure element is available.

A very simple wallet client has been created to show a simple interaction with the wallet.

Installation

simplewallet.cap is provided for installation on a javacard enabled secure element through whatever provisioning tools you have available.

Information

Applet AID

F000A0000E00

Usage

Before any operation, the applet must be selected throught the following APDU command:

00A4040006F000A0000E0000

Get Balance

Request APDU

B050000002
  • If 0x9000 successful response, the balance is returned in response data.

Increment Balance

B040000001[AMOUNT, 1 Bytes]
  • Note: The wallet is not currently implemented to protect against a max balance of 32767.

Sample, increase balance by 5:

B04000000105

Decrease Balance

B030000001[AMOUNT, 1 Bytes]
  • If 0x9000 successful response, the balance has been reduced by the specified amount.
  • If 0xFF85 failed response, the current balance is not enough for the specified amount.

Sample, decrease balance by 5:

B03000000105

javacard-simple-wallet's People

Contributors

ssteveli avatar

Watchers

NyoikeThuo avatar

Forkers

start837

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.