How proof of work and proof of stake each secure a blockchain, what miners and validators do, where the trade-offs sit, and what the official sources say.