A Blockchain-Enabled Ecosystem for Distributed Electricity Trading in Smart City