Smart Contracts for Blockchain-Based Reputation Systems