Repository navigation
proof(xmss): equate signing with inline root reconstruction - #1091
Closed
alexanderlhicks wants to merge 1 commit into
Closed
alexanderlhicks wants to merge 1 commit into
alexanderlhicks wants to merge 1 commit into
Conversation
A settled path reconstructs the bottom root from its selected leaf. Lift this equality through the actual top-layer continuation. Normal errors and the complete raw cache stay in the result.
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.
A local Merkle-root equality must also preserve the cache seen by the rest of signing.
The added theorem equates the complete interpreted signing results, including normal errors and every raw-cache entry.
The problem
After bottom-layer signing, the signer reconstructs the full bottom tree and signs its root at the top layer.
Replacing that reconstruction requires the top layer to receive the same root bytes and the same cache.
The cache stores complete 256-bit oracle replies, including unrelated warm entries.
The idea
The actual bottom signature supplies an authentication path whose sibling subtrees are already settled in that cache.
VCVio's settled-path law reconstructs the root from the selected leaf and that path.
The proof substitutes this joint root/cache equality inside the actual top-layer continuation.
The caller supplies no path-settlement or successful-signature premise.
Example
At leaf index 65537, the bottom tree index is 1.
Both computations pass the same root bytes and cache to top-layer signing:
A bottom normal error skips the root and top layer.
A top normal error retains the reached cache and returns the same error.
For reviewers
The theorem compares computations under the random-oracle model.
It preserves the whole reply and raw cache for arbitrary initial cache contents.
An ordinary consumer can use the result in a continuation that observes the entire returned cache.
Physical hash charges, capped execution and unforgeability remain separate obligations.
Warm hits still count as physical hash calls, so their cost needs a separate offset theorem.
The parent uses the shared
HashSig.HashSpecoracle.The addition keeps the parent's code, documentation and dependency pin.
Checks
The author and a fresh independent reviewer checked exact commit
42665dcd.ROOT ran
lake build --wfail: 6427 jobs passed.lake exe check-declsinspected 67622 declarations with no findings.The owner passed all 16 registered linters over 51 private and public declarations.
The axiom audit covered 25 declarations and found only the standard three axioms.
The initialization audit found no load-time values or unreadable values among its 51 constants.
The ordinary consumer, layout, layers, writing, soundness and release checks passed.
The soundness and release unit suites passed 14 and 9 tests.
The ROOT run skipped bindings, vectors and the unchanged checker self-tests.
GitHub completed the library, exports, bindings and vector suites.
Its build job then reached the inherited 60-minute limit during the proofs step.
The later memory and declaration checks were skipped after cancellation.
The full ROOT build and declaration audit above passed independently.
Stacked on #855.
Prepared by OpenAI Codex, an AI coding agent.