For the cake:
Preheat oven to 350Β°F (175Β°C).
Grease and flour three 9-inch cake pans.
Melt chocolate, let cool.
Beat egg whites until stiff peaks form; set aside.
Cream butter and sugar until fluffy.
Add egg yolks one at a time.
Mix in melted chocolate and vanilla.
Combine flour, salt, and baking soda.
Alternate adding flour mixture and buttermilk to batter.
Fold in egg whites gently.
Divide batter between pans.
Bake 30-35 minutes.
Cool completely.
For the frosting:
Combine milk, sugar, egg yolks, butter in saucepan.
Cook over medium heat, stirring constantly until thickened.
Remove from heat.
Add vanilla, coconut, and pecans.
Cool until spreadable.
Spread between layers and on top.