- 1 1/2 sticks unsalted butter, at room temperature, plus more for the pans
- 7 ounces semisweet chocolate, finely chopped
- 2 cups all-purpose flour
- 2 tablespoons unsweetened cocoa powder
- 1 teaspoon baking soda
- 3/4 teaspoon fine sea salt
- 1 3/4 cups sugar
- 3 large eggs, at room temperature
- 1 large egg yolk, at room temperature
- 2 teaspoons pure vanilla extract
- 1 cup buttermilk
- 3 1/2 cups pecan halves (14 ounces)
- 2 sticks plus 2 tablespoons unsalted butter, at room temperature
- Two 14-ounce cans sweetened condensed milk
- 3/4 cup packed light brown sugar
- 5 large egg yolks
- 10 ounces sweetened shredded coconut (3 cups)
- 1 1/2 teaspoons pure vanilla extract
- 1/4 teaspoon sea salt
- Make the cake Preheat the oven to 350°. Butter two 9-inch baking pans and line them with parchment paper.
- Make the cake Set a heatproof bowl over (but not in) a saucepan of simmering water. Add the chopped chocolate and melt, stirring occasionally. Alternatively, melt the chocolate in a microwave. Let cool slightly.
- Make the cake In a medium bowl, whisk the flour with the cocoa powder, baking soda and salt. In a large bowl, beat the 1 1/2 sticks of butter with the sugar until light and fluffy, 3 minutes. Beat in the eggs and egg yolk, one at a time, then beat in the vanilla. At low speed, beat in the buttermilk and the flour mixture in 3 alternating batches, ending with the flour mixture. Fold in the melted chocolate until incorporated.
- Make the cake Scrape the batter into the prepared pans. Bake for about 30 minutes, until a cake tester inserted in the center of the cakes comes out clean. Transfer the cakes to a rack and let cool completely. Turn the cakes out of the pans and peel off the parchment paper.
- Meanwhile, make the frosting Toast the pecans on a rimmed baking sheet until golden, 8 to 10 minutes. Let cool slightly, then coarsely chop. In a large saucepan, combine the butter, condensed milk and brown sugar and cook over moderately low heat, whisking frequently, until smooth. Add the egg yolks and cook over moderately low heat, whisking frequently, until thickened, 8 to 10 minutes. Transfer the frosting to a large bowl and stir in 3 cups of the pecans and the coconut, vanilla and salt; let cool.
- Meanwhile, make the frosting Using a spoon or offset spatula, spread half of the frosting evenly over one cake. Top with the second cake layer and spread the remaining frosting on top. Garnish with the remaining pecans.
The cake can be stored in an airtight container overnight, then refrigerated for 2 days. Serve at room temperature.