Smarter Chains: Machine Learning in Decentralized Ecosystems