LPsLux Proposals
Q-Chain
LP-4550

lp-4550-thbs-se-threshold-slh-dsa


lp: 4550 title: THBS-SE — Selected-Element Threshold SLH-DSA description: Threshold-signing FIPS 205 SLH-DSA on a public BFT chain without a TEE and without a privileged aggregator, by thresholding only the per-signature atoms the signature reveals anyway author: Lux Industries discussions-to: https://github.com/luxfi/lps/discussions status: Final implementation-rust: none implementation-cpp: none implementation-go: partial type: Standards Track category: Core tags: [pq, slh-dsa, threshold, hash-based, fips-205, magnetar, shamir]

  • lp-4500
  • lp-4540
  • lp-4950

Abstract

THBS-SE — Threshold Hash-Based Signatures with Selected-Element Reconstruction — produces a FIPS 205 SLH-DSA signature from a t-of-n committee on a public BFT chain without a TEE, without a designated aggregator, and with no long-lived secret material outside party-local Shamir leaves.

The central insight: threshold only the per-signature FORS and WOTS+ atoms that the final signature reveals anyway, and never reconstruct the master seed as a protocol step. The wire output is byte-identical to a single-party FIPS 205 signature; an unmodified cloudflare/circl/sign/slhdsa.Verify accepts it.

Motivation

SLH-DSA (FIPS 205) is the canonical post-quantum hash-based signature standard. It is also notoriously hard to threshold. The secret key is a single 32-byte seed S, and FIPS 205 signing deterministically derives the WOTS+ chain bases and FORS leaves from S. Any t-of-n construction built on sharing S either reconstructs it — defeating the threshold property — or requires circuit-level MPC over the whole FIPS 205 computation, which is impractical.

Two results in the literature say exactly this:

  • Cozzo and Smart (2019) showed that naive Shamir-share-of-seed schemes either reconstruct the seed or need circuit-level MPC.
  • Bonte, Smart and Tan (2023) reinforced this for hash-based schemes specifically, arguing the seed-threshold pattern cannot achieve non-trivial-cost threshold signing while preserving FIPS 205 byte-identity.

THBS-SE bypasses the obstruction with a different decomposition. It never tries to threshold the whole seed. It thresholds only the material the signature reveals to the verifier anyway, and binds the share reconstruction to the specific slot being signed.

Specification

