Heat 1 tablespoon (15 ml / 0.5 fl oz) of oil in a large lidded frying pan or Dutch oven over medium heat.
Add the whole cloves, star anise, black peppercorns, cinnamon stick, and cumin seeds.
Stir-fry for about 2 minutes until fragrant and the peppercorns begin to swell.
Transfer the toasted spices to a spice grinder or mortar and pestle and grind to a fine powder.
Add the crushed garlic, grated ginger, and white wine vinegar, and grind again to form a smooth paste.
Stir in the ground red chile and set aside.
Add the remaining 3 tablespoons (45 ml / 1.5 fl oz) of oil to the same pan over medium heat.
Add the sliced onions and cook, stirring occasionally, for 15 minutes until they are deeply brown and caramelized.
Stir the spice paste, salt, and sugar into the caramelized onions and cook for 2 minutes until fragrant.
Add the can of plum tomatoes, crushing them with a spoon or your hand as they go into the pan. Fill the empty can halfway with water and add it to the pan.
Bring to a simmer, cover, and cook for 5 minutes to allow the flavors to meld.
Add the sweet potato chunks to the pan and stir to coat.
Bring the curry back to a boil, then reduce the heat to a low simmer.
Cover with the lid and cook for 20 to 25 minutes, stirring occasionally, until the sweet potatoes are fork-tender.
Serve hot with basmati rice and a generous dollop of yogurt to balance the heat.
Don't skip toasting the whole spices. This crucial step blooms their essential oils, creating a much deeper and more aromatic flavor base for your curry.
Adjust the amount of ground red chile to your personal preference. You can always add more heat at the end, but you can't take it away!