# Production ML-DSA Verification in 350 Lines of Python

DevFeed: [Production ML-DSA Verification in 350 Lines of Python](<https://devfeed.tech/articles/production-ml-dsa-verification-in-350-lines-of-python-20698.md>)

Original publisher: [Read original article](<https://words.filippo.io/mldsa-py/>)

Author: Filippo Valsorda

Published: 2026-07-26T11:45:08Z

Content type: article

Language: en

Sources: [Filippo Valsorda](<https://devfeed.tech/sources/filippo-valsorda.md>)

Topics: [Post-Quantum](<https://devfeed.tech/topics/post-quantum.md>), [Python](<https://devfeed.tech/topics/python.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>)

Tags: [cryptography](<https://devfeed.tech/tags/cryptography.md>), [mutation-testing](<https://devfeed.tech/tags/mutation-testing.md>), [post-quantum](<https://devfeed.tech/tags/post-quantum.md>), [python](<https://devfeed.tech/tags/python.md>), [testing](<https://devfeed.tech/tags/testing.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

The article presents a production pure-Python ML-DSA signature verifier that supports all parameter sets, Python 3.8 and later, and an API modeled after pyca/cryptography. It describes the implementation's performance, portability rationale, and testing with Wycheproof vectors, accumulated vectors, pytest, mutation testing, and branch coverage.

## Source excerpt

I am publishing a production, pure-Python ML-DSA verifier. It's just 350 lines, and pretty readable and robust.