rust-bitcoin-unsafe-fast/bitcoin/embedded
Martin Habovstiak 6acf9ac8b8 Patch hashes and update the code
This patches `bitcoin_hashes` to use the version in the repository and
fixes the code after removal of `Deref`.

This also turns off `AS_DEPENDENCY` check with the intention to refactor
it later.
2022-12-18 14:33:55 +01:00
..
scripts Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
src Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
Cargo.toml Patch hashes and update the code 2022-12-18 14:33:55 +01:00
README.md Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
memory.x Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11: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.