Repository navigation
proof(xmss): bound the probability that a signing request fails - #1588
Merged
Merged
Conversation
tcoratger
force-pushed
the
xmss-ideal-failure
branch
from
November 8, 2026 14:19
5f17f77 to
76694a8
Compare
In the ideal game of the derivations, a new codeword search meets a cached trial with probability at most Q / 2^96 and otherwise fails with probability at most exp(-4000); a repeated search succeeds once its first run did. A union bound over the requests, with the two hidden-seed hops, bounds the signing failure by 2 Q / 2^256 + r (Q / 2^95 + 2 exp(-4000)), and completes the bound of the signer that tells why signing failed. Part of ethereum#1385. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcoratger
force-pushed
the
xmss-ideal-failure
branch
from
November 8, 2026 14:21
76694a8 to
fecc746
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The probability that some leanXMSS signing request fails in the unforgeability game is now bounded, and the bound completes the theorem for a signer that tells why signing failed.
This is step 3 of route B on #1385, approved by the maintainer on #1385, and it closes EXT-23 part 2.
The problem
#910 proved that an adversary who sees why signing failed forges with probability at most
q / 2^127 + signingFailure.signingFailureis the probability that some signing request fails, and it had no bound.#1586 moved it, at a cost of
2 Q / 2^256, to an ideal game where every derivation from the seed is drawn from a lazy table on first use.What remained is the failure in that ideal game.
The idea
A request runs two codeword searches, one per layer, each of at most
2^32trials.A search reads its randomizer base from the table at the parameter, its key's address and the message.
A cached input at the key's message address is a trial input for at most
2^32of the2^128bases.With at most
Qcached inputs, some trial is already cached with probability at mostQ / 2^96.Otherwise every trial is fresh, and all fail with probability at most
exp(-4000)(proof(xmss): bound forgery when the signer tells why signing failed #910'sprEvent_findCodeword_none_le).If its first run succeeded, the cache holds a trial with a codeword digest, so the repeat succeeds too.
So a request fails, or leaves a search without a codeword, with probability at most
Q / 2^95 + 2 exp(-4000), as long as every earlier search found one (prEvent_requestD_le).An induction on the adversary sums this over its
rrequests (failsAtMost_run_failSignerOf).Each step's bound is a
FailsAtMoststatement.It says: from a state where every search found a codeword, the step fails, or leaves a search without one, with probability at most a given term.
Only runs whose cache ends with at most
Qentries count, and every run does, because the game makes at mostQhash calls.Example
The statements, with
Q = gameQueries qH r = 205 * 2^16 + 1 + qH + r (2^33 + 615 * 2^16) + 384:For
qH = 2^40andr = 2^10,Qis about2^43, and the failure term is about2^-42.The term is at least
r^2 / 2^62, so it exceeds 1 from about2^31requests, half a key's lifetime, and also onceqH >= 2^95.For reviewers
The proof charges each new search the whole cache as possible hits on its trials.
Only the adversary's queries can hold a trial input of a new search: other keys' trials have other addresses, and messages have fixed length.
Counting only those, or bounding how many trials are cached rather than whether one is, would give a bound linear in
r.That sharper bound is left as follow-up on proofs: leanXMSS unforgeability follow-ups #1385; this pull request proves the bound the route approved.
SearchesFoundis the invariant: every table entry at a randomizer-base address has a cached trial with a codeword digest.Key generation draws no randomizer base, so it holds after key generation.
IsQueryBoundP), as in proof(xmss): move the signer's secrets behind two hidden-seed hops #1586; the main theorem's budgetqis the support-based one of proof(xmss): bound forgery when the signer tells why signing failed #910.Proofs/Wots.lean, and the growth of the ideal game's state inIdealBase.lean.Checks
lake build --wfail EthLib.Cryptography.Proofs.Xmss EthLib.Cryptography.Proofs.Wots EthLib.Consensus.Proofs.PqKeys.Possession EthLib.Consensus.Proofs.PqKeys.PossessionBinding: passes.lake env leancheckeronProofs.Wots,IdealBase,IdealSearch,IdealFailureandProofs.Xmss.Unforgeability: passes, peak 3.5 GB; each new file elaborates in about 2 s at about 2 GB.#print axiomsofreasonForgeAdvantage_le_bounded:propext,Classical.choice,Quot.soundonly, pinned by#guard_msgs.scripts/check_lean_layout.py --base upstream/master: no finding.Part of #1385: EXT-24 and EXT-25 stay blocked on draft pull requests.
🤖 Generated with Claude Code