When soaked, beans will double in size and cooks really quickly. Drain and rinse soaked dried beans. Set aside.
Place grated coconut, garlic, and green chilies (if using) in the bowl of a food processor. Process until smooth. Set aside.
Place dried beans, ground coconut mixture, and ground turmeric in a large pan. Add enough water to cook beans. (Don’t be tempted to add too much water. The beans will over cook and turn mushy. Start with ½ cup water, and add more later if necessary)
Cook, covered, for 6-10 minutes. When done, remove from heat. Set aside.
Meanwhile, heat oil in another pan, and splutter mustard seeds. Add shallots and curry leaves. Saute until shallots turn brown. Remove from heat. Add tempered spices to cooked beans. Mix well. Serve hot.