Function secret_to_public

Source
pub fn secret_to_public(
    alg: Algorithm,
    sk: impl AsRef<[u8]>,
) -> Result<Vec<u8>, Error>
Expand description

Compute the public key for a private key of the given Algorithm. Applicable only to X25519 and secp256r1.