mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
update notes
This commit is contained in:
33
README.md
33
README.md
@@ -49,12 +49,37 @@ espmonitor /dev/tty.usbserial-1420
|
|||||||
|
|
||||||
### cargo generate esp-rs
|
### 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
|
std support: true
|
||||||
|
|
||||||
v4.4
|
v4.4
|
||||||
|
|
||||||
esp32c3
|
esp32c3
|
||||||
|
nightly
|
||||||
|
```
|
||||||
|
|
||||||
nightly
|
`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
|
||||||
|
|||||||
19
riscv.md
19
riscv.md
@@ -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"] }`
|
|
||||||
Reference in New Issue
Block a user