Begin by melting the dark chocolate in a heatproof bowl over a pot of simmering water, stirring until smooth.
If using, add the coconut oil to the melted chocolate and mix well.
In a large mixing bowl, combine the cooked lentils, cashew nuts, hazelnuts, pistachios, chopped apricots, sesame seeds, pumpkin seeds, and goji berries if desired.
Pour the melted chocolate over the mixture and stir until everything is well coated.
Spread the mixture evenly onto a lined baking tray, pressing it down gently.
Sprinkle a pinch of salt over the top if you like.
Refrigerate the bark for at least 1 hour or until it is set.
Once set, break the bark into pieces and serve.
