<?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 Charles Ugbor on Medium]]></title>
        <description><![CDATA[Stories by Charles Ugbor on Medium]]></description>
        <link>https://medium.com/@trulynedum?source=rss-3b042e1189c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*veCrhssk2MklcvtRlbfVKg.jpeg</url>
            <title>Stories by Charles Ugbor on Medium</title>
            <link>https://medium.com/@trulynedum?source=rss-3b042e1189c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:58:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trulynedum/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[I held a séance for a smart contract that died in 2018]]></title>
            <link>https://trulynedum.medium.com/i-held-a-s%C3%A9ance-for-a-smart-contract-that-died-in-2018-250988bb6cad?source=rss-3b042e1189c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/250988bb6cad</guid>
            <category><![CDATA[fuzzing]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain-security]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Charles Ugbor]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 08:35:19 GMT</pubDate>
            <atom:updated>2026-12-04T08:35:19.291Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I wrote this post as part of the Kiroween 2026 hackathon, where I built Exhume with Kiro.</em></p><p>In April 2018 one line of Solidity killed a token.</p><p>BeautyChain (BEC) had a batchTransfer function that multiplied the number of receivers by the amount to send: uint256 amount = uint256(cnt) * _value;. There was no overflow check. Send to two receivers with a value of 2²⁵⁵, and the product wraps to zero. The balance check passes, because the sender &quot;only&quot; needs zero tokens, and each receiver is credited 2²⁵⁵ tokens that never existed. Exchanges froze BEC trading within hours.</p><p>Since Solidity 0.8, arithmetic is checked by default. So if you port BEC to 0.8, the attack should stop.</p><p>But <em>should</em> isn’t proof. A port can also quietly change behaviour that other contracts and users depend on. That’s the question auditors and migration teams actually face with old code: <strong>did the port fix the bug, and did it break anything else?</strong></p><p>That’s what <a href="https://exhume-ecru.vercel.app/">Exhume</a> answers.</p><h3>Autopsy, resurrection, séance</h3><p>Exhume treats a dead contract like a case file, in three steps.</p><ol><li><strong>Autopsy.</strong> Find what killed it. For BEC, that’s the unchecked multiplication on line 257.</li><li><strong>Resurrection.</strong> Port it to 0.8, under one hard rule: change syntax, never logic. Any fix must come from 0.8’s own checks, not from me rewriting the function. If I fixed the overflow by hand, the next step would prove nothing.</li><li><strong>Séance.</strong> Run the original and the port side by side, live.</li></ol><p>The séance is differential fuzzing with Foundry. The original contract is compiled with its real 2017 compiler (solc 0.4.19), and its bytecode is checked byte for byte against what’s on mainnet before anything runs. Then the original and the port receive the same sender and the same calldata, call after call, and every call lands in one of four groups:</p><ul><li><strong>match:</strong> both behave the same.</li><li><strong>reason-modernised:</strong> both revert, with different revert data.</li><li><strong>exorcised:</strong> the original succeeds, and the port reverts with Panic(0x11), 0.8&#39;s overflow check. That&#39;s the old bug, caught.</li><li><strong>port bug:</strong> any other difference. That’s the one a migration team needs to see.</li></ul><p>On BEC the verdict is what you’d hope for: the overflow is reproduced, the port stops it every time (around 200 times per run), and there are zero port bugs.</p><h3>A clean result has to be able to fail</h3><p>A green verdict only means something if the séance can also say no. So the graveyard has a second entry: the same port with one line deleted, so that transferFrom no longer reduces the allowance.</p><p>The séance flags it as a port bug, says in plain words that “the allowance is not reduced”, and shrinks it down to the two calls that trigger it: an approve, then a transferFrom.</p><h3>Random fuzzing never found the bug</h3><p>This surprised me most. My first prototype threw plain random inputs at BEC, and in 16,384 calls it never hit the overflow. The values that trigger it are far too specific to find by chance.</p><p>So Exhume uses the autopsy to aim. For every unchecked multiplication x * k, the input generator produces the values around ceil(2^N / k), the point where the product wraps. With that, the overflow appears within the first few hundred calls, every single run. Domain knowledge turns a fuzzer from noise into a test.</p><h3>How Kiro shaped the build</h3><p>I built all of Exhume in the Kiro IDE, spec first, and three features did most of the work.</p><p><strong>Steering.</strong> Four steering files are loaded into every session. The one that mattered most is a single rule in solidity-legacy.md: <em>never change logic while porting.</em> Without it, an AI assistant&#39;s instinct is to &quot;helpfully&quot; fix the overflow it can plainly see, and that would have made the whole séance meaningless. One sentence of steering protected the integrity of the project.</p><p><strong>Specs.</strong> There are three specs: the séance engine, the worker that runs it, and the web UI. Each one went from requirements to a design with numbered correctness properties, then to tasks I reviewed and committed in batches. The best decision was making the <strong>first engine task a risk check</strong> before any TypeScript existed. It immediately found that Foundry reads a bare 0.4.19 as ^0.4.19 and quietly compiled BEC with 0.4.26. Because the spec demanded a byte-for-byte match with mainnet, that became a day-one fix instead of a séance that &quot;worked&quot; against the wrong contract.</p><p><strong>Property-based testing.</strong> The design’s correctness properties became 78 fast-check property tests. My favourite, Property 13, is the BEC mechanism itself: for any bit width and any factor, the generator must produce at least one value whose product overflows and wraps. It’s checked against an independent bigint oracle, not against the generator’s own logic. Example tests would cover BEC’s one case. The property covers every case the next dead contract could bring.</p><p>Compared with prototyping, the difference was where the rules lived. In the prototype they were in my head. In the specs they were on the page, where both Kiro and I could check every change against them.</p><h3>Try it</h3><ul><li>Demo video (2:45): <a href="https://youtu.be/wYLoeNFTcYw">https://youtu.be/wYLoeNFTcYw</a></li><li>Live: <a href="https://exhume-ecru.vercel.app/">https://exhume-ecru.vercel.app</a>. Open BeautyChain and press <strong>Hold séance</strong>. A real Foundry run starts on the server and finishes in about a minute.</li><li>Code (MIT): <a href="https://github.com/CharlesChinedum/exhume">https://github.com/CharlesChinedum/exhume</a>. The .kiro/ folder holds the steering files and all three specs.</li></ul><p>Next up: more contracts in the graveyard, and automating the autopsy and the port, checked by the same séance.</p><p>Dead code deserves a fair trial.</p><p><em>#KiroweenHackathon26</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=250988bb6cad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hey, I just turned twenty-four!]]></title>
            <link>https://trulynedum.medium.com/hey-i-just-turned-twenty-four-0e3e1b140922?source=rss-3b042e1189c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e3e1b140922</guid>
            <category><![CDATA[happy-birthday]]></category>
            <category><![CDATA[reflections]]></category>
            <category><![CDATA[birthday]]></category>
            <dc:creator><![CDATA[Charles Ugbor]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 08:44:45 GMT</pubDate>
            <atom:updated>2026-04-29T23:23:31.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qPvJBnHXj5U7RVtM" /><figcaption>Photo by <a href="https://unsplash.com/@ocollet?utm_source=medium&amp;utm_medium=referral">Olivier Collet</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong>“Modern art = I could do that + Yeah, but you didn’t.” — Craig Damrauer</strong></blockquote><p>Dearest gentle reader, welcome to the start of what might go on to become a tradition. It feels like yesterday I was celebrating my twenty-third birthday, yet there has been a lot of growth.</p><p>I’m writing to you from a place of gratitude and reflection.</p><p>If I’m being honest, there has been a lot of growth this year. Career wise, if you asked me about a year ago if I’d see myself going into the Web3 space as an Engineer I would have probably said yes, but nothing would have made me guess the niche I’d find myself in. I have been learning a new skill and I can’t wait to share what it is with you (watch out for my subsequent posts). Last year I got my first Macbook, Macbook Pro M4 and I have seen significant improvements in my productivity. I got myself a Playstation four pro as a birthday gift last year. This year I wanted to get something too, but I haven’t been able to just yet, but I have the gifts I need already, my family, my amazing friends, you and good health for all of us.</p><p>To be frank, I haven’t been very consistent with the gym for sometime now, and I don’t want to give any excuses why I haven’t (valid or not) but it’s one of the things I’m going to work on.</p><p>I have been learning how to communicate better and build better and healthy relationships (still single in case you’re wondering) and also how to be a better friend. I finally started learning how to play Lawn Tennis and it’s been amazing, it’s like I’ve fallen in love with the game all over again.</p><p>One of the things I want to actively do this year is allow myself sometime to be bored, hear me out. A lot of times, when I’m not working, or learning, I’m either resting, using any of my gadgets (or probably sleeping). But I’m starting to realise that sometimes I just need to allow myself some time to be bored, somehow, in that boredom, creativity kicks in. I also need to seriously start taking better care of myself and my health.</p><p>I miss drawing. Last year, I probably drew a couple of times, but not as much as I had wanted to. God gave me this talent and I don’t take it for granted, neither do I want to waste it. One of the things I’m looking forward to doing more is making out time to do stuff I love outside using any of my gadgets; drawing, reading, go out more? (probably not :). Reading is also one thing I look forward to doing more and being more consistent with this year. Last year and a little over some months ago, I have been investing in buying hard cover books (still am), but I think it’s finally time to make out time and read them!</p><p>The truth is, the path I’m walking is the path of greatness and it gets lonely sometimes. Imposter syndrome finds a way to creep in sometimes, but I don’t let it get the final say. I guess what I’m trying to say is, sometimes it gets hard, but I have amazing people around me and they help me in ways I can’t even begin to express.</p><p>I have learned a couple of things this year. One of them being that sometimes growth often seems invisible but it compounds, as long as I keep showing up, it compounds and it starts becoming visible. I now understand that I need better discipline and I will build it. I’ve learned that sometimes we might not get what we want exactly when we want them or as soon as we want them, but patience is important (after all, na who buy last buy latest).</p><p>I’m grateful for my family, my amazing friends and the beautiful people I have around me, including you :) who encourage me, cheer for me and show up for me in ways I can never repay, I see you and I love and appreciate you.</p><p>Whew! This year, I want to move with better precision, I want to build the discipline to show up consistently and achieve whatever I set my mind to, and actually finish any thing I start. I’m looking forward to what this new age has in store.</p><p>Oh, and I’m kinda getting used to people adding “sir” when they greet me even though it makes me feel old :) I’m honestly probably not anywhere near figuring everything out, but I’m still here, still trying, still showing up, still growing, and in my opinion that is what matters. Thank you for sticking around. I hope to see you this same time next year. Have a beautiful day! I know I will :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e3e1b140922" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience So Far as an Intern in Sidehustle.ng]]></title>
            <link>https://trulynedum.medium.com/my-experience-so-far-as-an-intern-in-sidehustle-ng-3666aa70bab0?source=rss-3b042e1189c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3666aa70bab0</guid>
            <category><![CDATA[side-hustle]]></category>
            <category><![CDATA[sidehustleinternship4]]></category>
            <category><![CDATA[capstone-project]]></category>
            <category><![CDATA[sidehustle-internship]]></category>
            <dc:creator><![CDATA[Charles Ugbor]]></dc:creator>
            <pubDate>Sun, 14 Nov 2021 14:56:28 GMT</pubDate>
            <atom:updated>2021-11-14T14:56:28.519Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZgvnInH9RUnhyuDnHL3fA.jpeg" /></figure><p>Happy Sunday guys 😁. Today am going to be talking about my experience so far at Sidehustle Internship. A couple of weeks ago I ran into a link on a friend’s WhatsApp status, I asked about it and he explained it was for the Sidehustle Internship 4.0 he advised me to sign up for it. I took his advice and signed up under the Front-end development track, it has been 3 weeks so far and all I can say is that the experience has been awesome, mind blowing and more interesting than I had initially anticipated. I worked on a capstone project with a team in the week 2 of the internship during this period I got the chance to work with great minds, I learnt a lot from them and they learnt a thing or two from me too 😊😁. So far so good, I look forward to seeing what Sidehustle has in store for the remaining weeks of the internship and I have a feeling it’s definitely going to be worth it.<br>#Sidehustleinternship4.0<br>#capstoneproject</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3666aa70bab0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>