Mining vs staking compared: how proof of work and proof of stake secure blockchains, and what the trade-offs mean for fees, speed and yield.