README.md 1.19 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
20
21
22
23
24
25
26
### 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
    ```

- linux

    ```
    ./setup_linux.sh
    ```
Marek Kotewicz's avatar
Marek Kotewicz committed
27
28
29

### usage

30
31
32
- iOS

    ```
Marek Kotewicz's avatar
Marek Kotewicz committed
33
    make -C rust/signer ios
34
35
36
37
38
39
40
41
42
43
    react-native run-ios
    ```

- Android

    ```
    make -C rust/signer android
    react-native run-android
    ```

Marek Kotewicz's avatar
Marek Kotewicz committed
44
45
### Example

Marek Kotewicz's avatar
Marek Kotewicz committed
46
#### Create new account
47

Marek Kotewicz's avatar
Marek Kotewicz committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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