ristretto255-dh-0.3.0 doesn't have any documentation.
ristretto255-dh
Diffie-Hellman key exchange using the Ristretto255 group, in pure Rust.
This crate provides a high-level API for static and ephemeral Diffie-Hellman in the Ristretto255 prime order group, as specified the IETF draft, implemented internally over Curve25519 using curve25519-dalek.
Example
use OsRng;
use EphemeralSecret;
use PublicKey;
// Alice's side
let alice_secret = new;
let alice_public = from;
// Bob's side
let bob_secret = new;
let bob_public = from;
// Alice again
let alice_shared_secret = alice_secret.diffie_hellman;
// Bob again
let bob_shared_secret = bob_secret.diffie_hellman;
// Each peer's computed shared secret should be the same.
assert_eq!;
About
The high-level Diffie-Hellman API is inspired by x25519-dalek.