The Mathematics of Quantum Coin-Flipping