"Saltpeter" AKA potassium nitrate was indeed harvested from latrines and other places where animal dung was collected/deposited. It was a valuable commodity as a key component of gun powder. Although gun powder would not come into widespread use in Europe for 2-3 hundred years after this event occurred.