Consensus Algorithm and Byzantine Agreement Methods