Lens Curve Threshold Kernel
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
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:
| Component | Pulsar (lattice) | Lens (curve) |
|---|---|---|
| Math fields | Module-LWE / R_q | Discrete log / prime-order group |
| Sign math inherited (byte-equal) | Pulsar Sign1 / Sign2 / Combine | Round 1 / Round 2 / Aggregate |
| Commits | A·NTT(s) + B·NTT(r) lattice Pedersen | g^s · h^r curve Pedersen |
| Genesis | Trusted-dealer Bootstrap, OR Pedersen DKG over R_q (pulsar/dkg2/) | Distributed DKG — no trusted dealer needed at all — OR trusted-dealer Bootstrap |
| Per-epoch DKG | Never — verifiable secret resharing via pulsar/reshare | Never — verifiable secret resharing via lens/reshare |
| Lifecycle | LSS-managed (Generation, Rollback, KeyEraID, Reanchor) | LSS-managed (same) |
| LSS adapter | threshold/protocols/lss/lss_pulsar.go | threshold/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:
| Gap | LSS-FROST | Lens |
|---|---|---|
Sign() placeholder | returns "sign execution not implemented" | wires the actual two-round signing protocol |
Refresh() placeholder | bumps a generation counter only | calls lens/reshare.Refresh — real HJKY zero-polynomial refresh |
wPoly, qPoly single-process | one Go process generates both polynomials | distributed JVSS with per-party polynomial broadcast, round-based |
Hardcoded ChainKey: []byte("frost-chainkey"), RID: []byte("frost-rid") | placeholder strings shipped to production | RID from genesis-ceremony randomness; ChainKey from the bonded transcript |
verifyResharingFROST checks only public-key consistency | does not verify protocol correctness | full 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):
- Group public key preserved across resharing.
KeyEraIDpreserved across resharing.Generationincrements by one.RollbackFrom = 0on a forward transition.t_old != t_newworks.- Old set != new set works.
- New shares produce a valid signature under the unchanged group key.
- Pairwise material regenerated for the new party set.
- Rollback restores the previous generation snapshot.
- A malformed Pedersen commit or share fails verification.
Plus Lens-specific:
- RFC 9591-compatible signing path.
- Ed25519 / Ed448 / secp256k1 ciphersuite compatibility.
- Pedersen commitment verification over the selected curve group.
- Nonce and binding-factor handling matches the two-round protocol's requirements.
- No hardcoded
ChainKeyorRID.
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.gois removed once its callers have migrated tolss_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
Copyright and related rights waived via CC0.