Preheat oven to 175°C
Blend black beans, date paste, vanilla, and plant milk until completely smooth
Mix cocoa powder, flour, baking powder, and salt in a bowl
Fold wet into dry until just combined
Add walnuts if using
Pour into lined 20cm square pan
Bake 25-30 minutes until edges are set but centre is still slightly fudgy
Cool completely before cutting