code: func (ra *RegistrationAuthorityImpl) checkOrderAuthorizations(
  	ctx context.Context,
  	names []string,
  	acctID accountID,
  	orderID orderID) (map[string]*core.Authorization, error) {
  	acctIDInt := int64(acctID)
  	orderIDInt := int64(orderID)
  	// Get all of the valid authorizations for this account/order
  	authzs, err := ra.SA.GetValidOrderAuthorizations(
  		ctx,
  		&sapb.GetValidOrderAuthorizationsRequest{
  			Id:     &orderIDInt,
  			AcctID: &acctIDInt,
  		})
  	if err != nil {
  		return nil, berrors.InternalServerError("error in GetValidOrderAuthorizations: %s", err)
  	}
  	// Ensure the names from the CSR are free of duplicates & lowercased.
  	names = core.UniqueLowerNames(names)
  	// Check the authorizations to ensure validity for the names required.
  	if err = ra.checkAuthorizationsCAA(ctx, names, authzs, acctIDInt, ra.clk.Now()); err != nil {
  		return nil, err
  	}
  
  	return authzs, nil
  }
docs: // checkOrderAuthorizations verifies that a provided set of names associated
  // with a specific order and account has all of the required valid, unexpired
  // authorizations to proceed with issuance. It is the ACME v2 equivalent of
  // `checkAuthorizations`. It returns the authorizations that satisfied the set
  // of names or it returns an error. If it returns an error, it will be of type
  // BoulderError.