rust-bitcoin-unsafe-fast/embedded
Devrandom bba57d7d69 Embedded test via qemu 2021-07-15 09:04:49 +02:00
..
scripts Embedded test via qemu 2021-07-15 09:04:49 +02:00
src Embedded test via qemu 2021-07-15 09:04:49 +02:00
Cargo.toml Embedded test via qemu 2021-07-15 09:04:49 +02:00
README.md Embedded test via qemu 2021-07-15 09:04:49 +02:00
memory.x Embedded test via qemu 2021-07-15 09:04:49 +02:00

README.md

Running

To run the embedded test, first prepare your environment:

sudo ./scripts/install-deps
rustup target add thumbv7m-none-eabi

Then:

source ./scripts/env.sh && cargo run --target thumbv7m-none-eabi

Output should be something like:

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.