Boil the chickpeas and let them cool.
Blend chickpeas with protein powder and cocoa powder until smooth.
Add almond flour and erythritol, then mix again.
Shape the dough into a rectangular bar.
Melt coconut oil and dark chocolate together in a double boiler.
Coat the dough with melted chocolate.
Refrigerate the chocolate bar until it sets.