A journey in applying blockchain for cyberphysical systems