Prepare oven and pan
Preheat oven to 350 F (175 C). Grease and line an 9 inch square or round cake pan with parchment paper.
Make the cake batter
In a large mixing bowl, whisk together the egg, sugar, vegetable oil, buttermilk, vanilla extract, hot coffee, cocoa powder, and salt until smooth.
Sprinkle the flour, baking powder, and baking soda evenly over the top of the wet mixture. Whisk gently to start incorporating, then switch to a spatula and fold until just combined. Do not overmix. If you have time, let your batter rest for 10 minutes to allow the flour to fully hydrate.
Bake
Pour the batter into the prepared pan and smooth the top. Bake for 25 to 30 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs.
Let cake cool in the pan for 10 minutes and then transfer to a wire rack to cool completely before frosting.
Make the buttercream
Melt the chocolate in a microwave safe bowl in 20 second bursts, stirring between each, until smooth. Let cool slightly.
In a medium bowl, beat the butter until creamy. Sift in the powdered sugar and cocoa powder, then add the heavy cream and salt. Beat until fluffy. Pour in the melted chocolate and beat until smooth and spreadable.
Frost and serve
Spread the buttercream evenly over the cooled cake. Slice and enjoy.