Sift the flour, cocoa powder and baking powder into a mixing bowl.
Add the sugar, butter, eggs, fresh chilli and dried chilli. Beat this together until you end up with a soft mixture that falls off a spoon when you hit it against the bowl. Add a drop or two of water if you think your mixture is too stiff.
Divide the mixture into two baking tins and bake at 170 degrees C (325F) for 30 minutes, or until springy in the centre and a knife inserted into the sponge comes out clear. Allow to cool for one hour after cooking.
To make your filling for the middle and frosting for the top melt the chocolate over a medium heat.
Once melted take the chocolate off the heat. Stir in the chillis, butter and cream. Cover with cling film and allow it to cool. When cooled, put the mixture in to the fridge for around an hour or until thickened enough to easily spread.
When thickened, spread the chocolate mixture as a filling and topping for your cake. Decorate with crushed pistachios and finely chopped fresh red chillis.
