Soak the tamarind in 3/4 cup warm water for 30 minutes
Extract juice of tamarind with fingers and discard any seeds and pulp that remains
Heat the oil in a wide pan and add the mustard seeds, chana dal, and peanuts
Let the mustard seeds pop and the peanuts and dal roast to a light golden brown
Then add the curry leaves, red chillies, hing, and onions (if using)
Let these ingredients roast for 2-3 minutes or until the onions are cooked to a soft pink
Add the tamarind extract and bring to boil
Add salt and let the mixture boil until it thickens a bit
Add cooked rice and mix well. Adjust salt if needed
Let the rice sit for at least one hour before serving
Goes well with curd and papad or red chilli coconut chutney