What is the earliest possible discovery of gunpowder that could happen? Also, when could said gunpowder be put into service, whether cannons, grenades, explosives, rockets or firearms?
It would be preferable if this could be discovered in the Hellenic World or Middle East.
Bonus points if you can do this in Late Antiquity or Earlier.