From 866016dab2f155880bbdfb6b538628b2a0627ce8 Mon Sep 17 00:00:00 2001 From: Devrandom Date: Sat, 15 May 2021 17:21:02 +0200 Subject: [PATCH] f README --- embedded/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 embedded/README.md diff --git a/embedded/README.md b/embedded/README.md new file mode 100644 index 0000000000..bfc433fe71 --- /dev/null +++ b/embedded/README.md @@ -0,0 +1,25 @@ +# Running + +To run the embedded test, first prepare your environment: + +```shell +sudo ./scripts/install-deps +rustup target add thumbv7m-none-eabi +``` + +Then: + +```shell +source ./scripts/env.sh && cargo run --target thumbv7m-none-eabi +``` + +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.