Decentralized Insurance for Smart contracts