upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/components/nucula_lib/CMakeLists.txt
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-16 23:55:05 +0530
committerYour Name <you@example.com>2026-05-16 23:55:05 +0530
commit4c47ae188b288e7d24bd9566ab3e6a6805d9484f (patch)
tree33b74b2090b4f3b7597841734a56a4006a86d73f /components/nucula_lib/CMakeLists.txt
parent133e40c82afb4d7659758b1fa57925ac57af4621 (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 'components/nucula_lib/CMakeLists.txt')
-rw-r--r--components/nucula_lib/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/components/nucula_lib/CMakeLists.txt b/components/nucula_lib/CMakeLists.txt
new file mode 100644
index 0000000..ea1605e
--- /dev/null
+++ b/components/nucula_lib/CMakeLists.txt
@@ -0,0 +1,17 @@
1set(NUCULA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../nucula_src/main)
2
3idf_component_register(
4 SRCS "nucula_wallet.cpp"
5 "${NUCULA_SRC}/crypto.c"
6 "${NUCULA_SRC}/wallet.cpp"
7 "${NUCULA_SRC}/cashu_json.cpp"
8 "${NUCULA_SRC}/nut10.cpp"
9 "${NUCULA_SRC}/hex.c"
10 "${NUCULA_SRC}/http.c"
11 INCLUDE_DIRS "."
12 "${NUCULA_SRC}"
13 REQUIRES secp256k1
14 PRIV_REQUIRES log mbedtls nvs_flash esp_http_client json
15)
16
17target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-function)