Why the blockchain is secure as hell! (mathematical proof)