PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 16
  1. 0.4.0 31 Jul 2026
    Release notes
    • SECURITY: scalarMul now 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. Dart BigInt arithmetic itself remains variable-time.
    • SECURITY: compressedHexToPublicKey computes the modular square root with Tonelli–Shanks, fixing decoding for curves with p ≡ 1 (mod 4) (secp224r1/secp224k1), and validates x < p and 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.
    Open source →
  2. 0.3.12 10 Oct 2025
    Release notes
    • SECURITY FIX: Add point validation to prevent invalid elliptic curve points from being used in ECDH
      • PublicKey constructors now validate that points are on the curve
      • computeSecret() validates public key points before ECDH computation
      • Added ErrPointNotOnCurve exception for invalid points
      • Prevents potential security vulnerabilities from malformed or malicious public keys
    Open source →
  3. 0.3.11 04 Sep 2024
    Release notes
    • fix EllipticException equality operator warn
    • improve scalaMul
    Open source →
  4. 0.3.10 26 Aug 2023
    Release notes
    • Add the PEM example to README
    Open source →
  5. 0.3.9 26 Aug 2023
    Release notes
    • Change sdk to ">=2.12.0 <4.0.0"
    Open source →
  6. 0.3.8 22 Apr 2022
    Release notes
    • Support any a(alpha) value in curve
    Open source →
  7. 0.3.7 27 Mar 2022
    Release notes
    • Fix ecdh computeSecret
    Open source →
  8. 0.3.6 23 Mar 2022
    Release notes
    • Fix ecdh
    Open source →
  9. 0.3.5 21 Jul 2021
    Release notes
    • Add EllipticException for better error handling
    Open source →
  10. 0.3.4 18 Jul 2021
    Release notes
    • Fix hex, Enhance hex
    • Enhance bigint calc
    • Add tests for hex
    Open source →
  11. 0.3.3 18 Jul 2021
    Release notes
    • Fix bug on generating compressed hex
    Open source →
  12. 0.3.2 16 Jul 2021
    Release notes
    • Add ecdh library
    Open source →
  13. 0.3.1 14 Jun 2021
    Release notes
    • Add support to koblitz curves (secp256k1 & secp224k1)
    • Pass tests on secp256k1
    • Fix bug on loading compressed public key hex
    Open source →
  14. 0.3.0 11 Jun 2021
    Release notes
    • 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
    Open source →
  15. 0.2.0 11 Jun 2021
    Release notes
    • Null-safe
    • Fix bugs
    • Pass tests (mainly P256)
    • Add utils to PublicKey and PrivateKey
    Open source →
  16. 0.1.0 26 Nov 2020
    Release notes
    • Initial version, created by Stagehand
    • Having bugs, dont use this version
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive