Set aside a bowl with a fine-mesh sieve on top. This will be to strain and cool the pastry cream once it is cooked
In another bowl, whisk together the cornstarch and sugar. Add the eggs and whisk until smooth. Set aside the mixture
In a saucepan, pour in the milk, salt, and vanilla extract. Place the mixture on medium-high heat until just under a boil. Be sure to stir the mixture so the milk solids do not stick to the bottom of the pan
When the milk is warmed, add 1/3 of the hot milk into the egg mixture, whisking constantly to ensure the eggs do not cook. After it is combined, pour the egg-milk mixture back into the remaining ⅔ of the hot milk. Whisk over medium heat until the mixture is as thick as lightly whipped cream. It should just come just barely to a boil – be sure not to let it get beyond this as the cream will curdle. Remove from the heat and immediately pour through the sieve into the bowl
Immediately add in the chocolate and mix to combine. After the chocolate is melted, add the butter one tablespoon at a time. Stir until smooth before adding the next piece of butter. Let it sit for 10 minutes to cool slightly
Pour the pastry cream directly into the graham cracker crust. Press a piece of plastic wrap onto the surface so it is touching and covering all of the custard. Chill in the fridge for at least 4 hours or ideally overnight