Markus Maiwald
07ccd484f1
refactor: restructure repository with tiered licensing
...
Major restructuring of libertaria-sdk -> libertaria-stack:
FOLDER REORGANIZATION:
- core/ - L0-L3 layers (Commonwealth LCL-1.0)
- l0-transport/
- l1-identity/
- l2_session/
- l2-federation/
- l2-membrane/
- sdk/ - L4+ and bindings (Sovereign LSL-1.0)
- janus-sdk/
- l4-feed/
- apps/ - Examples (Unbound LUL-1.0)
- examples/
- legal/ - All license texts
LICENSES ADDED:
- LICENSE_COMMONWEALTH.md (LCL-1.0) - Viral reciprocity for Core
- LICENSE_SOVEREIGN.md (LSL-1.0) - Business-friendly for SDK
- LICENSE_UNBOUND.md (LUL-1.0) - Maximum freedom for docs/apps
BUILD.ZIG UPDATED:
- All paths updated to new structure
- Examples imports fixed
README.md REWRITTEN:
- Documents new folder structure
- Explains tiered licensing strategy
- Clear SPDX identifiers per component
NO CLA REQUIRED - contributors keep copyright
2026-02-05 20:12:32 +01:00
Markus Maiwald
24adf936e5
feat(relay): Wire up CircuitBuilder with DHT Keys
...
- Implemented in DHT for exact key lookup.
- Updated to use DHT service for resolving Relay Public Keys.
- Generated on client-side (random) for circuit privacy.
- Wired to pass DHT instance to CircuitBuilder.
- Updated forwarding logic to use strict SessionID binding.
- Fixed lints in dht.zig.
2026-01-31 22:15:46 +01:00
Markus Maiwald
e5f59869bc
feat(crypto): Integrate ECDH & XChaCha20-Poly1305 for Relay
...
Phase 14 Real Crypto Update:
- Replaced mock encryption with XChaCha20-Poly1305 + X25519 ECDH.
- Implemented strict Nonce/SessionID binding (RFC-0000 alignment).
- Updated RelayPacket wire format to include Ephemeral Key.
- Updated RelayService to unwrap using Node Identity (SoulKey).
- Extended DHT and Federation protocols to propagate X25519 Public Keys.
- Persisted peer keys in SQLite storage.
- Tests passing (including new crypto logic).
2026-01-31 22:13:11 +01:00
Markus Maiwald
43156fc033
feat(relay): Implement RelayPacket and onion wrapping logic
2026-01-31 18:11:09 +01:00