Preheat the oven to 350°F (180°C) and spray a 6-inch round cake pan with non-stick spray and line the bottom with a circle of parchment paper.
Sift all purpose flour and cocoa powder into a mixing bowl and add white sugar, baking soda, salt and espresso powder. Mix together.
Add buttermilk, egg, oil and vanilla and mix into a batter.
Transfer the batter to a 6-inch cake pan (sprayed with non-stick spray and lined with a circle of parchment paper along the bottom).
Bake at 350°F for 30 minutes or until a toothpick inserted into the center of the cake comes out clean.
Let the cake cool in the pan for a few minutes before removing it from the pan and transferring the cake to a wire cooling rack to cool completely.
While the cake is cooling, prepare your frosting.
Add softened butter, powdered sugar, cocoa powder, vanilla extract and milk to the bowl of your stand mixer and beat together until light and fluffy.
When the cake is completely cooled, top with the frosting and then decorate with chocolate shavings.