Registry / crypto / ed25519-dalek

ed25519-dalek

JSON →
library2.2.0rscratesunverified

Fast and efficient ed25519 EdDSA key generation, signing, and verification in pure Rust.

# Cargo.toml [dependencies] ed25519-dalek = "2.2.0"
INSTALL
IMPORT
SIG · ED25519-DALEK
E
ed25519-dalek
cryptorustv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SigningKey
use ed25519_dalek::SigningKey;

Generate a new ed25519 signing key pair.

use ed25519_dalek::SigningKey; use rand::rngs::OsRng; fn main() { let mut csprng = OsRng; let signing_key = SigningKey::generate(&mut csprng); println!("Public key: {:?}", signing_key.verifying_key()); }
Debug
Known issues
breakingVersion 2.0.0 introduced breaking changes; SigningKey replaced SecretKey.
fix
Update imports to use SigningKey and VerifyingKey instead of SecretKey and PublicKey.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
Resources
ed25519-dalek — cargo add ed25519-dalek · libregistry