pub(crate) fn validate_pin( client: &Client, pin: String, pin_protected_user_key: EncString, ) -> Result<bool, Error>