Enabling a Blockchain-Based IoT Edge