Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeji committed Aug 11, 2018
1 parent 9c686c4 commit 86da61e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ For mobile applications, you can use `evtjs` by `WebView` in Android & iOS or vi
For backend applications, use `evtjs` via `nodejs`.

## Install

### NodeJS

For NodeJS, use `npm`:

```bash
Expand All @@ -25,6 +28,18 @@ Or use `yarn`:
yarn add evtjs
```

#### Optional dependencies

A C binding library for `libsecp256k1` could be compiled and installed if you want to sign on the transaction faster. All major platforms are supported except mobile devices:

```bash
npm install secp256k1
```

Using `libsecp256k1` can make the signing about 100 times faster.

### Browsers

For browser, you may download the source code and compile it for browsers in the root directory:

```js
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"ecurve": "^1.0.6",
"fcbuffer": "^2.2.0",
"qrcode": "^1.2.0",
"randombytes": "^2.0.6",
"secp256k1": "^3.5.0"
"randombytes": "^2.0.6"
},
"babel": {
"presets": [
Expand Down
4 changes: 3 additions & 1 deletion pages/everiPay_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ <h2>everiPay</h2>
<blockquote><code></code></blockquote>
<br>
<div class="scanzone-wraper">
<div style="background: #f5d7d7; border-top-left-radius: 8px; border-top-right-radius: 8px; padding: .6rem .9rem; color: black; font-size: 80%; border-top: 2px red solid;">The token will be <b>destroyed</b> instantly after scanned!</div>
<div style="background: #f5d7d7; border-top-left-radius: 8px; border-top-right-radius: 8px; padding: .6rem .9rem; color: black; font-size: 80%; border-top: 2px red solid;">
The transaction will be <b>executed</b> instantly after scanned!
</div>
<image id="qr" style="display: block; box-sizing: border-box; padding: 1rem 3rem; width: 100%;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAegAAAHoCAYAAACCU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AEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNAEEGDQBBBg0AQQYNADkzF8WlB8zy/kk+AAAAAElFTkSuQmCC"></image>
<div style="text-align: center; background: #f5f5f5; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; padding: .6rem .9rem; color: black; font-size: 80%; border-top: 1px #f2f2f2 solid;">Will refresh automatically every 5s</div>
</div>
Expand Down

0 comments on commit 86da61e

Please sign in to comment.