Sometimes, you may want your sale to be private or you need to provide an increased bonus to a set of users. For these situations, a whitelisting contract is created to keep track of a certain set of users. This allows you to restrict operations between them to provide a more personalized approach.
In this recipe, you will learn to create a whitelisting function that can be used along with the crowdsale contract.