In a small mixing bowl, whisk together the egg yolks, 50g sugar, salt, and flour until the mixture is light and fluffy. (It will be quite thick!)
In a medium sized saucepan set over medium heat, stir together the coconut milk and hibiscus powder. Continue to stir occasionally until the mixture comes to a simmer.
Once the mixture is simmering, remove it from the heat. While constantly whisking the egg mixture, use a small ladle to slowly pour some of the hot milk mixture into the eggs.
Now, while constantly whisking the coconut milk in the saucepan, slowly pour in the egg mixture until it's all combined.
Return the saucepan to the heat, and whisk constantly until the pastry cream thickens (this can vary from ~2-5 minutes)
(Optional) if you think there may be some cooked egg in your pastry cream, feel free to pass the pastry cream through a fine mesh sieve at this point.
Transfer the pastry cream to a bowl, and place plastic wrap right on top of the pastry cream. This will keep a layer from forming on top of the cream. Set it in the fridge to let it cool while frying the donuts.