What is Nakamoto consensus in Bitcoin?
Could you please explain in simple terms what the Nakamoto consensus refers to in the context of Bitcoin? I'm curious to understand how this mechanism contributes to the security and decentralization of the Bitcoin network. How does it ensure that all participants agree on the state of the blockchain, and what role does it play in preventing double-spending or fraudulent transactions?