Proof of Work vs. Proof of Stake: Detailed Comparison