Decentralized Contracts