diff options
| author | Your Name <you@example.com> | 2026-05-17 05:27:06 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 05:27:06 +0530 |
| commit | fdf662f8f1a1a3b38fe4d251982fffab8e9bf664 (patch) | |
| tree | 2413bdc936b757adf4849a522b7df2a5c8eb0aec /main/cvm_server.h | |
| parent | edd125d0e3fe5fe7c0edf30c429723f3b0120c68 (diff) | |
Phase 7: MCP handler (25 tests), NIP-04 encrypt/decrypt (15 tests), CVM server skeleton
- mcp_handler.c/h: 4 tools (get_config, set_config, get_balance, wallet_send)
- nip04.c/h: AES-256-CBC + ECDH with 0x02 compressed pubkey prefix
- Fixed IV copy bug: mbedTLS AES-CBC modifies IV in-place
- Base64 encode/decode for ciphertext transport
- PKCS7 padding
- cvm_server.c/h: Nostr DM listener with FreeRTOS task
- config: cvm_enabled, cvm_relays fields
- 156 total tests passing across 10 test binaries
Diffstat (limited to 'main/cvm_server.h')
| -rw-r--r-- | main/cvm_server.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/cvm_server.h b/main/cvm_server.h new file mode 100644 index 0000000..d336514 --- /dev/null +++ b/main/cvm_server.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #ifndef CVM_SERVER_H | ||
| 2 | #define CVM_SERVER_H | ||
| 3 | |||
| 4 | #include "esp_err.h" | ||
| 5 | |||
| 6 | esp_err_t cvm_server_init(void); | ||
| 7 | void cvm_server_start(void); | ||
| 8 | void cvm_server_stop(void); | ||
| 9 | |||
| 10 | #endif | ||