Blockchain-Based Systems for the Modern Energy Grid