├── .gitignore ├── ARCHITECTURE.md ├── DEMONOTES.md ├── FLOW.md ├── Makefile ├── README.md ├── broker ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── README.md ├── lss.md ├── picture.md ├── rocket.toml ├── rust-toolchain.toml └── src │ ├── chain_tracker.rs │ ├── conn.rs │ ├── error_log.rs │ ├── handle.rs │ ├── looper.rs │ ├── lss.rs │ ├── main.rs │ ├── mqtt.rs │ ├── routes.rs │ ├── run_test.rs │ └── util.rs ├── deploy.sh ├── factory ├── .cargo │ └── config.toml ├── Cargo.lock ├── Cargo.toml ├── README.md ├── build.rs ├── rust-toolchain.toml ├── sdkconfig.defaults ├── src │ ├── colors.rs │ ├── led.rs │ ├── main.rs │ ├── ota.rs │ └── sdcard.rs └── table.csv ├── monitor.sh ├── sphinx-key ├── .cargo │ └── config.toml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.md ├── build.rs ├── clear_sd.sh ├── docs │ └── spi_connections.jpeg ├── newseed.sh ├── rust-toolchain.toml ├── scripts │ ├── build.sh │ ├── flash.sh │ └── run-wokwi.sh ├── sdkconfig.defaults ├── sphinx_key.sh └── src │ ├── bitcoin_utils.rs │ ├── button.rs │ ├── clear.rs │ ├── conn │ ├── http.rs │ ├── mod.rs │ ├── mqtt.rs │ ├── sntp.rs │ └── wifi.rs │ ├── core │ ├── config.rs │ ├── control.rs │ ├── events.rs │ ├── lss.rs │ └── mod.rs │ ├── led.rs │ ├── main.rs │ ├── ota.rs │ ├── sd.rs │ └── status.rs └── tester ├── .env-example ├── Cargo.lock ├── Cargo.toml ├── README.md ├── cmd.json ├── nonce_cmd.json ├── ota_cmd.json ├── rocket.toml └── src ├── config.rs ├── ctrl.rs └── server.rs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/.gitignore -------------------------------------------------------------------------------- /ARCHITECTURE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/ARCHITECTURE.md -------------------------------------------------------------------------------- /DEMONOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/DEMONOTES.md -------------------------------------------------------------------------------- /FLOW.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/FLOW.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/README.md -------------------------------------------------------------------------------- /broker/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /broker/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/Cargo.lock -------------------------------------------------------------------------------- /broker/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/Cargo.toml -------------------------------------------------------------------------------- /broker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/Dockerfile -------------------------------------------------------------------------------- /broker/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/README.md -------------------------------------------------------------------------------- /broker/lss.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/lss.md -------------------------------------------------------------------------------- /broker/picture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/picture.md -------------------------------------------------------------------------------- /broker/rocket.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/rocket.toml -------------------------------------------------------------------------------- /broker/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | 3 | channel = "stable" -------------------------------------------------------------------------------- /broker/src/chain_tracker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/chain_tracker.rs -------------------------------------------------------------------------------- /broker/src/conn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/conn.rs -------------------------------------------------------------------------------- /broker/src/error_log.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/error_log.rs -------------------------------------------------------------------------------- /broker/src/handle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/handle.rs -------------------------------------------------------------------------------- /broker/src/looper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/looper.rs -------------------------------------------------------------------------------- /broker/src/lss.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/lss.rs -------------------------------------------------------------------------------- /broker/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/main.rs -------------------------------------------------------------------------------- /broker/src/mqtt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/mqtt.rs -------------------------------------------------------------------------------- /broker/src/routes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/routes.rs -------------------------------------------------------------------------------- /broker/src/run_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/run_test.rs -------------------------------------------------------------------------------- /broker/src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/broker/src/util.rs -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/deploy.sh -------------------------------------------------------------------------------- /factory/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/.cargo/config.toml -------------------------------------------------------------------------------- /factory/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/Cargo.lock -------------------------------------------------------------------------------- /factory/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/Cargo.toml -------------------------------------------------------------------------------- /factory/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/README.md -------------------------------------------------------------------------------- /factory/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | embuild::espidf::sysenv::output(); 3 | } 4 | -------------------------------------------------------------------------------- /factory/rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/rust-toolchain.toml -------------------------------------------------------------------------------- /factory/sdkconfig.defaults: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/sdkconfig.defaults -------------------------------------------------------------------------------- /factory/src/colors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/src/colors.rs -------------------------------------------------------------------------------- /factory/src/led.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/src/led.rs -------------------------------------------------------------------------------- /factory/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/src/main.rs -------------------------------------------------------------------------------- /factory/src/ota.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/src/ota.rs -------------------------------------------------------------------------------- /factory/src/sdcard.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/src/sdcard.rs -------------------------------------------------------------------------------- /factory/table.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/factory/table.csv -------------------------------------------------------------------------------- /monitor.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/monitor.sh -------------------------------------------------------------------------------- /sphinx-key/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/.cargo/config.toml -------------------------------------------------------------------------------- /sphinx-key/.gitignore: -------------------------------------------------------------------------------- 1 | /.vscode 2 | /.embuild 3 | /target 4 | -------------------------------------------------------------------------------- /sphinx-key/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/Cargo.lock -------------------------------------------------------------------------------- /sphinx-key/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/Cargo.toml -------------------------------------------------------------------------------- /sphinx-key/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/README.md -------------------------------------------------------------------------------- /sphinx-key/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | embuild::espidf::sysenv::output(); 3 | } 4 | -------------------------------------------------------------------------------- /sphinx-key/clear_sd.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/clear_sd.sh -------------------------------------------------------------------------------- /sphinx-key/docs/spi_connections.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/docs/spi_connections.jpeg -------------------------------------------------------------------------------- /sphinx-key/newseed.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | n=32 4 | 5 | hexdump -vn "$n" -e ' /1 "%02x"' /dev/urandom ; echo -------------------------------------------------------------------------------- /sphinx-key/rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/rust-toolchain.toml -------------------------------------------------------------------------------- /sphinx-key/scripts/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/scripts/build.sh -------------------------------------------------------------------------------- /sphinx-key/scripts/flash.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/scripts/flash.sh -------------------------------------------------------------------------------- /sphinx-key/scripts/run-wokwi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/scripts/run-wokwi.sh -------------------------------------------------------------------------------- /sphinx-key/sdkconfig.defaults: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/sdkconfig.defaults -------------------------------------------------------------------------------- /sphinx-key/sphinx_key.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/sphinx_key.sh -------------------------------------------------------------------------------- /sphinx-key/src/bitcoin_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/bitcoin_utils.rs -------------------------------------------------------------------------------- /sphinx-key/src/button.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/button.rs -------------------------------------------------------------------------------- /sphinx-key/src/clear.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/clear.rs -------------------------------------------------------------------------------- /sphinx-key/src/conn/http.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/conn/http.rs -------------------------------------------------------------------------------- /sphinx-key/src/conn/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/conn/mod.rs -------------------------------------------------------------------------------- /sphinx-key/src/conn/mqtt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/conn/mqtt.rs -------------------------------------------------------------------------------- /sphinx-key/src/conn/sntp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/conn/sntp.rs -------------------------------------------------------------------------------- /sphinx-key/src/conn/wifi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/conn/wifi.rs -------------------------------------------------------------------------------- /sphinx-key/src/core/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/core/config.rs -------------------------------------------------------------------------------- /sphinx-key/src/core/control.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/core/control.rs -------------------------------------------------------------------------------- /sphinx-key/src/core/events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/core/events.rs -------------------------------------------------------------------------------- /sphinx-key/src/core/lss.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/core/lss.rs -------------------------------------------------------------------------------- /sphinx-key/src/core/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/core/mod.rs -------------------------------------------------------------------------------- /sphinx-key/src/led.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/led.rs -------------------------------------------------------------------------------- /sphinx-key/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/main.rs -------------------------------------------------------------------------------- /sphinx-key/src/ota.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/ota.rs -------------------------------------------------------------------------------- /sphinx-key/src/sd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/sd.rs -------------------------------------------------------------------------------- /sphinx-key/src/status.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/sphinx-key/src/status.rs -------------------------------------------------------------------------------- /tester/.env-example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/.env-example -------------------------------------------------------------------------------- /tester/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/Cargo.lock -------------------------------------------------------------------------------- /tester/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/Cargo.toml -------------------------------------------------------------------------------- /tester/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/README.md -------------------------------------------------------------------------------- /tester/cmd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/cmd.json -------------------------------------------------------------------------------- /tester/nonce_cmd.json: -------------------------------------------------------------------------------- 1 | "Nonce" 2 | -------------------------------------------------------------------------------- /tester/ota_cmd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/ota_cmd.json -------------------------------------------------------------------------------- /tester/rocket.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/rocket.toml -------------------------------------------------------------------------------- /tester/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/src/config.rs -------------------------------------------------------------------------------- /tester/src/ctrl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/src/ctrl.rs -------------------------------------------------------------------------------- /tester/src/server.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-key/HEAD/tester/src/server.rs --------------------------------------------------------------------------------