Application Of Blockchain Smart Contracts In Energy Management