This repository is a polynomial geometry demo for Jevil. The paper proposes
a few-time signature (FTS) scheme — a digital signature whose key
is only safe to use a fixed number of times, n*. Its cliff target is the
coefficient vector of a random polynomial f of degree at most D over the 64-bit
Goldilocks field; each signature reveals K hash-derived evaluations of f
(the HORS "hash to obtain a random subset" idea), and the public key ships one
free out-of-domain evaluation. The paper makes a hard signing budget carry an
observable consequence. Unlike HORS-family schemes (FORS in SLH-DSA) that degrade softly, Jevil
fails off a cliff — the moment the distinct revealed points cross D+1,
the polynomial is uniquely determined. The paper gives an O(D²) interpolation
bound. The demo uses a cubic-time implementation that expands each basis
polynomial separately.
In the full paper, f alone is not yet a signing key: Corollary 1 also invokes
the zk-WHIR knowledge extractor to recover the commitment randomness needed to
rebuild signing state. This repo omits that proof system and demonstrates the
polynomial cliff only.
The full proposal is post-quantum (hash-based, no number-theoretic hardness)
and transparent (no trusted setup). The browser illustrates the cliff
geometry using its own point sets and encoding (see KNOWN-GAPS.md).
Jevil is a recent preprint, not a standardized or broadly audited production signature scheme, and this repo omits its load-bearing zk-WHIR commitment. Read the following as proposed applications of the cliff idea, not as deployment advice. As §8 of the paper explains, the signer still has to stop at the cap.
- Firmware vendors capping signed releases per key — the budget
n*is the usage limit, and the cliff makes reaching the recovery threshold observable. - Per-tenure attestation budgets — an authority allowed to attest exactly
n*times must stop at that cap. An additional signature can make the polynomial recoverable when it supplies enough distinct points. - Ephemeral session signers — a short-lived signer with a policy that stops signing when its budget is exhausted.
- Audit-budgeted credentials — where the signer, not the verifier, should bear the cost of breaking the cap; oversigning fails loudly and against the signer.
- Do NOT use it for anything needing many signatures from one key — reach
for a standard scheme like ML-DSA (Dilithium) or SLH-DSA (SPHINCS+) instead;
Jevil's cliff concerns the number of distinct evaluations. The earliest
worst-case threshold is signature
n*+1.
systemslibrarian.github.io/crypto-lab-jevil
Generate a key, then either Sign (honest) a message or Grind toward
cliff — the adversarial mode that packs the public ledger with disjoint
points as fast as possible. Watch the distinct-point meter climb and, the
instant it reaches D+1, see the secret polynomial reconstructed live from public data
with an exact-match check. Below the cliff the page states, exactly, how many
polynomials of degree at most D still fit the revealed evaluations — |F|^(D+1−m), which
is a finite count over the selected field. Signing the same message again with the same demo key repeats the same evaluations and leaves that count unchanged. Note the
scope: that statement is about the evaluation equations. The public key also
publishes a binding fingerprint of the coefficients, so an adversary with
unbounded computing power can enumerate seeds and test them against it. See
KNOWN-GAPS.md. This is a signature demo (no encrypt/decrypt); the
controls are the budget n*, the positions-per-signature K, the field
(64-bit base field or a F(q₀⁴) ≈ 2²⁵⁶ extension in the demo's own basis), and the signer
(honest, or a malicious uncommitted higher-degree key that escapes the cliff —
showing what the zk-WHIR commitment prevents).
Auditable, not just convincing. Use Export public recovery transcript to download a JSON file containing only public data — params, the OOD pair, the deduplicated revealed points, and a binding fingerprint of the key (no secret). Anyone can then reconstruct the key from that file alone:
# internal consistency only — the fingerprint compared against is IN the file
npm run verify path/to/jevil-transcript.json
# anchored — the fingerprint comes from the key panel, not from the file
npm run verify path/to/jevil-transcript.json --expected-fingerprint <64 hex>These two results say different things, and the CLI labels them differently.
~ INTERNALLY CONSISTENTmeans the supplied points interpolate to a key whose hash equals the fingerprint stored in that same file. It proves the recovery is a computation, not a stored answer. It does not prove the file belongs to any particular key: a transcript exported from a completely different key passes identically, which this repo's own test suite demonstrates.✓ VERIFIED against the expected public keyrequires--expected-fingerprintfrom an independent source, and is the only result that speaks to provenance.
A malicious/over-degree transcript, a tampered point, or any of seventeen
malformed-field cases is refused with a structured code (BAD_PARAMS,
BAD_OOD, FINGERPRINT_MISMATCH, ANCHOR_MISMATCH, …).
The file is a recovery transcript, not a signature ledger: it shows that the included public points suffice to reconstruct the key. It does not record which messages were signed, how many signing operations produced the points, or which points belonged to which signature.
- Exceeding the budget is total, not partial. Once the distinct revealed points reach
D+1, anyone Lagrange-interpolates the entire secret polynomial — there is no "slightly weaker" zone in the cliff geometry. Full Jevil's forgery extractor must additionally recover the zk-WHIR commitment state. - No graceful degradation. Unlike soft-failing HORS/FORS, a few-time scheme with this cliff geometry has nothing between "safe" and "fully recovered."
- Misconfigured
KandDblow the cap early. The largerKis relative toD, the fewer signatures it takes to accumulateD+1distinct points, so a bad parameter choice exhausts the budget faster than expected. - Without the commitment binding, the cliff can be dodged. A malicious signer using an uncommitted higher-degree key escapes recovery; this repo shows that geometry but does not implement the full zk-WHIR commitment that prevents it (see
KNOWN-GAPS.md). - "Few" must actually be enforced. Reusing one key across contexts, or losing track of the count, can quietly cross the threshold and leak the key.
- Few-time and one-time hash-based signatures — HORS, and the FORS layer inside SLH-DSA/SPHINCS+ (FIPS 205) — are deployed where post-quantum, setup-free signatures are needed.
- Hash-based signatures rest only on the security of hash functions, with no number-theoretic assumption for a quantum computer to break, which is why they anchor conservative PQ signature standards.
- Hard signing-cap semantics map to real needs: firmware-release budgets, attestation limits, and ephemeral signers that must self-enforce a usage count.
- The Goldilocks field (
2⁶⁴ − 2³² + 1) used here is common in modern hash-based and STARK-friendly constructions because its arithmetic is fast.
git clone https://github.com/systemslibrarian/crypto-lab-jevil
cd crypto-lab-jevil
npm install
npm run dev- crypto-lab-sphincs-ledger — SLH-DSA (SPHINCS+), the stateless hash-based signature whose FORS layer Jevil echoes.
- crypto-lab-lms-ledger — LMS/HSS with LM-OTS one-time signatures (RFC 8554 §4), stateful hash-based signatures (NIST SP 800-208).
- crypto-lab-lms-xmss — LMS and XMSS one-time-signature trees side by side.
- crypto-lab-mpcith-sign — MPC-in-the-Head signatures, another hash/symmetric-only PQ approach.
- crypto-lab-dilithium-seal — ML-DSA (FIPS 204), the many-time PQ signature to reach for instead.
Standards reviewed 15 November 2026: the lms-ledger entry above previously said "W-OTS+". LMS builds on LM-OTS (RFC 8554 §4); WOTS+ (RFC 8391 §3.1) is the XMSS family's one-time scheme.
npm test # crypto-core faithfulness proof (both fields + malicious mode)
npm run test:e2e # browser regression suite: the page's numbers vs each other
npm run test:a11y # Playwright: WCAG 2.1 AA (axe-core) + the functional claims gate
npm run build # produce the static sitetest:a11y runs everything in e2e/: the axe scan in both themes, and
e2e/claims.spec.ts, which pins the states a single-run harness never reaches —
an export verdict left describing a ledger that has since advanced, and key
selectors moved without pressing Generate key.
CI runs the core test, the build, and the e2e suite on every push
(.github/workflows/verify.yml) and deploys to GitHub Pages
(deploy.yml).
Part of the Crypto Lab suite.
"So whether you eat or drink or whatever you do, do it all for the glory of God." — 1 Corinthians 10:31