And in case you were wondering, here's the hotshoe pinout as well:
1 is obviously the firing pin, it's the same on most flashes.
2 AKA SP, for Speedlight Present. This is how the camera knows there's a flash attached.
3 is the flash ready signal
4 is the stop-firing quench signal
5 is, well, it's ground.