elliptic
basic elliptic curves in pure dart
0.4.0
34K downloads/mo
#1763 most downloaded on pub.dev
c0mm4nd/dart-elliptic
What this package is like to depend on
Last release 23 days ago
31 Jul 2026
Ships fairly regularly
a new release about every 9 months
Nearly every release is documented
notes for 16 of 16 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
16 releases · first in 2020
2 releases in the last 12 months
see the full history below
Release timeline
16 releases · Nov 2020 to Jul 2026
2021
2022
2023
2024
2025
2026
Releases
latest 16-
0.4.031 Jul 2026Release notes
Open source →- SECURITY:
scalarMulnow uses a Montgomery ladder (one addition and one doubling per scalar bit, exchanged with a branch-free conditional swap) so the execution shape no longer depends on secret scalar bits. DartBigIntarithmetic itself remains variable-time. - SECURITY:
compressedHexToPublicKeycomputes the modular square root with Tonelli–Shanks, fixing decoding for curves with p ≡ 1 (mod 4) (secp224r1/secp224k1), and validatesx < pand the recovered root. - Fix
generatePrivateKey: remove a leftover test-only byte mutation and zero-pad the range-check reconstruction. - Correct documentation that incorrectly claimed constant-time operations.
- SECURITY:
-
0.3.1210 Oct 2025Release notes
Open source →- SECURITY FIX: Add point validation to prevent invalid elliptic curve points from being used in ECDH
PublicKeyconstructors now validate that points are on the curvecomputeSecret()validates public key points before ECDH computation- Added
ErrPointNotOnCurveexception for invalid points - Prevents potential security vulnerabilities from malformed or malicious public keys
- SECURITY FIX: Add point validation to prevent invalid elliptic curve points from being used in ECDH
-
0.3.1104 Sep 2024 -
0.3.1026 Aug 2023 -
0.3.926 Aug 2023 -
0.3.822 Apr 2022 -
0.3.727 Mar 2022 -
0.3.623 Mar 2022 -
0.3.521 Jul 2021 -
0.3.418 Jul 2021 -
0.3.318 Jul 2021 -
0.3.216 Jul 2021 -
0.3.114 Jun 2021Release notes
Open source →- Add support to koblitz curves (secp256k1 & secp224k1)
- Pass tests on secp256k1
- Fix bug on loading compressed public key hex
-
0.3.011 Jun 2021Release notes
Open source →- New abstract class curve for secp256k1 etc in https://www.secg.org/sec2-v2.pdf
- More customizable params for EllipticCurve (maybe can work on k1)
- Add some TODOs
-
0.2.011 Jun 2021Release notes
Open source →- Null-safe
- Fix bugs
- Pass tests (mainly P256)
- Add utils to PublicKey and PrivateKey
-
0.1.026 Nov 2020Release notes
Open source →- Initial version, created by Stagehand
- Having bugs, dont use this version