README.md 1.34 KB
Newer Older
Marek Kotewicz's avatar
Marek Kotewicz committed
1
2
# native-signer

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
### Requirements

- `node.js` (tested on `v7.4.0`)
- `npm` (tested on `4.0.5`)
- `multirust` (tested on `0.8.0 (8654d1c07 2016-03-08 23:02:12 +0000)`)
- `rustc` (tested on `1.15.1 (021bd294c 2017-02-08)`)
- `cargo` (tested on `0.16.0-nightly (6e0c18c 2017-01-27)`)
- `android_ndk` (tested on `r13b`)
- `Xcode` (only, for iOS, tested on `Version 8.1 (8B62)`)
- `$NDK_HOME` envarionment variable set to ndk home directory (eg. `/usr/local/opt/android-ndk`)

### setup

- macOS

    ```
    ./setup_macos.sh
20
21
22

    echo "ndk.dir=$NDK_HOME" > android/local.properties
    echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
23
24
25
26
27
28
    ```

- linux

    ```
    ./setup_linux.sh
29
30
31

    echo "ndk.dir=$NDK_HOME" > android/local.properties
    echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
32
    ```
Marek Kotewicz's avatar
Marek Kotewicz committed
33
34
35

### usage

36
37
38
- iOS

    ```
39
    npm run ios
40
41
42
43
44
    ```

- Android

    ```
45
    npm run android
46
47
    ```

Marek Kotewicz's avatar
Marek Kotewicz committed
48
49
### Example

Marek Kotewicz's avatar
Marek Kotewicz committed
50
#### Create new account
51

Marek Kotewicz's avatar
Marek Kotewicz committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
seed: `this is sparta`

address: `006E27B6A72E1f34C626762F3C4761547Aff1421`

#### Scan qr code


qr:

[![qr][tx_qr]]

data:

```json
{
	"rlp": "f85f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870a801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804",
	"from": "006E27B6A72E1f34C626762F3C4761547Aff1421"
}
```

[tx_qr]: ./docs/tx_qr.png