Decentralized machine learning with blockchain