Melt dark chocolate and butter together using a double boiler.
Add sugar and mix well.
Add eggs one at a time, whisking thoroughly after each addition.
Sift in flour and cocoa powder, then mix until combined.
Add walnuts and fold in evenly.
Pour the batter into a mold and bake in a preheated oven at 180°C for 25 minutes.