<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexander Hentschel on Medium]]></title>
        <description><![CDATA[Stories by Alexander Hentschel on Medium]]></description>
        <link>https://medium.com/@alex.hentschel?source=rss-429dbd09de4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Lp_wrOzs2d7yCToI.</url>
            <title>Stories by Alexander Hentschel on Medium</title>
            <link>https://medium.com/@alex.hentschel?source=rss-429dbd09de4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 23 May 2026 16:24:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alex.hentschel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[When the Blockchain Coordinates Your Home: Decentralized Automation for the Real World]]></title>
            <link>https://medium.com/@alex.hentschel/when-the-blockchain-coordinates-your-home-decentralized-automation-for-the-real-world-5273b42e1cf0?source=rss-429dbd09de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5273b42e1cf0</guid>
            <category><![CDATA[smart-grid]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[flow-blockchain]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[renewable-energy]]></category>
            <dc:creator><![CDATA[Alexander Hentschel]]></dc:creator>
            <pubDate>Sat, 07 Jun 2025 06:36:33 GMT</pubDate>
            <atom:updated>2025-06-07T06:36:33.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjC6KnYLxN1ARlN8vbe8Iw.png" /></figure><p>The energy systems of the 21st century face a puzzle: how to manage increasing complexity as renewables proliferate and devices grow smarter. The electrical grid is evolving from a centralized machine into a continent-spanning organism — dynamic, decentralized, and hard to control.</p><p>Smart homes, electric vehicles, thermostats, and appliances are beginning to operate autonomously. But under the surface, most of them remain tightly dependent on centralized services: proprietary, revenue-oriented cloud APIs and platform ecosystems. These platforms are designed to maximize profits and frequently optimize for lock-in, usage fees, and data monetization. In a world of growing geopolitical tension, even access to essential services can become a point of leverage [<a href="https://www.heise.de/en/news/Criminal-Court-Microsoft-s-email-block-a-wake-up-call-for-digital-sovereignty-10387383.html">0</a>].</p><p>What if coordination logic didn’t depend on opaque cloud services? What if our devices could participate in shared decision-making — operating together, securely and efficiently, without a central overseer? This is the motivation behind <strong>Project Hummingbird</strong>, a small but meaningful demonstration of decentralized automation using the <strong>Flow blockchain</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HnLh1Jrv0kqbbY4lSuJ0A.png" /></figure><h3>1. The Grid Is Changing</h3><p>The rapid adoption of renewable energy sources is reshaping the demands on electrical grids worldwide. The <strong>European Union</strong> is embarking on massive infrastructure investments to prepare its power grid for a future where <strong>renewable sources</strong> (already contributing <strong>47% of electricity in 2024</strong>) provide the large majority of energy supply [<a href="https://ec.europa.eu/eurostat/web/products-eurostat-news/w/ddn-20250319-1">1</a>, <a href="https://www.reuters.com/sustainability/climate-energy/eu-power-grid-needs-trillion-dollar-upgrade-avert-spain-style-blackouts-2025-05-05/">2</a>].</p><p>Simultaneously, <strong>new EU policies and R&amp;D initiatives</strong> are guiding industrial energy producers, consumers, and manufacturers of household devices toward open, interoperable frameworks for rebalancing power supply and demand. Such adjustments typically occur in <strong>15-minute intervals</strong>, forming the technical basis for a continent-spanning <strong>smart grid</strong>, where <strong>swarms of devices dynamically coordinate</strong> to balance the power system in the future [<a href="https://joint-research-centre.ec.europa.eu/jrc-news-and-updates/energy-smart-appliances-launch-eu-code-conduct-interoperability-2024-04-23_en">3</a>].</p><p>To meet these goals, smart devices must do more than turn on and off — they must <strong>shift their time of operation</strong> and respond predictively to grid conditions. And the coordination logic that governs them needs to be <strong>transparent, robust, and resilient</strong>.</p><p>Traditionally, coordination relies on centralized service offerings — typically hosted in proprietary cloud platforms. These systems are effective in some respects but raise deep concerns about:</p><ul><li><strong>Digital sovereignty</strong></li><li><strong>Relinquishing personal data to service providers</strong></li><li><strong>Single points of failure</strong> in infrastructure that increasingly governs heating, transportation, and basic household functioning</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCfiMIZi3_XExdl4_uAxQQ.png" /></figure><h3>2. Why We Used Flow</h3><p>Blockchains are, in theory, <strong>open-access, fault-tolerant, tamper-proof compute platforms</strong>. In practice, however, most are poorly suited for large scale control applications.</p><p><strong>Flow</strong> is different. It was designed from the ground up to support scalable, composable computation. Here’s why we believe Flow is uniquely positioned to enable decentralized automation:</p><ul><li><strong>Scalable, open-access computation</strong>: Flow is architected to provide horizontal scalability, targeting millions of transactions per second and on-chain data ingress on the order of gigabytes per second [<a href="https://flow.com/core-protocol-vision">4</a>]. Anyone can deploy or interact with smart contracts. No gatekeepers can arbitrarily deny service.</li><li><strong>Safety-first programming model</strong>: Flow uses a resource-oriented programming language (Cadence) with native language primitives for fine-grained access control and safety by default [<a href="https://hackernoon.com/the-power-of-resource-oriented-programming-in-flowcadence-a-deep-dive">5</a>]. This is especially important for real-world applications that interact with physical systems.</li><li><strong>Modular, easily composable resources and smart contracts</strong>: By partitioning logic into smaller building blocks with clear boundaries, easier to reason about correctness, re-use code and compose larger systems.</li><li><strong>Lightweight cryptographic proofs</strong>: Flow supports cryptographic event and state proofs, allowing devices with small computational capabilities (like microcontrollers) to verify correctness without trusting third-party nodes [<a href="https://flow.com/data-availability-vision#smartphone-sized-light-clients">7</a>].</li><li><strong>Foundation for privacy-preserving orchestration</strong>: Flow’s computational scalability opens the door for secure multiparty computation (MPC) frameworks running on-chain [<a href="https://flow.com/core-protocol-vision">4</a>]. These frameworks, combined with on-chain orchestration, could allow for end-to-end encrypted control logic, where devices can collaborate securely without leaking sensitive information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHMykEiVb-38kHnmp7hKxQ.png" /></figure><h3>3. Project Hummingbird: Prototyping Decentralized Automation</h3><p>To make this vision concrete, we built <strong>Project Hummingbird</strong>: a blockchain-controlled heating system for a hummingbird feeder in coastal British Columbia.</p><p>Wild hummingbirds thrive in the mild climate of this region and are common, year-round residents. In cities like Vancouver, they rely on sugar-water feeders during rare cold snaps. To keep the nectar from freezing, people often use heat strips or lamps — but most setups are either wasteful (always on) or unreliable (we forget to turn them on).</p><p>So we asked: <em>could a blockchain smart contract manage that heating automatically — turning it on only when temperatures drop?</em></p><p>The result was a complete end-to-end system:</p><ul><li>A <strong>Cadence smart contract</strong> on Flow defines the control logic</li><li>An <strong>oracle</strong> feeds temperature data into the chain</li><li>At the heart of our IoT device is a <strong>microcontroller</strong>, which listens for blockchain events and flips a switch — powering the feeder heater only when it’s actually needed</li></ul><p>You can watch the <a href="https://youtu.be/d3rSHN_p8u0?si=KWHDZ4zX9y-zURNO">demo video here</a>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fd3rSHN_p8u0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dd3rSHN_p8u0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fd3rSHN_p8u0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/44c8259adf2b20fd8d612d73274e210b/href">https://medium.com/media/44c8259adf2b20fd8d612d73274e210b/href</a></iframe><p>From a transaction submitted in Sweden to a device responding in Canada — this end-to-end demo illustrates how decentralized logic can orchestrate a swarm of real-world devices. In my video, I have a swarm of one device; a follow-up demo with multiple smart devices across the globe is in the works.</p><p>Big thanks to <a href="https://www.linkedin.com/in/janez-podhostnik-40915b127/">Janez Podhostnik</a> and <a href="https://www.linkedin.com/in/janbernatik/">Jan Bernatik</a> for building this with me! Our <a href="https://github.com/AlexHentschel/hummingbird">project is open source</a> and documents both the system and hardware details. But the goal is not to spark a wave of blockchain-powered bird feeders. Rather, it’s to show how <strong>Flow</strong> can be used as <strong>secure platform for automation, IoT, and smart home devices</strong> — using tools already available today.</p><h3>4. How It Works: From Transaction to Action</h3><p>The devices listen for high-level signals and respond accordingly, but they retain local autonomy. This model is fundamentally different from streaming raw sensor data to the cloud and running centralized analysis. It is <strong>lightweight, resilient, and privacy-preserving</strong> by design.</p><p>A good <strong>mental model</strong> is to think of the blockchain as the <strong>conductor of an orchestra</strong>. Each connected IoT device — like our feeder — is an individual musician: capable, autonomous, and specialized on a specific task. But just as a single musician may struggle to catch the nuances of instruments at the other end of the orchestra, it is challenging for individual machines to obtain a holistic picture of the macroscopic world state. The conductor — in our case, the on-chain control algorithm — provides the overarching coordination, turning a group of uncoordinated specialists into a collaboratively working swarm.</p><p>Let’s unpack how the system works in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXi5i5tLiQS4sxkTKXWTrA.jpeg" /></figure><p>Our smart hummingbird feeder connects to a Flow Access Node. Via WebSockets, it streams the specific events emitted by the on-chain control logic — in our case instructions to activate or deactivate the heating. When new environmental data (e.g. from weather forecasts or external sensors) is submitted to the blockchain, the smart contract processes the update and decides how the feeder should respond. If our IoT device restarts, it automatically re-establishes its connection and queries the on-chain control smart contract to restore its state.</p><p>This demonstrates the feasibility of a fully decentralized, event-driven automation system:</p><ul><li>No need to invest resources into dedicated servers.</li><li>No reliance on cloud functions prone to vendor lock-in.</li><li>No resource-intensive polling loop.</li></ul><p>Instead, utilizing Flow’s decentralized, open-access compute capabilities for the orchestration of smart IoT devices.</p><h3>5. Beyond the Feeder: A Vision for Critical Infrastructure</h3><p>While Project Hummingbird is a proof of concept, the implications extend far beyond. We have shown the possibility of orchestrating smart-home ecosystems, fleets of electric vehicles, solar panels, and eventually, critical infrastructure.</p><p>Flow’s architecture is uniquely suited to support such applications. With projected computational throughput far exceeding that of most blockchains [<a href="https://flow.com/core-protocol-vision">4</a>], Flow will be able to accommodate ecosystems with billions of IoT devices. Its emphasis on safety, composability, and open access makes Flow a strong foundation for building resilient, user-controlled automation systems.</p><p>We envision a resilient, sustainable future:</p><ul><li><strong>Consumer empowerment:</strong> Devices and data work for their owners, not for corporate profits. Flow reduces vendor lock-in and frees users from the need to surrender their data to proprietary clouds.</li><li><strong>Market innovation:</strong> An open, app-store-like marketplace facilitates a rich variety of customizable on-chain control algorithms for users to choose from — just like with mobile apps, everyone finds a solution for their individual needs.</li><li><strong>Energy efficiency becomes emergent, not enforced:</strong> Advanced control logic enables demand-side flexibility [<a href="https://smarten.eu/wp-content/uploads/2025/02/smartEn-position-paper-Affordability-Competitiveness_formatted.pdf">6</a>] and organic integration of renewable energies, making it the economically rational choice for users to contribute to grid stability and sustainability.</li></ul><h3>6. Scientific and Engineering Challenges Ahead</h3><p>While promising, decentralized control comes with open challenges:</p><p><strong>1. Trustless data retrieval</strong>: In our proof of concept, the microcontroller trusts the Flow Access Node to deliver accurate data. In the future, lightweight cryptographic event proofs will enable the IoT devices to cryptographically verify the integrity and completeness of the data it receives from the Access Node [<a href="https://flow.com/data-availability-vision#smartphone-sized-light-clients">7</a>, <a href="https://www.notion.so/State-and-Event-Proofs-1d11aee123248096975ef55b1d05bb1e?pvs=21">8</a>].</p><p><strong>2. Privacy-preserving orchestration</strong>: Coordinating behavior across devices without leaking sensitive data requires privacy-preserving multi-party computation [MPC]. Due to its scalability and performance, Flow is a suitable platform to shoulder the computational load of such protocols, but implementation is non-trivial.</p><p><strong>3. Lightweight cryptography</strong>: IoT devices often have limited computational resources. Running BLS-based verification or MPC-friendly logic requires efficient libraries. Nevertheless, research results from the last years consistently demonstrate practicality [9].</p><p><strong>4. Latency-awareness</strong>: Some applications may demand tighter timing. Flow currently provides finality in 5–12 seconds (as of 2025, with optimizations in progress), which is appropriate for most but not all use cases.</p><p>These challenges open up fertile ground for interdisciplinary collaboration — bridging formal verification, cryptographic soundness, and physical control systems.</p><h3>7. Why This Matters</h3><p>The world is trending toward increasingly automated and interconnected systems — in homes, in cities, in vehicles, and in infrastructure. Yet the control layers of these systems are often hidden, proprietary, and built on “security by obscurity.”</p><p>With Project Hummingbird, we’re exploring a new model: <strong>autonomous infrastructure</strong>, built on principles of openness, verifiability, and user agency. This is the moment when blockchains begin to provide utility beyond finance and speculation — not just tracking ownership, but helping optimize the real world around us.</p><h3>References</h3><p>[0] Heise, <a href="https://www.heise.de/en/news/Criminal-Court-Microsoft-s-email-block-a-wake-up-call-for-digital-sovereignty-10387383.html">Criminal Court: Microsoft’s email block a wake-up call for digital sovereignty</a> (2025)</p><p>[1] Eurostat, <a href="https://ec.europa.eu/eurostat/web/products-eurostat-news/w/ddn-20250319-1">Electricity from renewable sources reaches 47% in 2024</a> (2025)</p><p>[2] Reuters, <a href="https://www.reuters.com/sustainability/climate-energy/eu-power-grid-needs-trillion-dollar-upgrade-avert-spain-style-blackouts-2025-05-05">EU power grid needs trillion-dollar upgrade to avert blackouts</a> (2025)</p><p>[3] EU Joint Research Centre, <a href="https://joint-research-centre.ec.europa.eu/jrc-news-and-updates/energy-smart-appliances-launch-eu-code-conduct-interoperability-2024-04-23_en">Energy smart appliances: Launch of EU Code of Conduct on interoperability</a> (2024)</p><p>[4] Flow <a href="https://flow.com/core-protocol-vision">Core Protocol Vision</a> (2023)</p><p>[5] Object-oriented languages are very intuitive for software engineers. On Flow, we use the term ‘resource’ for objects. In a nutshell, resources are just objects with built-in language primitives to easily manage access permissions. For readers interested in learning more, I recommend Michael Bogan’s blog <a href="https://hackernoon.com/the-power-of-resource-oriented-programming-in-flowcadence-a-deep-dive">The Power of Resource-Oriented Programming in Flow/Cadence: A Deep Dive</a> (2023)</p><p>[6] <a href="https://smarten.eu/">smartEn</a>, <a href="https://smarten.eu/wp-content/uploads/2025/02/smartEn-position-paper-Affordability-Competitiveness_formatted.pdf">Position Paper: The contribution of demand-side flexibility to EU competitiveness and affordability</a> (2025)</p><p>[7] Flow <a href="https://flow.com/data-availability-vision#smartphone-sized-light-clients">Data Availability Vision</a> (2024), section <a href="https://flow.com/data-availability-vision#smartphone-sized-light-clients">Smartphone-sized light clients</a></p><p>[8] Flow <a href="https://www.notion.so/State-and-Event-Proofs-1d11aee123248096975ef55b1d05bb1e?pvs=21">Architecture → State and Event Proofs</a> (2025)</p><p>[9]Various scientific publications, including <a href="https://www.aut.upt.ro/~pal-stefan.murvay/papers/performance_evaluation_elliptic_curve_libraries_automotive-grade_microcontrollers.pdf">Performance Evaluation of Elliptic Curve Libraries on Automotive-Grade Microcontrollers</a> (2019); <a href="https://dergipark.org.tr/tr/download/article-file/3690885">Performance Comparison Of ECC Libraries For IOT Devices</a> (2024); <a href="https://doi.org/10.1016/j.iot.2025.101489">Tiny keys hold big secrets: On efficiency of Pairing-Based Cryptography in IoT</a> (2025)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5273b42e1cf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>