A Blockchain-enabled Peer-to-Peer Energy Trading Platform