pub fn x25519_shared(secret: &[u8; 32], peer_public: &[u8; 32]) -> [u8; 32]Expand description
Compute an X25519 shared secret from a raw 32-byte secret scalar and a peer’s 32-byte public key.
A free-function convenience equivalent to
EphemeralKeypair::from_secret(secret).diffie_hellman(peer_public), useful
where only the shared secret is needed (e.g. trace replay) without holding a
keypair.