Remove the head and the shell of the prawns, reserving for a stock. In a medium bowl combine the prawns, turmeric, chile powder and 1 teaspoon of salt. Refrigerate for at least 1 (and up to 24) hours.
Meanwhile, make the prawn stock: In a large skillet over medium high heat, add 3 tablespoons of oil. Once hot, add the prawn shells and fry until aromatic and the shells are pink. Transfer to the bowl of a food processor and grind until the shells are broken up. To a medium pot, add the shells and 2 quarts of water and bring to a boil over medium heat. Lower the heat to simmer, skim and discard any foam that has formed along the surface, and cook until concentrated and flavorful, about 1 hour. Set a fine mesh sieve in a large, heatproof bowl, strain the stock; discard the shells.
In a small skillet, individually dry roast the coriander, cumin, sesame, poppy seeds and fenugreek, stirring frequently until aromatic, around 2–3 minute each. Transfer each spice to a mortar as you work, and then use a pestle to grind them all together to a fine powder.
In a large deep skillet over medium heat, heat 3 tablespoons of oil. Add the prawns and lightly fry them on both sides until they have just turned color and the spices have slightly darkened, 1½ minute on each side. Transfer to a bowl and set aside. In the same skillet, over medium heat, add 3 more tablespoons of oil and the grated coconut. Cook, stirring frequently, until the coconut is fragrant and golden, 3–4 minutes. Transfer to the bowl of a food processor along with the almonds, garlic, and the reserved ground spices and process, adding cool water, a tablespoon at a time (up to a half a cup), to create a fine and creamy paste. Set aside.
Return the skillet to medium heat, then add the remaining 3 tablespoons of oil. When hot, add the onions and cook, stirring occasionally, until golden brown, 14–15 minutes. Add the tomatoes and continue cooking until the mixture is evenly dark red, 7–8 minutes. Add the reserved coconut-spice paste, the chickpea flour, and the kashmiri chiles and cook, stirring occasionally until the mixture is oily and very fragrant, about 5 minutes. Add the prawns, then stir in 1½ cup of the reserved prawn stock, the coconut milk, and 1 teaspoon tamarind paste. Add the curry leaves and the green chiles, bring to a simmer, then cover and cook until thickened slightly, 8–9 minutes. Remove from heat, stir in the coconut cream, season to taste with salt, and set aside for a couple of hours or overnight to let the flavours meld. Serve at room temperature with basmati rice and lime wedges for squeezing.
