mirror of
https://github.com/luxfi/pqsafe.git
synced 2026-10-30 15:21:41 +00:00
One and only one X-Wing implementation in the Lux stack: zwing. Removed pqsafe/pkg/xwing and pqsafe/pkg/identity; replaced their call sites in capsule + envelope with direct zwing imports (zwing.XWingPublicKey / XWingPrivateKey / XWingEncapsulate / XWingDecapsulate, zwing.Identity / IdentityPublic / Sign / Verify). Same bytes that protect a Z-Wing session now protect a PQSAFE file: one X-Wing, one hybrid-sig surface, vetted once. All E2E tests still pass against the zwing-backed Seal/Open path: TestSealOpenRoundTrip full round-trip TestWrongRecipientCannotOpen wrong key fails closed TestCorruptChunkFails chunk SHA mismatch detected TestTamperedManifestFails zwing hybrid sig refuses TestSwapCapsulesFails zwing X-Wing decap fails for wrong key TestExpiredEnvelopeRefused TTL gate at Open time Example program now uses zwing.GenerateIdentity() and the PQSAFE-IL5-HYBRID-v1 envelope rides on top.