Construction

  1. Committee selection. Public randomness — the randomness beacon at LP-4060, plus per-slot domain-separated derivation — selects an over-committee of size n with threshold t. The over-committee tolerates n − t silent withholders.

  2. Leaderless PVSS / DKG for the slot-local key. The reference setup ships a deterministic dealer pattern; production deployments run the leaderless publicly-verifiable secret sharing path. Either way the output is a slot-local SLH-DSA seed S, byte-wise Shamir-shared across (n, t) over GF(257), with (PK, SK) derived from S. After setup no party holds S; each party holds its own share_i.

  3. Joint root commitment. (PK, committee, n, t) is published as the slot-local public material. PK is what external verifiers check against.

  4. Round-1 commitments. Party p_i samples a per-round mask r_i, computes the masked share s'_i = share_i XOR r_i, and broadcasts

    D_i = cSHAKE256(r_i || s'_i || tau)
    

    where tau is the slot binding encoding plus the message plus the party ID. The broadcast carries (party_id, slot_id, D_i, availability_bit). Each party persists (slot_id, H(slot_id || msg)) in its local slot guard.

  5. Round-2 selected-atom reveals. After Round-1 quorum is observable, each party reveals PartialSig = r_i || s'_i. Replay is idempotent: re-issuing Rounds 1 and 2 for the same (slot_id, msg) returns the persisted messages, while a genuine equivocation attempt — same slot_id, different msg — raises ThbsSeEquivocationError without emitting the second message.

  6. Public combiner. Any party — validator, block proposer, RPC node, passive watcher — collects ≥ t Round-2 reveals. For each it re-derives D_i from the partial signature, slot binding, message and party ID; a mismatch produces a typed ThbsSeShareEvidence blob carrying reason = ThbsSeShareCommitMismatch. Valid reveals are XOR'd to recover each share_i, and the seed is Lagrange-interpolated over GF(257) via shamirReconstructGF. The FIPS 205 context is bound as

    ctx = tagThbsSeCtxPrefix || slot_id   (32 bytes, <= 255 per FIPS 205 §10.2)
    

    The combiner calls slhdsa.SignDeterministic(seed, msg, ctx), zeroizes the seed and intermediates, and returns the {Mode, FIPS 205 wire bytes} blob.

  7. Verification. Standard FIPS 205: slhdsa.Verify(pk, msg, sig, ctx). The reference exposes this as VerifyBytesCtx for stateless dispatch.

The hard invariant

A revealed value is allowed only if it is also present in the final SLH-DSA signature.

Allowed reveals:

  • The per-round mask r_i and masked share s'_i. Both flow into the Round-2 PartialSig payload; together they let any combiner recover share_i = r_i XOR s'_i. The share alone is uniform-random to anyone holding fewer than t leaves — that is Shamir's information-theoretic property over GF(257), not a computational assumption.
  • The reconstructed FIPS 205 randomizer R and the signature payload bytes. These are the public output of Combine and are byte-identical to what a centralised SignDeterministic would produce on the same (seed, message, ctx).

Forbidden reveals:

  • SK.seed in any party-local persistent form. Each party holds only its Shamir leaf.
  • SK.prf in any form. Derived from the seed; never persisted party-local.
  • Future-slot share material. The slot guard refuses same-slot re-emission and the share envelope is per-slot.

Enforcement points: Combine input validation (malformed shares, wrong wire size, slot mismatch → typed evidence blob, no signature emitted); the slot-guard pre-check; and FIPS 205 verifier semantics, which reject any byte deviating from the expected wire shape.

Wire byte-identity

The output of Combine on ≥ t valid Round-2 reveals is byte-identical to slhdsa.SignDeterministic(seed, msg, ctx) on the original tuple. Two facts give this:

  • The seed reconstructed by shamirReconstructGF from any valid size-t subset of shares is the original seed — Lagrange interpolation is subset-independent.
  • SignDeterministic is, by FIPS 205 §6.1, a pure function of (seed, msg, ctx).

The load-bearing gate is TestThbsSE_Wire_FIPS205Verifiable, which generates a committee, runs the full Setup → Round-1 → Round-2 → Combine ceremony, strips the frame from the output, calls unmodified cloudflare/circl/sign/slhdsa.Verify(pk, msg, payload, ctx), and asserts it returns true across M192s, M192f and M256s. A wire change that breaks this test breaks byte-identity and is a regression, not a variation.

Slot binding

Every signature is bound to a slot tuple:

(chain_id, epoch, slot, height, committee_id, message_domain)

which flows into the Round-1 cSHAKE256 commit transcript (via tau) and into the FIPS 205 ctx string at combine time (via tagThbsSeCtxPrefix || slot_id).

The same committee therefore cannot reuse share material at a different slot, and any verifier holding the slot tuple derives ctx and calls FIPS 205 Verify directly. The slot binding is part of the verification interface, not an implementation detail.

Slot guard and equivocation evidence

Each party tracks the slots it has signed at via ThbsSeSlotGuard. A second signature attempt at the same slot under a different message hash is refused locally and produces a slashable ThbsSeEquivocationError carrying a public ThbsSeEvidence blob for the consensus layer. The evidence is publicly verifiable via VerifyThbsSeEvidence — a pure function, requiring no committee state.

Over-selected committee

(n, t) with n > t tolerates up to n − t silent withholders. Combine picks any t valid Round-2 reveals; the interpolation is determined by any t evaluation points, so disjoint sub-quora of size t produce byte-equal signatures. That is the liveness guarantee: a permissionless chain can lose up to n − t validators in a slot and still finalize, and two honest sub-quora that never communicate still agree on the bytes.

Public-BFT state hygiene

Safety on a public BFT chain rests on five pieces:

  1. Slot binding — the FIPS 205 ctx is the verifier-side encoding of the slot tuple; reuse across slots is detectable by anyone holding the tuple.
  2. Slashing evidence — equivocation and share-commit-mismatch evidence are both typed, public, and consumed by consensus.
  3. Over-selected committee — silent withholders cannot stall the slot.
  4. Public combiner — no privileged aggregator role; combine is a pure function.
  5. Idempotent replay — re-issuing the same ceremony is a no-op; genuine equivocation produces slashable evidence instead of a second signature.

Rationale

Why threshold only the revealed elements

A FIPS 205 signature reveals a small, message-selected subset of the hypertree: specific FORS leaves, specific WOTS+ chain bases. Thresholding the whole hypertree is wasteful — most of it is never revealed — and hard, because the unrevealed branches must stay private to preserve FIPS 205 security. Thresholding only the revealed elements is the minimal-information sharing consistent with byte-identity.

Why a public combiner

A designated combiner is two problems at once: a single point of failure for liveness, and a single privileged trust target for safety. A public combiner distributes both. Liveness becomes committee-bounded rather than combiner-bounded, and because no party is privileged, the safety argument does not depend on any single combiner's compute base.

Why slot binding lives in the ctx

FIPS 205 ctx is a verifier-side input: the relying party must supply ctx matching the signer's. Encoding the slot binding into ctx means the relying party's verify check inherits the slot binding for free — no additional protocol state at verify time.

Why GF(257) for Shamir

GF(257) lets each byte of the 32-byte seed be shared independently. q = 257 is the smallest prime greater than 256, so reconstruction is byte-wise and matches the seed's natural byte representation. A larger field would require packing; a smaller one cannot represent a byte.

Implementation status

PARTIAL — and the gap is worth stating precisely rather than hiding.

The strictest formulation of the invariant — no party or combiner ever reconstructs SK.seed, even transiently in memory — requires the strict-atom-assembly path: assembling the FIPS 205 signature directly from per-atom share reconstructions of the message-selected FORS leaves and WOTS+ chain bases, bypassing the canonical slh_sign_internal procedure entirely. That needs an internal re-implementation of FIPS 205 §5 (WOTS+ chain), §6.2 (FORS sign), §7 (XMSS) and §8 (hypertree), because cloudflare/circl/slhdsa does not expose those operations publicly.

What ships today is the public combiner path: the seed is briefly present in the combiner's memory for one SignDeterministic call and is zeroized before return.

Where that lands, honestly, on both sides:

  • Stronger than a TEE-attested privileged-aggregator model, because no host sits in the trusted computing base and the combiner role is public — anyone can combine on their own substrate.
  • Weaker than the strict invariant, because a peer-local memory-disclosure adversary, at exactly the combine moment, could observe the seed.

The TEE-only extension is the construction to reach for when the threat model demands "seed never in any host's memory". THBS-SE's public-BFT path is the construction for when the threat model is "no privileged party".

Test Cases

  • TestThbsSE_Wire_FIPS205Verifiable — full ceremony round-trip fed to unmodified cloudflare/circl/sign/slhdsa.Verify across M192s, M192f, M256s.
  • TestThbsSE_RejectSeedReveal — a malicious party publishing SK.seed as a "share" is rejected at verify time.
  • TestThbsSE_RejectUnselectedFORS — any reveal outside the message-selected atom set is rejected by Combine's input validation.
  • TestThbsSE_SlotReuseRejected — signing two distinct messages under the same slot is rejected with detectable evidence.
  • TestThbsSE_OverselectedCommittee_SurvivesWithholding — n = 7, t = 3, four honest signers and three withholders still produce a valid signature.

KAT vectors at magnetar/vectors/thbsse-sign.json pin the ceremony's deterministic outputs.

Reference Implementation

  • magnetar/ref/go/pkg/magnetar/thbsse.go — the full construction: protocol shape, Round-1 and Round-2, Combine, and Verify (standard FIPS 205, no Magnetar code on the verifier side).
  • magnetar/ref/go/pkg/magnetar/thbsse_field.go — GF(257) Shamir reconstruction (shamirReconstructGF).
  • magnetar/ref/go/pkg/magnetar/wire.go — VerifyBytesCtx, the slot-bound stateless verifier surface.

Security Considerations

The slot binding in ctx is load-bearing. A verifier that does not supply the matching ctx will fail to verify a valid signature — and, more dangerously, will accept a signature for a different slot if the wrong ctx is supplied. The relying party's responsibility is to derive ctx from the slot tuple it observes on chain, never from the signature itself.

The equivocation evidence path feeds the slashing pipeline. A party that signs two distinct messages at the same slot produces evidence VerifyThbsSeEvidence accepts, and the consensus layer's slashing rule consumes it.

The over-selected committee is a tradeoff, not a free win: a larger n for fixed t buys liveness — more silent withholders tolerated — but increases per-round broadcast cost. Tune (n, t) to the slot's value-at-risk: a sovereign L1 with small value-at-risk runs (n = 4, t = 3); a high-value L1 runs (n = 21, t = 14). The PQ-heavy cert profile (LP-4950) consumes whatever (n, t) the L1's spawn transaction bound.

Copyright and related rights waived via CC0.