A Secure Distributed Energy Trading Mechanism for Residential Communities Based on Smart Contract | IEEE Conference Publication | IEEE Xplore