mirror of
https://github.com/stakwork/sphinx-key.git
synced 2026-02-23 08:34:29 +01:00
clean notes
This commit is contained in:
64
riscv.md
64
riscv.md
@@ -1,38 +1,4 @@
|
||||
|
||||
install the gcc risv toolchain on macos:
|
||||
|
||||
https://github.com/riscv-collab/riscv-gnu-toolchain
|
||||
|
||||
```
|
||||
git clone --recursive https://github.com/riscv/riscv-gnu-toolchain
|
||||
|
||||
cd riscv-gnu-toolchain
|
||||
|
||||
./configure --prefix=/opt/riscv
|
||||
|
||||
sudo make
|
||||
|
||||
export PATH=$PATH:/opt/riscv/bin
|
||||
|
||||
(add that line above to your ~/.bash_profile to make it stick)
|
||||
```
|
||||
|
||||
OR maybe this is better?
|
||||
|
||||
https://github.com/riscv-software-src/homebrew-riscv
|
||||
|
||||
```
|
||||
brew tap riscv-software-src/riscv
|
||||
|
||||
brew install riscv-tools
|
||||
```
|
||||
|
||||
### path
|
||||
|
||||
CC=/usr/local/Cellar/riscv-gnu-toolchain/main/bin/riscv64-unknown-elf-gcc cargo build --target=riscv32imc-esp-espidf
|
||||
|
||||
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-8.4.0 cargo build --target=riscv32imc-esp-espidf
|
||||
|
||||
### point to local dep
|
||||
|
||||
```sh
|
||||
@@ -40,7 +6,12 @@ git clone https://github.com/devrandom/rust-secp256k1.git secp256k1
|
||||
|
||||
cd secp256k1
|
||||
|
||||
checkout 4e745ebe7e4c9cd0a7e9c8d5c42e989522e52f71
|
||||
# for static precomputation? See vls-signer-stm32 cargo.toml
|
||||
git checkout 4e745ebe7e4c9cd0a7e9c8d5c42e989522e52f71
|
||||
|
||||
# DO THIS: for v0.22.0, this is what latest rust-bitcoin uses
|
||||
git checkout 50b7c256377494d942826705a1275055e6f93925
|
||||
# you'll need to change `mod key` to `pub mode key` in lib.rs
|
||||
|
||||
cd secp256k1-sys
|
||||
```
|
||||
@@ -83,3 +54,26 @@ and use path dep in Cargo.toml
|
||||
```yaml
|
||||
secp256k1-sys = { path = "../../secp256k1/secp256k1-sys" }
|
||||
```
|
||||
|
||||
### overrides
|
||||
|
||||
validating-lightning-signer
|
||||
bitcoin
|
||||
lightning
|
||||
lightning-invoice
|
||||
|
||||
point each of those to `path` dependencies of each other
|
||||
|
||||
remove `rand-std` feature from every crate dependency
|
||||
|
||||
### issue now:
|
||||
|
||||
no `XOnlyPublicKey` in the root
|
||||
|
||||
need to align the commits on each crate???
|
||||
|
||||
### path notes (dont do this)
|
||||
|
||||
CC=/usr/local/Cellar/riscv-gnu-toolchain/main/bin/riscv64-unknown-elf-gcc cargo build --target=riscv32imc-esp-espidf
|
||||
|
||||
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-8.4.0 cargo build --target=riscv32imc-esp-espidf
|
||||
|
||||
@@ -17,8 +17,8 @@ pio = ["esp-idf-sys/pio"]
|
||||
|
||||
[dependencies]
|
||||
esp-idf-sys = { version = "0.31.5", features = ["binstart"] }
|
||||
# vls-protocol-signer = { path = "../../validating-lightning-signer/vls-protocol-signer", features = ["secp-lowmemory"] }
|
||||
secp256k1-sys = { path = "../../rust-secp256k1/secp256k1-sys" }
|
||||
vls-protocol-signer = { path = "../../validating-lightning-signer/vls-protocol-signer", features = ["secp-lowmemory"] }
|
||||
# secp256k1-sys = { path = "../../rust-secp256k1/secp256k1-sys" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "0.29"
|
||||
|
||||
Reference in New Issue
Block a user