Study on Blockchain Infrastructure and Consensus Protocol Security.