pub fn sha1_fingerprint_from_private_key(
    key: &EcKey<Private>
) -> Result<Vec<u8>, ErrorStack>
Expand description

Calculate a SHA-1 fingeprint from a private key.

This hashes the DER data of the public key part of the key. Note this does not create a hash of the private key, but the public key.

§Example:

let key = webcryptobox::generate_private_key().unwrap();
let fingerprint = webcryptobox::sha1_fingerprint_from_private_key(&key);