Boil the sweet potatoes, peel them, and mash them.
Melt the dark chocolate and butter together using a double boiler.
Mix the mashed sweet potatoes, melted chocolate, butter, eggs, and sugar.
Add flour and baking powder and mix well.
Pour the batter into a mold.
Bake in a preheated oven at 180°C for 25–30 minutes.