Toast the coconut and coriander seeds on medium high heat in dry saucepan, the coconut will get beautifully golden, 2-3 minutes. Stir to avoid burning
Blend the first three ingredients to a paste using a little water. Set aside.
Put a lug of cooking oil in a 10 inch saucepan and heat.
Now in with the shallots, cook for 3-4 minutes on medium high heat until browned on the outside and slightly softened
Add salt (start w ¾ tsp), ¼ cup water (may need more if it starts to burn), and turmeric. Cook for another 5 minutes.
Now pour in your coconut paste and 1 tbsp of the tamarind pulp. Mix well and adjust seasoning by adding more salt or another ½ tbsp of tamarind pulp.
Transfer the shallots to the serving dish.
Heat a tbsp and a half of oil n a small saucepan and add the nigella seeds (kalonji), curry leaves, and dried red chilli. Fry for about 20 seconds then pour over the shallots. Toss gently.
Notes
Tamarind blocks or pastes sometimes already have salt in them so to be safe add only ¾ tsp salt in the first go and adjust at the end. Similarly with chilli powder I put in two teaspoons but even at one it will have lovely flavor