Melt dark chocolate and butter together in a double boiler.
Add sugar and mix well.
Add eggs one at a time, mixing thoroughly after each addition.
Sift in flour and cocoa powder, then mix until just combined.
Add walnuts and pour the batter into a pan.
Bake in a preheated oven at 180°C for 20 minutes.