LPsLux Proposals
Threshold Cryptography
LP-4715

Lens Curve Threshold Kernel

Draft

The classical curve-side threshold signing kernel and its key-era lifecycle — two-round Schnorr/EdDSA threshold signing consumed byte-equal from RFC 9591, wrapped in the same era, resharing and activation machinery the lattice-side kernel uses, so both sides share one proven lifecycle shape

Category
Core
Created
2026-03-03

Naming. "Lens" or "the Lens threshold kernel". Never the bare phrase "Lens Protocol" — that names an unrelated social-graph project.

Abstract

Lux contributes the systems layer between modern threshold signatures and real permissionless consensus: dynamic validator rotation, share lifecycle, activation-gated resharing, grouped threshold finality, and hybrid classical/post-quantum certificate composition. Lens is the curve-side instantiation of that layer; Pulsar (LP-4450, lattice) is its sister.

Lens consumes the upstream two-round Schnorr threshold primitives (RFC 9591, Komlo–Goldberg 2020) byte-equal for Round 1, Round 2 and Aggregate, and packages them with the same key-era lifecycle Pulsar uses:

ComponentPulsar (lattice)Lens (curve)
Math fieldsModule-LWE / R_qDiscrete log / prime-order group
Sign math inherited (byte-equal)Pulsar Sign1 / Sign2 / CombineRound 1 / Round 2 / Aggregate
CommitsA·NTT(s) + B·NTT(r) lattice Pederseng^s · h^r curve Pedersen
GenesisTrusted-dealer Bootstrap, OR Pedersen DKG over R_q (pulsar/dkg2/)Distributed DKG — no trusted dealer needed at all — OR trusted-dealer Bootstrap
Per-epoch DKGNever — verifiable secret resharing via pulsar/reshareNever — verifiable secret resharing via lens/reshare
LifecycleLSS-managed (Generation, Rollback, KeyEraID, Reanchor)LSS-managed (same)
LSS adapterthreshold/protocols/lss/lss_pulsar.gothreshold/protocols/lss/lss_lens.go

Both kernels share one lifecycle invariant: no trusted dealer after the one-time genesis ceremony. Per-epoch transitions go through LSS-managed verifiable secret resharing (LP-4730). Reanchor is the only escape hatch back to genesis-style trust, and it requires governance.

Lens is not a replacement for BLS aggregation. BLS aggregates signatures from independent validator keypairs (LP-4110); Lens is threshold under one shared curve group key. Both have a place: BLS for fast classical aggregate finality across the whole validator set, Lens for classical threshold control-plane certificates, committee certificates and custody.

Motivation

The prior LSS-FROST integration (threshold/protocols/lss/lss_frost.go) is a centralized simulation with five production-blocking gaps:

GapLSS-FROSTLens
Sign() placeholderreturns "sign execution not implemented"wires the actual two-round signing protocol
Refresh() placeholderbumps a generation counter onlycalls lens/reshare.Refresh — real HJKY zero-polynomial refresh
wPoly, qPoly single-processone Go process generates both polynomialsdistributed JVSS with per-party polynomial broadcast, round-based
Hardcoded ChainKey: []byte("frost-chainkey"), RID: []byte("frost-rid")placeholder strings shipped to productionRID from genesis-ceremony randomness; ChainKey from the bonded transcript
verifyResharingFROST checks only public-key consistencydoes not verify protocol correctnessfull Pedersen-commit verification per share, analogous to pulsar/reshare/commit.go

Lens closes all five by mirroring Pulsar's architecture: a curve-math kernel at github.com/luxfi/lens plus an LSS adapter at threshold/protocols/lss/lss_lens.go.

Specification

1. Layer separation

github.com/luxfi/lens                     ← curve threshold math kernel
  ├── primitives/    (curve Pedersen, polynomial, sample)
  ├── sign/          (two-round signing math, byte-equal vs upstream)
  ├── threshold/     (GroupKey, KeyShare, Signer types)
  ├── reshare/       (Refresh, ReshareToNewSet over G; commit, complaint, transcript, activation)
  ├── keyera/        (in-process lifecycle reference; analogous to pulsar/keyera/)
  └── dkg/           (distributed key generation — no trusted dealer needed)

github.com/luxfi/threshold/
  ├── protocols/lens/            (round-based wrapper using internal/round/Session)
  └── protocols/lss/lss_lens.go  (LSS-Lens adapter)

