Papers1 provider · 1 record
January 1, 2026· Zenodo
preprint

One reuse of a Winternitz key: the exact chance of a forgery

Abstract

STATEMENT If a Winternitz one-time key signs two random messages, an attacker can sign any third message whose every digit, checksum digits included, is at least the smaller of the two signed digits at that position. This paper computes exactly how likely that is for a random third message. For the Winternitz keys inside SLH-DSA-128 (base 16, 32 message digits, 3 checksum digits) the chance is 2.965378341180 × 10⁻⁶, certified to a relative error of 2 × 10⁻¹², or 18.363352 bits: about 1 message in 337,225. The formula usually quoted treats the checksum digits as independent and gives 18.2077 bits, so it is pessimistic for this key by 0.1557 bits; on smaller keys it errs in both directions. The same computation is then made for Ax, the hash-based scheme planned for Solana's validator votes, which replaces the checksum with a fixed digit sum (WOTS-TS: base 32, 39 digits, target 781, at the 192-bit level). There a reuse is an equivocation. A random encoding clears the two revealed positions with chance 2^−41.182075, each attacker try must also hit the target (2^−14.001475), and so one try succeeds with chance 2.443971130712 × 10⁻¹⁷, that is 2^−55.183550. One equivocation cuts an Ax key from its 192-bit design level to about 55 bits of hashing work, on average. MOTIVATION Hash-based signatures are being chosen for post-quantum migrations, and stateful schemes (XMSS, LMS, and XMSS-style designs such as Ax) are only safe if a one-time key never signs twice. What a single slip costs has so far been given by a formula that assumes independent digits, or estimated by sampling. A dynamic program over the joint sums of the three messages gives the exact average, and both computations were registered, with guesses and controls, and frozen before they ran. STATUS Preprint, 5 December 2026. Not yet independently refereed. Read by the author. Appendix A works the method by hand on the smallest cases, and three figures show the hash chains, the formula's error by key size, and Ax's bit levels. Both runs (WR1 v1 and AX1 v1) ran once as registered, and every control passed. WR1's two guesses passed; AX1's guesses G1 and G3 passed and G2 failed (the true cost, 55.18 bits, is about 10 bits above the guessed range of 25 to 45). After the AX1 run a slip was found in how its program printed its error bound (0.0e+00); evaluated exactly the bound is 2.8144 × 10⁻¹³, and no printed digit of the results changes. Every number in the paper is checked by a script (138 checks), in the companion code record. Duif and Meijer (ePrint 2026/1321) count the forgeries for a given pair exactly and sample pairs, reporting medians and first percentiles; their "checksum pinning" fixes the digit sum, as Ax does. As far as these sources show, the exact averages over all pairs, and the result for Ax, are new. RESULTS 1. WR1, SLH-DSA-128 keys (W = 16, L = 32, 3 checksum digits): P2 = 2.965378341180 × 10⁻⁶ (18.363352 bits), against 18.2077 bits from the independence formula; the exact value is 0.898 times the formula's. 2. Small keys, exact fractions beside the formula, for base 2, 4 and 16: the formula is optimistic in three rows, (2, 2), (4, 2) and (16, 2), and pessimistic in the others. 3. AX1, Ax with w = 32, v = 39, T = 781: pT = 2^−14.001475 per try (the white paper's "about 2^14 grinding steps"), P2TS = 4.008298322443 × 10⁻¹³ (41.182075 bits), q = 2.443971130712 × 10⁻¹⁷ (55.183550 bits); 39 independent digits would give only 21.5235 bits, so the fixed sum is a strong guard, but one equivocation still leaves about 4.09 × 10¹⁶ tries. 4. What is not covered: the spread over pairs (the low tail), three or more reuses, how often reuses happen, and the strength of any hash function. APPENDIX: THE MATHEMATICS The smallest case with a checksum: one bit d with checksum bit 1 − d. Of the 8 triples (d1, d2, d3), the pairs (0, 0) and (1, 1) allow one value of d3 each and the mixed pairs allow both, so P2 = 6/8 = 3/4. Dropping the checksum gives 7/8, the test the method must fail. For a fixed digit sum, base 3 with 2 digits summing to 2: the encodings are (0, 2), (1, 1), (2, 0); the counts of x3 that clear the lower positions are 1, 2, 3 / 2, 1, 2 / 3, 2, 1, a total of 17 of 27, so P2TS = 17/27 and, with pT = 1/3, q = 17/81 per try; without the fixed sum it would be 52 of 81. The formula's p for base 16 is Σ_{k=1}^{16} (2k − 1)k / 16³ = 2856/4096. FILES One_reuse_of_a_Winternitz_key.pdf: the paper (17 pages). Code, registrations, freeze records, logs, hand checks, the post hoc check and the paper's check: Zenodo record doi:10.5281/zenodo.24886923, archive Winternitz_reuse_code.zip (SHA-256 beginning 068a12c0fc5db588). AI ASSISTANCE The work was directed by the author. Most of the computational work was done with Claude (Anthropic) and Gemini (Google), with support from Grok (xAI). The text was drafted with AI assistance from the project's records and edited by the author, who takes responsibility for its contents. REFERENCES [1] S. Fluhrer, "Oops, I did it again revisited", IACR Cryptology ePrint Archive 2023/1905. [2] L. Groot Bruinderink and A. Hülsing, "'Oops, I did it again' – Security of one-time signatures under two-message attacks", Selected Areas in Cryptography 2017. [3] NIST, FIPS 205, Stateless Hash-Based Digital Signature Standard, 2024. [4] Duif and Meijer, "Signing it twice: mitigating the effects of state reuse for stateful signatures", IACR Cryptology ePrint Archive 2026/1321. [5] Q. Kniep, K. Sliwinski and R. Wattenhofer, Alpenglow White Paper v1.2, 29 July 2026, Section 5.2. [6] J. Drake, D. Khovratovich, M. Kudinov and B. Wagner, "Hash-Based Multi-Signatures for Post-Quantum Ethereum", IACR Cryptology ePrint Archive 2025/055. [7] Certified Algebra: Exact Checks from Pencil to AI, book, Zenodo, 10.5281/zenodo.24837041. [8] One reuse of a Winternitz key: code and logs, Zenodo, doi:10.5281/zenodo.24886923.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.