README.md 1.87 KB
Newer Older
1
# Parity Signer
Marek Kotewicz's avatar
Marek Kotewicz committed
2

3
4
5
6
7
8
9
10
[![App Store][app-store-badge]][app-store-url]
[![Google Play][google-play-badge]][google-play-url]

[app-store-badge]: ./res/app-store-badge.png
[app-store-url]: https://itunes.apple.com/us/app/parity-signer/id1218174838
[google-play-badge]: ./res/google-play-badge.png
[google-play-url]: https://play.google.com/store/apps/details?id=com.nativesigner

11
12
13
### Requirements

- `node.js` (tested on `v7.4.0`)
Marek Kotewicz's avatar
Marek Kotewicz committed
14
- `yarn` (tested on `1.6.0`)
15
- `rustup` (tested on `rustup 1.0.0 (17b6d21 2016-12-15)`)
Marek Kotewicz's avatar
Marek Kotewicz committed
16
17
- `rustc` (tested on `rustc 1.19.0 (0ade33941 2017-07-17)`)
- `cargo` (tested on `cargo 0.20.0 (a60d185c8 2017-07-13)`)
18
- `android_ndk` (tested on `r13b`)
Marek Kotewicz's avatar
Marek Kotewicz committed
19
- `Xcode` (only, for iOS, tested on `Version 9.2 (9C40b)`)
20
- `$NDK_HOME` envarionment variable set to ndk home directory (eg. `/usr/local/opt/android-ndk`)
Marek Kotewicz's avatar
Marek Kotewicz committed
21
- `$JAVA_HOME` envarionment variable set to java home directory (eg. `/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home`)
22
23
24
25
26
27
28

### setup

- macOS

    ```
    ./setup_macos.sh
29
30
31

    echo "ndk.dir=$NDK_HOME" > android/local.properties
    echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
32
33
34
35
36
37
    ```

- linux

    ```
    ./setup_linux.sh
38
39
40

    echo "ndk.dir=$NDK_HOME" > android/local.properties
    echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
41
    ```
Marek Kotewicz's avatar
Marek Kotewicz committed
42
43
44

### usage

45
46
47
- iOS

    ```
48
    npm run ios
49
50
51
52
53
    ```

- Android

    ```
54
    npm run android
55
56
    ```

Marek Kotewicz's avatar
Marek Kotewicz committed
57
58
### Example

Marek Kotewicz's avatar
Marek Kotewicz committed
59
#### Create new account
60

Marek Kotewicz's avatar
Marek Kotewicz committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
seed: `this is sparta`

address: `006E27B6A72E1f34C626762F3C4761547Aff1421`

#### Scan qr code


qr:

[![qr][tx_qr]]

data:

```json
{
76
77
78
79
80
81
  "action":"signTransaction",
  "data":
  {
    "rlp":"f85f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870a801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804",
    "account":"006E27B6A72E1f34C626762F3C4761547Aff1421"
  }
Marek Kotewicz's avatar
Marek Kotewicz committed
82
83
84
85
}
```

[tx_qr]: ./docs/tx_qr.png