The Byzantine Generals Problem, 51% Attacks, and Proof-of-WorkThe Byzantine Generals Problem, 51% Attacks, and Proof-of-Work