Exploiting constrained IoT devices in a trustless blockchain-based water management system