What is the primary purpose of a consensus mechanism in a blockchain network?
-
A
To compress transaction data
-
B
To agree on the valid state of the ledger without a central authority
-
C
To encrypt user wallet passwords
-
D
To set the price of the native token