Build Decentralized Energy Communities Secured by the Blockchain