ed25519_edwards
0.3.2, released 3 months ago by an unverified publisher
Ed25519 signature implementation for Dart, compatible with RFC 8032 keys.
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.
89Compare - cryptography_plus
Cryptographic algorithms for encryption, signatures, key agreement, and hashing across platforms.
68Compare - cryptography
Cross‑platform cryptographic algorithms for Dart and Flutter.
67Compare - pem
PEM encoding and decoding of textual keys and certificates following RFC 7468.
78Compare
Works with
Packages commonly used together with ed25519_edwards: ones it builds on, ones built on it, and its own family.
- cryptoed25519_edwards depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- converted25519_edwards depends on itEncoders and decoders for converting between different data representations.
- opentype_shaperBuilt on ed25519_edwardsOpenType text shaping for Dart and Flutter, returning glyph ids with offsets.
- libsignal_protocol_dartBuilt on ed25519_edwardsPure Dart implementation of the Signal Protocol for end‑to‑end encrypted messaging.
- flutterflow_cliBuilt on ed25519_edwardsCommand-line client for FlutterFlow to export code and build apps with AI.
- dart_natsBuilt on ed25519_edwardsA Dart and Flutter client library for the NATS messaging system.
- shepherdBuilt on ed25519_edwardsAdvanced CLI automation and productivity engine for Dart and Flutter workflows.