The Role of Consensus Mechanisms in Cryptocurrency Networks