pub fn calculate_agreement( pub_key: &[u8], priv_key: &[u8], ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
Calculate X25519 key agreement (ECDH)