Function sodoken::sign::ed25519_sk_to_curve25519
source · pub fn ed25519_sk_to_curve25519<E, S>(
x25519_sk: E,
ed25519_sk: S
) -> SodokenResult<()>where
E: Into<BufWriteSized<X25519_SECRETKEYBYTES>> + 'static + Send,
S: Into<BufReadSized<SECRETKEYBYTES>> + 'static + Send,
Expand description
Convert a signing ed25519 secret key into an encryption x25519 secret key. Please understand the downsides of this function before making use of it. https://doc.libsodium.org/advanced/ed25519-curve25519