Repository navigation
proof(xmss): define a counted game with complete signing replies - #843
Closed
alexanderlhicks wants to merge 4 commits into
Closed
alexanderlhicks wants to merge 4 commits into
alexanderlhicks wants to merge 4 commits into
Conversation
The game now uses the random oracle that leanXMSS and leanSPHINCS share: its answer type, its oracle and its world, and the shared map from an answer to its 32 bytes. It no longer defines copies of them, and it imports no XMSS-only byte module. The module header cites the leanXMSS draft only, names no declarations, and says that the merged theorem bounds a game whose signing replies drop the error. The docs of the bound predicate and of the target say what they state, and that the target is not proved here. The lakefile comment says that the VCVio pin is an unmerged commit. Every theorem statement is unchanged. The game's oracle types are master's, which are the same types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcoratger
force-pushed
the
codex/xmss-vcv-model
branch
from
November 6, 2026 09:43
a7c2f23 to
ce486f2
Compare
tcoratger
force-pushed
the
codex/xmss-vcv-bytes
branch
from
November 6, 2026 09:43
a9e5863 to
3504039
Compare
This was referenced Nov 6, 2026
Collaborator
|
XMSS was removed from EthLib in #5461; the formalization of leanVM, including its hash-based signatures, now lives in https://github.com/leanEthereum/leanVM. Closing this pull request here. |
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 XMSS proof gains an experiment that exposes the actual signing replies and counts every party's hash calls.
It declares the strong-forgery target but proves no security bound.
Stacked on #839.
The problem
An adaptive adversary can observe which signing error occurs and choose its next request from that reply.
A security reduction must preserve those errors, the complete reply log and the shared random-oracle cache.
Its hash budget must also cover key generation, signing, the adversary and final verification.
The idea
The new
Unforgeability.VCVmodel instantiates VCVio's signing-view and counted-experiment interfaces with EthLib's actual algorithms.It keeps
Except XmssError Signatureas the reply type.The actual signer still computes the full bottom tree before signing the top layer.
One oracle stores complete 256-bit hash replies.
The byte equivalence from #839 connects those replies to the shared encoding.
The observer charges each hash call before the cache lookup, so repeated inputs still cost one call each.
Private uniform sampling and the request event itself cost zero.
The experiment retains the complete outcome, hash count and final cache jointly.
Strong freshness checks successful replies, while the winning condition requires distinct indices across every attempted signing request.
Example
A client requests leaf 7 twice, and both calls return a signing error.
Both attempts remain in the raw log:
The repeated index makes the winning predicate false.
An error remains a normal reply, so the client can continue after receiving it.
For reviewers
The VCVio pin uses the reviewed
codex/xmss-model-foundationsintegration branch at516e8b8e.That commit contains five signing/counting foundation owners derived from VCVio #1009.
The branch starts at the existing
bbf05eeepin and credits that shared work.This draft needs upstream agreement on the dependency before merge.
The new module imports the actual algorithms and the new byte bridge.
It does not import the existing security proof.
The existing Option-reply theorem does not establish security for this richer experiment.
The declared target is
q / 2^127, with an all-party budget for raw hash calls.The reduction to that target remains open.
Checks
Validation uses parent
a9e58639over master59d8233e, with the VCVio integration pin at516e8b8e.lake build --wfail: passed, 6,019 jobs.lake exe check-decls: passed, 53,319 declarations and zero findings or baseline entries.The soundness and release-manifest Python unit tests also passed.
The binding and vector suites were skipped because their sources and interfaces are unchanged.
The VCVio foundation has separate validation that retains its inherited baseline findings explicitly.
Prepared by OpenAI Codex, an AI coding agent.