Block the Root Takeover: Validating Devices Using Blockchain Protocol