Decision Workspace
tonelli-rs vs coprime vs discrete-logarithm
Side-by-side comparison of Rust crates
37
tonelli-rs
growingv0.1.0
A Rust implementation of the Tonelli-Shanks algorithm for computing square roots modulo a prime
46
coprime
experimentalv0.2.0
Zero-dependency, no_std u64 number theory and modular arithmetic. Public, secret-free — Stage One, no constant-time guarantees yet. A five-tier differential test harness; selected primitives proved with Kani and Aeneas-to-Lean. Deterministic is_prime over all u64.
66
discrete-logarithm
stablev2.0.0
Fast discrete logarithm solver
Core Metrics
| tonelli-rs | coprime | discrete-logarithm | |
|---|---|---|---|
| Health Score | 37 | 46 | 66 |
| Total Downloads | 431 | 43 | 12.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 19 |
| Releases | 1 | 2 | 5 |
| Last Updated | 426d ago | 121d ago | 13d ago |
| Age | 1y 2m | 4m | 3y 2m |
Health Breakdown
tonelli-rs
Maintenance
2
Quality
16
Community
6
Popularity
3
Documentation
10
coprime
Maintenance
11
Quality
15
Community
6
Popularity
2
Documentation
12
discrete-logarithm
Maintenance
18
Quality
21
Community
10
Popularity
5
Documentation
12
Technical Details
| tonelli-rs | coprime | discrete-logarithm | |
|---|---|---|---|
| Version | 0.1.0 | 0.2.0 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | BSD-3-Clause | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 5 |
| Crate Size | 7KB | 83KB | 88KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | 1.93 | 1.86 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •discrete-logarithm leads with a health score of 66/100, but none of the options score above 80.
- •⚠ tonelli-rs has not been updated in over a year.
- •tonelli-rs, coprime are pre-1.0 — API may change.