Which of the following is the PRIMARY role of a consensus mechanism in a decentralized blockchain network?
-
A
To encrypt transaction data, ensuring confidentiality from external observers.
-
B
To enable all network participants to agree on the validity and order of transactions, ensuring a single, consistent version of the ledger.
-
C
To execute the business logic of smart contracts when predefined conditions are met.
-
D
To generate new cryptographic keys for users to secure their digital assets.