Posted by Zaenus
Dec 4, 2026/14:56 UTC
Signature verification performance is a critical consideration when evaluating cryptographic schemes for blockchain systems. BIP-340, which specifies Schnorr signatures for Bitcoin, serves as a standard benchmark due to its widespread adoption and optimized implementation. Comparative measurements across several signature schemes—ML-DSA, SLH-DSA (in both SHA2 and SHAKE variants), and Schnorr—reveal significant differences in verification costs. Testing conducted on an Intel i7-13650HX, using one pinned performance core at idle, includes all steps from parsing the raw public key through full signature verification. Notably, Schnorr verification used libsecp256k1 v0.8.0, while ML-DSA and SLH-DSA operated under OpenSSL 3.5.
When examining per-signature computational cost relative to BIP-340, none of the NIST candidate schemes meet the established rule of thumb for efficiency: ML-DSA variants range from 3.6 to 8.5 times the cost, SLH-DSA-SHA2 spans 9.7 to 28.4 times, and SLH-DSA-SHAKE covers an even broader range of 25 to 107 times. However, when normalized per byte of combined public key and signature data, each of these schemes proves less expensive than Schnorr, with ratios spanning from 0.09 up to 0.38. This indicates that despite higher total computation per signature, their relative efficiency improves with larger input sizes.
Hash-based scheme performance was further analyzed by benchmarking SHA-256 compression operations, providing conversion factors to estimate equivalence with BIP-340 verifications. On hardware supporting SHA-NI instructions, a single BIP-340 verification equates to roughly 599 SHA-256 compressions, while disabling these extensions reduces the figure to 197 using OpenSSL’s assembly optimizations. The SHRINCS specification provides a third reference point at 127 compressions. Applying these metrics to SHRINCS’ published worst-case scenarios shows stateful variants can approach or surpass Schnorr’s efficiency on SHA-NI hardware, but stateless variants remain significantly slower across all measurement standards.
The choice of which performance metric to prioritize hinges on the minimum hardware specifications expected of network validators. For instance, stateful SHRINCS’ worst-case verification is marginally faster than Schnorr with SHA-NI, but this advantage disappears without hardware acceleration or on alternative software implementations. Additionally, OpenSSL’s implementation of SLH-DSA runs approximately 2.65 times slower than compression count predictions, suggesting intrinsic overheads per hash invocation. Consequently, reported numbers for SLH-DSA should be considered upper bounds rather than exact figures.
It is important to recognize the limitations of these findings. All results derive from measurements on a single machine, focus exclusively on individual signature verifications (not batch operations), and employ a straightforward byte-for-byte comparison instead of more nuanced weight accounting. Supporting materials—including source code, raw data, and detailed methodology—are available in the btc-safe repository on GitHub, specifically in the docs/research/verification-cost.md file, with benchmarking tools located under tools/bench_verify/.
Thread Summary (41 replies)
Jul 27 - Dec 5, 2026
42 messages
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback