nx_tls13_ed25519_test_daemon.nx
buildroot/runtime/bin/nx_tls13_ed25519_test_daemon.nx
about
nx_tls13_ed25519_test_daemon.nx -- V-HOST-2+1-4b runtime roundtrip daemon.
Minimal test daemon proving V-HOST-2+1 Ed25519 TLS sig path works
end-to-end against a real TLS 1.3 client (openssl s_client).
FLOW:
1. Read /tmp/nx_cert_gen_demo_ed25519_cert.der + priv.bin (32B)
(PREREQ: nx_cert_gen smoke produced these via V-HOST-4c Ed25519 path)
2. nx_csprng_fill 32B server_random + 32B server_x25519_priv
3. nx_http_server_listen on 127.0.0.1:7443
4. Accept ONE connection; call nx_tls13_server_session_run_ed25519
5. After handshake completes, send tiny HTTP body via session.app_send
6. Close + exit
Per Cardinal 7 (Test Before Ship) + operator "no not finished arcs":
this daemon is the runtime gate that proves the V-HOST-2+1 Ed25519
TLS sig path actually works (not just compiles).
COMPOSES (all sovereign):
nx_syscalls (sys_read_file + sys_close + sys_exit + sys_write)
nx_csprng (random for server_random + x25519 priv)
nx_http_server (sovereign HTTP/TCP server primitives -- listen + accept)
nx_tls13_server_session_run_ed25519 (V-HOST-2+1-2 LIVE)
nx_tls13_server_session_app_send (send encrypted record per TLS 1.3)
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_csprng.nxnx_http_server.nxnx_tls13_server_session.nxnx_tls13_server_session_run.nxnx_tls13_server_session_app_data.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 33 | const NX_T13TD_PORT: i64 = 7443 |
| 36 | const NX_T13TD_HTTP_RESP: *u8 = "HTTP/1.0 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 3\r\nConnection: close\r\n\r\nOK\n" as *u8 |
| 37 | const NX_T13TD_HTTP_RESP_N: i64 = 86 |
| 39 | const NX_T13TD_OK: i64 = 0 |
| 40 | const NX_T13TD_ENOENT: i64 = 1 |
| 41 | const NX_T13TD_BAD_PRIV_SIZE: i64 = 2 |
| 42 | const NX_T13TD_BIND_FAILED: i64 = 3 |
| 43 | const NX_T13TD_ACCEPT_FAILED: i64 = 4 |
| 44 | const NX_T13TD_HS_FAILED: i64 = 5 |
| 45 | const NX_T13TD_APP_SEND_FAILED: i64 = 6 |
| 46 | const NX_T13TD_WRITE_FAILED: i64 = 7 |
functions
| 48 | func main() -> i64 |