pub fn mega_key_id(public_key: &MEGaPublicKey) -> KeyId {
    match public_key.curve_type() {
        EccCurveType::K256 => bytes_hash_as_key_id(
            AlgorithmId::ThresholdEcdsaSecp256k1,
            &public_key.serialize(),
        ),
        c => panic!("unsupported curve: {:?}", c),
    }
}
/// Compute the key identifier for a MEGa encryption public key
Compute the key identifier for a MEGa encryption public key
Compute the key identifier for a MEGa encryption public key
pub fn mega_key_id(public_key: &MEGaPublicKey) -> KeyId {
    match public_key.curve_type() {
        EccCurveType::K256 => bytes_hash_as_key_id(
            AlgorithmId::ThresholdEcdsaSecp256k1,
            &public_key.serialize(),
        ),
        c => panic!("unsupported curve: {:?}", c),
    }
}
pub fn mega_key_id ( public_key : & MEGaPublicKey ) -> KeyId { match public_key . curve_type ( ) { EccCurveType :: K256 => bytes_hash_as_key_id ( AlgorithmId :: ThresholdEcdsaSecp256k1 , & public_key . serialize ( ) , ) , c => panic ! ( " " c ) , } }
Compute the key identifier for a MEGa encryption public key
Compute the key identifier for a MEGa encryption public key
public_key
&MEGaPublicKey
public_key
&MEGaPublicKey