pub fn validate_public_key_length( public_key: &[u8], expected_len: usize, ) -> bool
Validate public key has correct length.