Registry / crypto / ed25519-consensus

ed25519-consensus

JSON →
library2.1.0rscratesunverified

Ed25519 suitable for use in consensus-critical contexts.

# Cargo.toml [dependencies] ed25519-consensus = "2.1.0"
INSTALL
IMPORT
SIG · ED25519-CONSENSUS
E
ed25519-consensus
cryptorustv2.1.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_consensus::SigningKey;

Generates a new Ed25519 signing key and extracts the verification key.

use ed25519_consensus::SigningKey; fn main() { let sk = SigningKey::new(rand::thread_rng()); let pk = sk.verification_key(); println!("Public key: {:?}", pk); }
Debug
Known issues
gotchaUses a specific verification algorithm that may differ from other Ed25519 implementations.
fix
Ensure all parties use the same implementation for consensus.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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