Registry / crypto / curve25519-dalek-ng

curve25519-dalek-ng

JSON →
library4.1.1rscratesunverified

A pure-Rust implementation of group operations on ristretto255 and Curve25519.

# Cargo.toml [dependencies] curve25519-dalek-ng = "4.1.1"
INSTALL
IMPORT
SIG · CURVE25519-DALEK-N
C
curve25519-dalek-ng
cryptorustv4.1.1
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.

Scalar
use curve25519_dalek_ng::scalar::Scalar;

Performs elliptic curve operations on Curve25519 and ristretto255.

use curve25519_dalek_ng::scalar::Scalar; fn main() { let s = Scalar::random(&mut rand::thread_rng()); println!("Random scalar: {:?}", s); }
Debug
Known issues
gotchaRequires `rand` feature for random scalar generation; not enabled by default.
fix
Add `features = ["rand"]` to Cargo.toml dependency.
affects: >=4.0.0
Upgrade
Version history
4.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
curve25519-dalek-ng — cargo add curve25519-dalek-ng · libregistry