Loss-Healing X25519 Forward-Secret UDP & ESP-NOW v1/v2 Transport (4.76 KB TX-Only MCU Profile)
- Live Browser Wire Lab & Docs: https://indian-aman.github.io/necklink/nltp/
- Python Gateway SDK (
pynltp):pip install pynltp - Source Monorepo: https://github.com/indian-aman/necklink/tree/main/packages/nltp
- Systematic
GF(2^8)Cauchy Erasure Coding: Heals10–35%random RF packet loss in-flight with zero retransmit stall (100%SHA-256 verified on physicalESP32 + ESP8266hardware). X25519Forward Secrecy +ChaCha20-Poly1305AEAD:512-packet anti-replay window (160/160forged/replayed frames dropped pre-FEC).- Built-in Zero-Dependency
LZ4Block Compression: Shrinks repetitive JSON/CSV telemetry6.1×–6.9×before encryption and FEC slicing (FLAG_LZ4 = 0x40). - Confirmed
0 msHOL Out-of-Line Reflex Channel: Sub-millisecond emergency actuator commands bypass bulk file transfer queues. 4,760-Byte#define NLTP_TX_ONLYSensor Mode: Fits comfortably insideESP8266,ATmega, andSTM32SRAM budgets with0malloccalls and0floats.
Every commit is continuously verified against formal IETF/NIST cryptographic vectors, memory sanitizers, adversarial fuzzing, static safety rules, and supply-chain provenance:
| Artifact / Assurance Gate | Specification & Verification Scope |
|---|---|
| Formal IETF Internet-Draft | datatracker.ietf.org/doc/draft-bains-nltp/ (TXT · XML · HTML) — active IETF Individual Internet-Draft specifying wire headers, handshake, Cauchy FEC, and LZ4 |
| NIST & IETF Cryptographic KATs | tests/test_kat_vectors.c — 1,668 checks covering RFC 7748 (X25519 + low-order point rejection), RFC 8439 (ChaCha20-Poly1305 AEAD), RFC 4231 (HMAC-SHA256), NIST FIPS 180-4 (SHA-256), RFC 6479 (512-bit anti-replay), and 30%-loss encrypted loopback under ASan/UBSan |
Continuous libFuzzer Harness |
fuzz/fuzz_nltp_rx.c — 500,000 mutated frames per CI run (clang -fsanitize=fuzzer,address,undefined) across plaintext/encrypted parsers & in-place LZ4 decompression |
| MISRA C:2012 Compliance | docs/MISRA_C_2012_COMPLIANCE.md — strict ISO C99 (-Wpedantic -Werror), zero heap (-DNLTP_NO_MALLOC), zero floats, acyclic call graph, cppcheck + MISRA C:2012 CI audit |
| Security & Disclosure Policy | SECURITY.md & CONTRIBUTING.md — coordinated disclosure SLA, authenticate-before-decrypt architecture, and contributor gates |
| Supply-Chain SBOM & Provenance | sbom.spdx.json (SPDX 2.3) · sbom.cdx.json (CycloneDX 1.5) + GitHub SLSA Build Provenance attestations & OpenSSF Scorecard |
Published on the official ESP Component Registry (indian-aman/nltp):
idf.py add-dependency "indian-aman/nltp^1.6.0"Or reference this repository directly in idf_component.yml:
dependencies:
nltp:
git: https://github.com/indian-aman/NLTP-Arduino.git
version: "1.6.0"lib_deps =
https://github.com/indian-aman/NLTP-Arduino.git#v1.6.0cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
ctest --test-dir build --output-on-failure