In a medium saucepan, without any heat whisk together sugar, cocoa powder, cornstarch, and sea salt.
Turn the stove onto medium heat and add milk. Whisk until combined.
Bring the pudding to a boil. Boil and whisk for 1 minute.
Remove the saucepan from the heat and stir in the butter and vanilla extract.
Pour the hot pudding into 4 ramekins. About a ½ cup of pudding in each.
Then press a sheet of plastic wrap onto the surface of each of the 4 puddings to prevent a thick skin from forming and put in the refrigerator for at least 2 hours to set.
After the pudding has set, top with whip cream and chocolate shavings (optional.)
Serve and enjoy!