Registry / crypto / curve25519-dalek

curve25519-dalek

JSON →
library4.1.3rscratesunverified

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

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

RistrettoPoint
use curve25519_dalek::RistrettoPoint;

Generates a random Ristretto point and adds the base point.

use curve25519_dalek::RistrettoPoint; use curve25519_dalek::constants::RISTRETTO_BASEPOINT_POINT; fn main() { let point = RistrettoPoint::random(&mut rand::thread_rng()); let sum = point + RISTRETTO_BASEPOINT_POINT; println!("{:?}", sum.compress()); }
Debug
Known issues
gotchaRequires the `rand_core` feature for random generation.
fix
Add `rand_core` as a dependency or enable the `rand` feature.
affects: >=4.0.0
Upgrade
Version history
4.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
curve25519-dalek — cargo add curve25519-dalek · libregistry