diff options
| author | Your Name <you@example.com> | 2026-05-16 15:32:55 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-16 15:32:55 +0530 |
| commit | 133e40c82afb4d7659758b1fa57925ac57af4621 (patch) | |
| tree | 130f43e668f42f8fcc8ef55808ba89b6db40f615 /sdkconfig.defaults | |
| parent | 8f0aeb7d7b8216f1fc906cf855e5be9e90ecc0a8 (diff) | |
Phase 3: on-device Cashu wallet with mbedTLS secp256k1 + SPIFFS persistence + PSRAM
- wallet.c/h: secp256k1 ECP primitives (hash_to_curve, scalar_mul, point_add)
- wallet_persist.c/h: SPIFFS persistence with threshold-based write protection
- Fee accounting for swap (input_fee_ppk from /v1/keysets)
- Keyset fetch via /v1/keysets (586 bytes vs 21KB for /v1/keys)
- Wallet API: GET /wallet, POST /wallet/swap, POST /wallet/send
- Payment proofs auto-stored to wallet + persisted on SPIFFS
- PSRAM enabled for large allocations (ESP32-S3 has 8MB)
- Wallet init deferred to dedicated task (avoids sys_evt stack overflow)
- Cashu proof ID buffer size fixed (66 hex chars, not 16)
- HTTP client: added fetch_headers() call for proper response handling
- persist_threshold_sats config parameter (default: 1 sat)
Diffstat (limited to 'sdkconfig.defaults')
| -rw-r--r-- | sdkconfig.defaults | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 5a80e87..f13a2e9 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults | |||
| @@ -33,3 +33,11 @@ CONFIG_PARTITION_TABLE_FILENAME="partitions.csv" | |||
| 33 | 33 | ||
| 34 | # mbedTLS (needed for HTTPS to mint) | 34 | # mbedTLS (needed for HTTPS to mint) |
| 35 | CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y | 35 | CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y |
| 36 | |||
| 37 | # PSRAM (ESP32-S3 has 8MB) | ||
| 38 | CONFIG_SPIRAM=y | ||
| 39 | CONFIG_SPIRAM_MODE_OCT=y | ||
| 40 | CONFIG_SPIRAM_SPEED_80M=y | ||
| 41 | CONFIG_SPIRAM_USE_MALLOC=y | ||
| 42 | CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384 | ||
| 43 | CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768 | ||