diff options
| author | Your Name <you@example.com> | 2026-05-16 23:55:05 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-16 23:55:05 +0530 |
| commit | 4c47ae188b288e7d24bd9566ab3e6a6805d9484f (patch) | |
| tree | 33b74b2090b4f3b7597841734a56a4006a86d73f /main/CMakeLists.txt | |
| parent | 133e40c82afb4d7659758b1fa57925ac57af4621 (diff) | |
Phase 3: Nostr identity derivation + wifistr service discovery
- Add identity.c/h: HMAC-SHA512 derivation from nsec → npub, STA/AP MAC, SSID, AP IP
- Add nostr_event.c/h: NIP-01 event serialization + Schnorr signing (BIP-340)
- Add geohash.c/h: lat/lon to geohash encoding
- Add wifistr.c/h: kind 38787 event builder + WebSocket publish to Nostr relays
- Update config.c/h: nsec-based identity, Nostr relay/geo config, remove static SSID/IP
- Replace custom mbedTLS wallet with nucula library (libsecp256k1)
- Remove wallet.c/h, wallet_persist.c/h (replaced by nucula_lib component)
- Verified on Board A: derived SSID, captive portal, payment, wallet, wifistr publish
Diffstat (limited to 'main/CMakeLists.txt')
| -rw-r--r-- | main/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 2eef030..df69283 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt | |||
| @@ -6,9 +6,12 @@ idf_component_register(SRCS "tollgate_main.c" | |||
| 6 | "cashu.c" | 6 | "cashu.c" |
| 7 | "session.c" | 7 | "session.c" |
| 8 | "tollgate_api.c" | 8 | "tollgate_api.c" |
| 9 | "wallet.c" | 9 | "identity.c" |
| 10 | "wallet_persist.c" | 10 | "nostr_event.c" |
| 11 | INCLUDE_DIRS "." "${IDF_PATH}/components/lwip/include/apps" | 11 | "geohash.c" |
| 12 | "wifistr.c" | ||
| 13 | INCLUDE_DIRS "." | ||
| 12 | REQUIRES esp_wifi esp_event esp_netif nvs_flash esp_http_server | 14 | REQUIRES esp_wifi esp_event esp_netif nvs_flash esp_http_server |
| 13 | lwip json esp_http_client mbedtls esp-tls log spiffs | 15 | lwip json esp_http_client mbedtls esp-tls log spiffs |
| 16 | nucula_lib secp256k1 | ||
| 14 | PRIV_REQUIRES esp-tls) | 17 | PRIV_REQUIRES esp-tls) |