test: Add PQC readiness tests for post-quantum key/signature sizes#6971
Open
favsidv wants to merge 2 commits intoXRPLF:developfrom
Open
test: Add PQC readiness tests for post-quantum key/signature sizes#6971favsidv wants to merge 2 commits intoXRPLF:developfrom
favsidv wants to merge 2 commits intoXRPLF:developfrom
Conversation
… Added a test suite that documents and verifies rippled's behavior when confronted with key and signature sizes typical of post-quantum algorithms (ML-DSA/CRYSTALS-Dilithium, Falcon, SLH-DSA). The 10 test cases confirm that oversized keys and signatures are rejected cleanly across publicKeyType, PublicKey construction, VL serialization, STTx checkSign, STValidation, ecdsaCanonicality, consensus proposal storage, and keyTypeFromString, with no crashes, no truncation, and no undefined behavior.
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.
Summary
PQCReadiness_test.cpp: 10 test cases (51 assertions) that document and verify rippled's behavior when confronted with post-quantum key and signature sizes (ML-DSA, Falcon, SLH-DSA);publicKeyType,PublicKeyconstruction, VL serialization,STTx::checkSign,STValidation,ecdsaCanonicality, consensus proposal storage, andkeyTypeFromString;Context
XRPL-Standards discussions #79 and #295 outline the path toward post-quantum cryptography in XRPL. AlphaNet has demonstrated Dilithium integration, but the official codebase has no tests documenting PQC readiness boundaries.
These tests use synthetic blobs at PQC-representative sizes (not actual PQC algorithms) to map where rippled currently blocks oversized cryptographic material.
Test plan
./xrpld --unittest=PQCReadiness, 10 cases, 51 tests, 0 failures.”