Repository navigation
feat: introduce SLH-DSA Verification Precompile - #118
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
A preamble linter issue remains because MIP-24’s discussions-to points to the generic forum category page instead of a specific proposal thread URL, requiring an update to the correct thread link.
1 open issue
What changed in this PR
This PR adds MIP-24, a Standards Track Core proposal introducing a new stateless precompile (VERIFY_SLHDSA_SHA2_128S at 0x0000000000000000000000000000000000001002) that verifies FIPS 205 SLH-DSA-SHA2-128s signatures in pure mode with an empty context. It targets high-assurance post-quantum keys (for example, account recovery and rotation keys held in HSMs), fitting into Monad's precompile range and complementing existing secp256k1/secp256r1 verification. The proposal is self-contained documentation plus conformance test vectors and does not modify existing protocol behavior.
Changes:
- Adds the MIP-24 specification, including input/output layout, gas schedule, rationale, security considerations, and a complete Python reference verifier.
- Self-assigns MIP number 24 and precompile address
0x1002as the next sequentially available slot. - Adds
vectors.jsonwith nine test cases (valid, invalid, short, and ACVP-derived inputs) in the go-ethereum precompile-test JSON layout.
| File | Description |
|---|---|
| MIPs/MIP-24.md | New MIP specifying the SLH-DSA verification precompile, gas pricing, rationale, security notes, and reference implementation. |
| assets/MIP-24/vectors.json | Conformance test vectors (inputs, expected outputs, and gas) backing the MIP's Test Cases section. |
Review effort: Max
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

SLH-DSAsignature verification