2021-05-15 15:12:27 +00:00
|
|
|
# Running
|
|
|
|
|
|
|
|
To run the embedded test, first prepare your environment:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo ./scripts/install-deps
|
2023-02-02 21:43:36 +00:00
|
|
|
rustup +nightly target add thumbv7m-none-eabi
|
2021-05-15 15:12:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Then:
|
|
|
|
|
|
|
|
```shell
|
2023-02-02 21:43:36 +00:00
|
|
|
source ./scripts/env.sh && cargo +nightly run --target thumbv7m-none-eabi
|
2021-05-15 15:12:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Output should be something like:
|
|
|
|
|
|
|
|
```text
|
|
|
|
heap size 524288
|
|
|
|
secp buf size 66240
|
|
|
|
Seed WIF: L1HKVVLHXiUhecWnwFYF6L3shkf1E12HUmuZTESvBXUdx3yqVP1D
|
|
|
|
Address: bc1qpx9t9pzzl4qsydmhyt6ctrxxjd4ep549np9993
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that this heap size is required because of the amount of stack used by libsecp256k1 when initializing a context.
|