2. Key-era lifecycle (identical to Pulsar's)

Genesis:  Distributed DKG  OR  Trusted-dealer Bootstrap.
          Either path establishes (g, h, GroupKey) for one key era.

Every epoch under same GroupKey:
          NEVER trusted dealer. Refresh or ReshareToNewSet via lens/reshare.
          GroupKey persists; share distribution rotates.

Reanchor: rare governance event. Fresh DKG / ceremony; new KeyEraID.

3. Domain-separated message prefixes

QUASAR-LENS-BUNDLE-v1     ← Lens threshold cert over a bundle
QUASAR-LENS-SIGN1-v1      ← Round 1
QUASAR-LENS-SIGN2-v1      ← Round 2
QUASAR-LENS-AGGREGATE-v1  ← aggregate
QUASAR-LENS-REFRESH-v1    ← Refresh activation cert
QUASAR-LENS-RESHARE-v1    ← Reshare activation cert
QUASAR-LENS-ACTIVATE-v1   ← generic activation alias
QUASAR-LENS-REANCHOR-v1   ← Reanchor authorization

4. EpochShareState shape (mirrors Pulsar's)

type EpochShareState struct {
    // Lineage (changes only at Reanchor — fresh GroupKey).
    KeyEraID uint64

    // LSS lifecycle.
    Generation   uint64
    RollbackFrom uint64

    // Per-epoch state.
    Epoch       uint64
    Validators  []ValidatorID
    Threshold   int
    Shares      map[ValidatorID]*lens.KeyShare
    GroupKey    *lens.GroupKey  // (g, h, X) — pointer-shared within era
    PairwiseSeeds   map[ValidatorID]map[ValidatorID][]byte
    PairwiseMACKeys map[ValidatorID]map[ValidatorID][]byte
}

5. Acceptance criteria

Mirror Pulsar's adapter tests (threshold/protocols/lss/lss_pulsar_test.go):

  1. Group public key preserved across resharing.
  2. KeyEraID preserved across resharing.
  3. Generation increments by one.
  4. RollbackFrom = 0 on a forward transition.
  5. t_old != t_new works.
  6. Old set != new set works.
  7. New shares produce a valid signature under the unchanged group key.
  8. Pairwise material regenerated for the new party set.
  9. Rollback restores the previous generation snapshot.
  10. A malformed Pedersen commit or share fails verification.

Plus Lens-specific:

  1. RFC 9591-compatible signing path.
  2. Ed25519 / Ed448 / secp256k1 ciphersuite compatibility.
  3. Pedersen commitment verification over the selected curve group.
  4. Nonce and binding-factor handling matches the two-round protocol's requirements.
  5. No hardcoded ChainKey or RID.

Vocabulary stack

Photon   — individual validator vote / attestation
Lumen    — post-quantum end-to-end encrypted, authenticated stream (planned)
Beam     — BLS aggregate certificate
Lens     — classical curve threshold kernel (THIS LP)
Pulsar   — post-quantum lattice threshold kernel (LP-4450)
Pulse    — one Pulsar threshold certificate
LSS      — dynamic threshold lifecycle framework (LP-4730)
ML-DSA   — post-quantum accountability cert set (LP-4400)
Horizon  — the finality boundary
Quasar   — the leaderless consensus protocol (LP-0110)

Photons travel through Lumen streams. BLS forms Beams. LSS moves threshold shares across generations. Lens emits classical threshold certificates. Pulsar emits post-quantum threshold certificates. Quasar reaches the Horizon when finality is sealed.

Open items

  • Consensus adoption. A Lens lane in the finality certificate is optional and orthogonal to the post-quantum cutover; it lands when a deployment asks for classical-threshold control-plane certificates.
  • Retiring the old adapter. lss_frost.go is removed once its callers have migrated to lss_lens.

Cited works

  • Komlo, C., Goldberg, I. FROST: Flexible Round-Optimized Schnorr Threshold Signatures. SAC 2020.
  • RFC 9591. The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. 2024.
  • Herzberg, A., Jakobsson, M., Jarecki, S., Krawczyk, H., Yung, M. Proactive Secret Sharing or: How to Cope With Perpetual Leakage. CRYPTO 1995/1997.
  • Desmedt, Y., Jajodia, S. Redistributing Secret Shares to New Access Structures. 1997.
  • Wong, T.M., Wang, C., Wing, J.M. Verifiable Secret Redistribution for Archive Systems. SISW 2002.
  • Seesahai, V.J. LSS MPC ECDSA: A Pragmatic Framework for Dynamic and Resilient Threshold Signatures. 2025.

Copyright and related rights waived via CC0.