Undoubtedly the peas will have contained proteins with the amino-acid cysteine as one of the building-blocks. That would explain the rotten egg odour: H
2S was produced. But still it is strange that H
2S is produced while you increased the pH by adding sodium bicarbonate, which reacts alkaline in water.
HCO
3- + H
2O
H
2CO
3 + OH
-The freed (hydrolysed) amino-acids from the proteins could have neutralised this bicarbonate.
And then the black colour: no idea, but wasn't it ordinary carbon? A thermal decomposition of the organic substances?
What material was the pan made of? Iron or steel could give off iron ions that form a black precipitate with sulfide-ions:
Fe
2+ + S
2- FeS(s) (is black.)