Skip to content

proof(xmss): define a counted game with complete signing replies - #843

Closed
alexanderlhicks wants to merge 4 commits into
codex/xmss-vcv-bytesfrom
codex/xmss-vcv-model
Closed

alexanderlhicks wants to merge 4 commits into
codex/xmss-vcv-bytesfrom
codex/xmss-vcv-model

Conversation

@alexanderlhicks

Copy link
Copy Markdown
Contributor

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.VCV model instantiates VCVio's signing-view and counted-experiment interfaces with EthLib's actual algorithms.
It keeps Except XmssError Signature as 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:

(leaf 7, error) -> (leaf 7, error)
reserved indices: [7, 7]

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-foundations integration branch at 516e8b8e.
That commit contains five signing/counting foundation owners derived from VCVio #1009.
The branch starts at the existing bbf05eee pin 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 a9e58639 over master 59d8233e, with the VCVio integration pin at 516e8b8e.

  • Full lake build --wfail: passed, 6,019 jobs.
  • Whole lake exe check-decls: passed, 53,319 declarations and zero findings or baseline entries.
  • Scoped native and axiom audits: 65 declarations and 43 reportable declarations, with no findings or nonstandard axioms.
  • Initialization audit: 104 constants and zero initialization work or hazards.
  • All 16 linters, changed-source style and layout, layer rules, soundness and release-manifest checks: passed.
  • Independent controls for adaptive error replies, all attempted indices, successful-pair replay and mismatched indices: passed.
  • Independent controls for complete outcome/cache erasure and two repeated warm hash calls charging exactly two: passed.

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.

alexanderlhicks and others added 4 commits November 6, 2026 10:39
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
tcoratger force-pushed the codex/xmss-vcv-model branch from a7c2f23 to ce486f2 Compare November 6, 2026 09:43
@tcoratger
tcoratger force-pushed the codex/xmss-vcv-bytes branch from a9e5863 to 3504039 Compare November 6, 2026 09:43
@github-actions github-actions Bot added type: proof New or changed theorems, with no change to the library code crypto Cryptography: EthLib/Cryptography crypto: xmss XMSS hash-based signatures docs Markdown documentation proofs Theorems under a Proofs directory labels Nov 19, 2026
@tcoratger

Copy link
Copy Markdown
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.

@tcoratger tcoratger closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto: xmss XMSS hash-based signatures crypto Cryptography: EthLib/Cryptography docs Markdown documentation proofs Theorems under a Proofs directory type: proof New or changed theorems, with no change to the library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants