I suspect that ignition was caused by two match heads rubbing together. These compounds are intended to ignite with light friction. Hence, friction matches. Your friend made his big mistake thinking he could " ram " home any charge. I don't think you are going to get sparks from rubbing a cold roll steel bolt against a cold roll steel pipe.
To test this, just try to get a spart off a pipe or bolt using a piece of flint. You can cut metal, but you won't get sparks. Its not hard enough.
I too fooled around with home made cannons when we were kids. We used a mix of firecracker powder, and the unignited powder in .30-06 blank cartridges that were ejected onto the street by the color guards on parade days when the blacks did not fire. My brother and I would walk the parade route following these units, and watch to se what guns did not fire. Then we would watch to see where the cartridge landed when it was ejected, and would swoop down and pick it up before some other kids got it. We let them have the fired brass casings.
Luckily, when my father found out about our interest, he bought a can of black powder and we used that, in a much better made cannon, to make noise. It wasn't quite the excitement, but it was safer, and made much more noise.