code: func (ch Challenge) CheckConsistencyForValidation() error {
  	if err := ch.checkConsistency(); err != nil {
  		return err
  	}
  
  	// If the challenge is completed, then there should be a key authorization
  	return looksLikeKeyAuthorization(ch.ProvidedKeyAuthorization)
  }
docs: // CheckConsistencyForValidation checks the fields of a challenge object before it is
  // given to the VA.