Skip to content
pubscout

ed25519_edwards

0.3.2, released 3 months ago by an unverified publisher

Ed25519 signature implementation for Dart, compatible with RFC 8032 keys.

WASM-ready
$ flutter pub add ed25519_edwards
Source repository

What it does

Provides functions to generate key pairs, sign messages, and verify signatures using the Ed25519 algorithm. Includes low‑level Edwards curve operations for advanced use cases.

AI-written summary of version 0.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need deterministic Ed25519 signatures in a pure‑Dart library
  • You target multiple platforms including web and Flutter without native code

Skip it when

  • You require hardware‑backed key storage or platform‑specific crypto APIs
  • Performance on Dart2JS/web is critical (the library is slower than native alternatives)

Strengths

  • Pure Dart, works on all listed platforms
  • No native dependencies, easy to add to any project
  • Benchmarked performance for VM and AOT

Weaknesses

  • Slower on web (Dart2JS) compared to other libs
  • Limited to Ed25519 only, no other algorithms

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4
import 'package:ed25519_edwards/ed25519_edwards.dart' as ed;

void signAndVerify() {
  var keyPair = ed.generateKey();
  var message = Uint8List.fromList('test message'.codeUnits);
  var sig = ed.sign(keyPair.privateKey, message);
  var ok = ed.verify(keyPair.publicKey, message, sig);
  assert(ok);
}

Alternatives

Packages that do the same job and could replace ed25519_edwards.

  • webcrypto

    Cross-platform implementation of Web Cryptography APIs for Dart.

  • cryptography_plus

    Cryptographic algorithms for encryption, signatures, key agreement, and hashing across platforms.

  • cryptography

    Cross‑platform cryptographic algorithms for Dart and Flutter.

  • pem

    PEM encoding and decoding of textual keys and certificates following RFC 7468.

Works with

Packages commonly used together with ed25519_edwards: ones it builds on, ones built on it, and its own family.