Files
Hanzo AI 9bce6722b4 threshold: Pulsar/Lens kernel adapters + corona KAT + Pulsar-SHA3 wiring
Squashed batch covering:

- protocols/pulsar/: lattice threshold lane (round-based wrapper for
  github.com/luxfi/pulsar kernel); doc.go documents Photon/Lumen/Beam/
  Pulsar/Pulse/Prism/Horizon/Quasar vocabulary stack from LP-105
- protocols/lens/: planned curve threshold sister kernel (design
  intent only; mirrors Pulsar shape; replaces stub LSS-FROST)

- protocols/lss/lss_pulsar.go + tests: LSS-Pulsar adapter
  (DynamicResharePulsar + PulsarSnapshotManager + BuildActivationTranscript).
  Now SHA3-suite-aware: PulsarConfig carries NebulaRoot, HashSuiteID,
  ImplementationVersion as optional transcript-binding fields that
  flow through to the activation message.

  10/10 acceptance tests pass:
    1. GroupKey preservation
    2. KeyEraID preservation
    3. Generation +1
    4. RollbackFrom=0 on forward
    5. t_old != t_new
    6. Disjoint set rotation
    7. Valid signature under unchanged GroupKey
    8. Pairwise material regenerated
    9. Rollback semantics
   10. Error surface
  Plus 1 new test for BuildActivationTranscript Nebula+suite fields.

- protocols/lss/lss_frost.go: marked DEPRECATED (placeholder Sign()/
  Refresh(), single-process simulation, hardcoded ChainKey/RID); will
  be replaced by lss_lens.go.

- corona KAT cross-oracle vs Go reference (N=16 deterministic seeds)
- corona+protocol+harness hardening against parallel-run flakes
- lss/adapters: drop NewXRPL/NewCardano panic; ship real XRPL address
  derivation
- corona SignWithConfig API expansion + test fixes
- v1.6.5 changelog
- go.sum h1 hashes for luxfi/log and 4 deps

Architecture (LP-105 / pulsar/DESIGN.md):
  LSS owns lifecycle (Generation, Rollback, snapshots, dealer/
  coordinator role separation). Pulsar owns lattice math (R_q shares,
  lattice Pedersen commits, Sign1/Sign2/Combine, Pulsar-SHA3 hash
  profile). The lss_pulsar adapter wires them. lss_lens (planned) does
  the same for curve math.

go.mod adds local replace github.com/luxfi/pulsar => ../pulsar.
2026-03-03 12:00:00 -08:00

2.5 KiB

CHANGELOG — lux/threshold

Threshold cryptography library: FROST, CGGMP21, threshold ML-DSA, and the threshold-FHE committee surface.

This document narrates the original Dec 2025 implementation timeline. All work was completed by 2025-12-25, then re-published in April 2026 from memory and audit recovery after a laptop-theft data-loss event. Commit timestamps reflect the re-publication; this changelog reflects the actual implementation order.


Published tags

v1.6.5 — 2026-04-28

  • fix(lss/adapters): ed25519 nil/cross-curve guard — kill xrpl.go:185 panic
  • fix(corona): use SignWithConfig in tests after Sign API expanded
  • fix(go.sum): add missing h1 hashes for luxfi/log and 4 deps
  • sec(tfhe): UNSAFE markers + panic guards remain canonical (Red F5 fail-closed)

2025-12-25 — TFHE marked UNSAFE

The committee.go HMAC shim removal exposed a deeper architectural flaw in the TFHE path: the master key is replicated to all parties, the partial-decrypt step is HMAC theatre rather than a real partial decryption, and CombineShares ignores the partials entirely. None of this is real threshold FHE.

The fix is an explicit fail-closed: every TFHE entry point now carries a panic guard so the package cannot be wired into production. Four entry points are guarded, and the real threshold spec lives at ~/work/lux/lps/LP-137-TFHE-REAL-THRESHOLD-SPEC.md. Anyone who needs threshold FHE must implement against the spec — they cannot accidentally use the unsafe shim.

  • Re-published as: feat(tfhe): canonical committee surface for threshold-FHE policy (5591a3b5ff609399f22beb30aaf975d6127ed15c)
  • Re-published as: fix(tfhe): direct CombineShares dispatch — kill HMAC mask shim (31a2817ecf00aae4b53b246f0acee818539a72c6)
  • Re-published as: sec(tfhe): mark UNSAFE + panic guards — Red F5 fail-closed (53bbc1f7d530d4f2fb5fcdb830cddf325c9ec0a7)
  • Re-published as: merge: feat/tfhe-committee-canonical (52f238e27fd738162d6de7236078a42488f90dea)
  • Re-published as: merge: tfhe-mark-unsafe-2026-04-28 (7a86ee88a81dd3aba1abe3cd5684af2afb91ed2c)
  • Key paths: tfhe/, tfhe/committee.go, tfhe/UNSAFE.md

Re-publication note

Original implementation completed by 2025-12-25. Source tree was lost in a laptop-theft event in early 2026. Re-published 2026-04-28 from memory and audit recovery. Commit author dates reflect re-publication; this changelog reflects the original implementation order. Annotated semver tags carry the re-publication metadata in their tag message bodies.