Melt the chopped chocolate with 2 tablespoons of butter in a heatproof bowl set over a pan of simmering water, stirring until smooth.
Whisk together sugar and yolks then add them to the melted mixture. Set aside at room temperature for about an hour while preparing cream filling.