diff --git a/README.md b/README.md index c6cb728..924d1bb 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,37 @@ espmonitor /dev/tty.usbserial-1420 ### cargo generate esp-rs -cargo generate --git https://github.com/esp-rs/esp-idf-template cargo +`cargo generate --git https://github.com/esp-rs/esp-idf-template cargo` +``` std support: true - v4.4 - esp32c3 +nightly +``` -nightly \ No newline at end of file +`cargo build` + +### build with CC option + +In this new esp-rs repo, find the path to your `riscv32-esp-elf-gcc` binary within the `.embuild` dir: + +`export CC=/Users/evanfeenstra/code/sphinx-key/sphinx-key/signer/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc` + +### get std features of vls: + +Download a local copy of the `validating-lightning-signer` repo in the parent directory of this repo. + +`git clone https://gitlab.com/lightning-signer/validating-lightning-signer.git` + +in validating-lightning-signer/vls-protocol-signer/Cargo.toml `[features]` + +add: `vls-std = ["vls-protocol/std"]` + +### build sphinx-key + +then in the sphinx-key dir, with the CC variable set as above: + +`cargo build` + +and flash using the instructions further above diff --git a/riscv.md b/riscv.md deleted file mode 100644 index 119a810..0000000 --- a/riscv.md +++ /dev/null @@ -1,19 +0,0 @@ -### buid with CC option - -find the path to your `riscv32-esp-elf-gcc` binary withing the `.embuild` dir: - -`export CC=/Users/evanfeenstra/code/sphinx-key/sphinx-key/signer/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc` - -### to get std features of vls: - -point to local version of validating-lightning-signer: - -in validating-lightning-signer/vls-protocol-signer/Cargo.toml `[features]` - -add: `vls-std = ["vls-protocol/std"]` - -`cargo build` - -then in signer Cargo.toml - -`vls-protocol-signer = { path = "../../vls-og/vls-protocol-signer", default-features = false, features = ["secp-lowmemory", "vls-std"] }` \ No newline at end of file