Registry / crypto / ed25519-zebra

ed25519-zebra

JSON →
library4.2.0rscratesunverified

Zcash-flavored Ed25519 signature implementation for use in Zebra, with batch verification.

# Cargo.toml [dependencies] ed25519-zebra = "4.2.0"
INSTALL
IMPORT
SIG · ED25519-ZEBRA
E
ed25519-zebra
cryptorustv4.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.

VerificationKey
✓ use ed25519_zebra::VerificationKey;

Generates a keypair, signs a message, and verifies the signature.

use ed25519_zebra::{SigningKey, VerificationKey}; fn main() { let sk = SigningKey::new(rand::thread_rng()); let vk = VerificationKey::from(&sk); let msg = b"hello"; let sig = sk.sign(msg); assert!(vk.verify(&sig, msg).is_ok()); }
Debug
Known issues
gotchaUses a Zcash-specific variant of Ed25519; not compatible with standard Ed25519 implementations.
fix
Use the ed25519-dalek crate for standard Ed25519 compatibility.
affects: >=4.0.0
Upgrade
Version history
4.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Resources
ed25519-zebra — cargo add ed25519-zebra · libregistry