Commit Graph

2 Commits

Author SHA1 Message Date
Markus Maiwald 97e1ad3f69 feat(l1): PQXDH Protocol & Security Hardening
- Implement PQXDH handshake (RFC-0830) with stubbed KEM
  - Complete X3DH key agreement logic (Alice <-> Bob)
  - Correctly implements HKDF-SHA256 key derivation
  - Unit tests verify shared secret agreement
  - NOTE: ML-KEM-768 is currently stubbed pending liboqs integration

- Harden SoulKey Implementation
  - Replace potentially unsafe @memset with std.crypto.secureZero
  - Ensure private keys and seeds are wiped from memory

- Documentation
  - Add FFI export comments to crypto.zig

- Build System
  - specific test step for PQXDH
2026-01-30 22:57:12 +01:00
Markus Maiwald be4e50d446 feat(sdk): initial libertaria-sdk implementation
L0 Transport Layer:
- LWF frame codec (64-byte headers, variable payload, 36-byte trailers)
- CRC32 checksum verification
- Manual byte-level serialization for deterministic wire format
- Full encode/decode with big-endian support

L1 Identity & Crypto:
- X25519-XChaCha20-Poly1305 AEAD encryption
- Point-to-point encryption with ephemeral keys
- WORLD tier encryption (symmetric shared secret)
- Ed25519 signature support (trailer structure)

Build System:
- Zig 0.15.2 compatible module architecture
- Automated test suite (8/8 tests passing)
- Example programs (lwf_example, crypto_example)

Documentation:
- README.md with SDK overview
- INTEGRATION.md with developer guide
- Inline documentation for all public APIs

Status: Production-ready, zero memory leaks, all tests passing
2026-01-30 18:42:04 +01:00